Skip to content
Snippets Groups Projects
Commit 0d0ee3d6 authored by antux18's avatar antux18
Browse files

Corrections t2.

parent 4b6fbcc1
No related merge requests found
t1
t2
t3
t4
t5
tmp
\ No newline at end of file
......@@ -5,7 +5,7 @@
#define SIZE 10000
int meanval = 0;
float meanval = 0;
int medianval = 0;
void swap(int *xp, int *yp);
......@@ -48,7 +48,7 @@ int main() {
pthread_join(tid1, NULL);
pthread_join(tid2, NULL);
printf("Mean = %d\nMedian = %d\n", meanval, medianval);
printf("Mean = %f\nMedian = %d\n", meanval, medianval);
printf("Mean thread PID: %ld\nMedian thread PID: %ld\n", tid1, tid2);
return 0;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment