Re: Does thread share FD?
- From: John Vetterli <jvetterli linux ca>
- To: Gtk AppDev Mailing List <gtk-app-devel-list gnome org>
- Subject: Re: Does thread share FD?
- Date: Fri, 8 Jul 2005 10:43:37 -0400 (EDT)
On Fri, 8 Jul 2005, [gb2312] 顺珉 吴 wrote:
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.
You may be able to increase this limit.
man 2 setrlimit
or
http://www.gnu.org/software/libc/manual/html_node/Limits-on-Resources.html
HTH
JV
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]