1 files changed, 2 insertions, 2 deletions
|
diff --git a/loop.c b/loop.c index d18b191..923a120 100644 --- a/ loop.c+++ b/ loop.c |
@@ -89,8 +89,8 @@ int main(int argc, char** argv) |
89 | start = wctime(); |
89 | start = wctime(); |
90 | waste_time(delay); |
90 | waste_time(delay); |
91 | end = wctime(); |
91 | end = wctime(); |
92 | printf("%d: loop %d took %.2f seconds \n", |
92 | printf("%5d on P%d: loop %d took %.2f seconds \n", |
93 | getpid(), i++, end - start); |
93 | getpid(), cpu, i++, end - start); |
94 | suspend(delay * 4); /* about 20% utilization */ |
94 | suspend(delay * 4); /* about 20% utilization */ |
95 | } |
95 | } |
96 | return 0; |
96 | return 0; |
|