diff options
Diffstat (limited to 'linuxthreads')
-rw-r--r-- | linuxthreads/ChangeLog | 5 | ||||
-rw-r--r-- | linuxthreads/Examples/ex6.c | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/linuxthreads/ChangeLog b/linuxthreads/ChangeLog index a5d82a43a7..554e0fb01d 100644 --- a/linuxthreads/ChangeLog +++ b/linuxthreads/ChangeLog @@ -1,3 +1,8 @@ +1998-12-14 Ulrich Drepper <drepper@cygnus.com> + + * Examples/ex6.c: Unbuffer stdout and reduce sleep time to reduce + overall runtime. + 1998-12-13 Ulrich Drepper <drepper@cygnus.com> * Examples/ex3.c: Wait until all threads are started before 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; } |