[uClibc] pthreads & stdio
Gregory Nutt
spudmonkey at racsa.co.cr
Wed Sep 24 00:38:40 UTC 2003
Hello, List,
I think I have a problem with stdio and pthreads on my system. I would
like to know if anyone else has seen this before I started digging into
it. If not, it probably just some stupid on my part.
Attached is a short test program. It just creates an arbitrary number
of threads. Each thread just waits then outputs a unique identifying
number. Each thread also indicates that it has started by setting a
flag. What I see when I run this program is the following:
1. All threads are started successfully,
2. The flag settings indicate that all threads (at least) started, but
3. I only get printf() output on the first 5 threads that were started.
Without looking any deeper, it looks like the file descriptors may not
have been inherited correctly???
Has anyone seen this before? If so, I would appreciate any insight that
you may have.
Thanks in advance,
Greg Nutt
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: multi-threads.c
Url: http://lists.busybox.net/pipermail/uclibc/attachments/20030923/bce5883a/attachment.diff
More information about the uClibc
mailing list