[ale] Threads with different fds

Michael Hirsch hirsch at mathcs.emory.edu
Wed Aug 18 14:04:05 EDT 1999


I thought that threads shared file descriptors (fds).  So if I look in 
proc I should see the same fds in two dirrent threads.  How is it
possible that I have a process with a bunch of threads, and all but
one have an identical fd list, and one has a slightly different list?
If a thread opens a fd, do the other threads see it?  Or maybe the
proc filesystem isn't clever enough to duplicate the info across all
the threads?

Clues appreciated, thanks.

-- 
--Michael






More information about the Ale mailing list