diff options
Diffstat (limited to 'linuxthreads/Examples/ex6.c')
-rw-r--r-- | linuxthreads/Examples/ex6.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/linuxthreads/Examples/ex6.c b/linuxthreads/Examples/ex6.c index 7853376394..15914ce85d 100644 --- a/linuxthreads/Examples/ex6.c +++ b/linuxthreads/Examples/ex6.c @@ -15,6 +15,8 @@ main (void) { unsigned long count; + setvbuf (stdout, NULL, _IONBF, 0); + for (count = 0; count < 2000; ++count) { pthread_t thread; @@ -33,7 +35,7 @@ main (void) } /* pthread_detach (thread); */ pthread_join (thread, NULL); - usleep (50); + usleep (10); } return 0; } |