Does thread share FD?
- From: 顺珉 吴 <moody_blur yahoo com cn>
- To: gtk-app-devel-list gnome org
- Subject: Does thread share FD?
- Date: Fri, 8 Jul 2005 14:32:15 +0800 (CST)
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]