Can I increase the number of file descriptors my app can support by increasing the number of threads? Since every thread on Linux is a process, and every process allows a certain number of file descriptors, it seems that this should be possible.

Nathan Meyers

No. It's true that every thread takes an entry from the pid table. But they are still threads, not heavyweight processes, and the same file descriptor table is shared by all the threads.