Reputation: 6464
As I understand, in Linux (not sure about Unix
in general) there exists a single table of file descriptors per process, and the table is shared among all threads.
So, does this mean that any socket FD created in a thread will become available to other threads in the process?
Upvotes: 0
Views: 281
Reputation: 239041
Yes, and in fact this is true of POSIX threads in general. File descriptors and "open file descriptions" are per-process.
Upvotes: 2