Does thread share FD?



I am using gthread to create a multi-thread
program.Every thread will open many sockets, and I use
select() to handle them.
Now I find in linux, a fd_set could only accept 1024
fd.
The number of sockets one thread open can be
restricted, but if all threads in a process share the
same fd number, 1024 is too small for me.


        

        
                
___________________________________________________________ 
雅虎免费G邮箱-中国第一绝无垃圾邮件骚扰超大邮箱
http://cn.mail.yahoo.com/?id=77071




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]