RE: Behaviour of select in multi-threaded env

2007-07-19 Thread Bernd Petrovitsch
On Thu, 2007-07-19 at 15:18 +0530, Gaurav Aggarwal wrote: > From: Bernd Petrovitsch [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 19, 2007 2:12 PM > To: Gaurav Aggarwal > Cc: kernelnewbies@nl.linux.org > Subject: Re: Behaviour of select in multi-threaded env > > On Wed

RE: Behaviour of select in multi-threaded env

2007-07-19 Thread Gaurav Aggarwal
From: Bernd Petrovitsch [mailto:[EMAIL PROTECTED] Sent: Thursday, July 19, 2007 2:12 PM To: Gaurav Aggarwal Cc: kernelnewbies@nl.linux.org Subject: Re: Behaviour of select in multi-threaded env On Wed, 2007-07-18 at 21:25 +0530, Gaurav Aggarwal wrote: [...] > But the problem is that, only

Re: Behaviour of select in multi-threaded env

2007-07-19 Thread Bernd Petrovitsch
On Wed, 2007-07-18 at 21:25 +0530, Gaurav Aggarwal wrote: [...] > But the problem is that, only one thread was doing all the work > (handling all the connections), other threads are just blocking in > select() system call even when all of them have the same > information. How many select(2)s are

Re: Behaviour of select in multi-threaded env

2007-07-18 Thread Mulyadi Santosa
Hi... I am trying to write a multi-threaded echo server program. But facing some problem with it... First of all, I am sorry to remind you that your question is user space related issue, however personally I try to reply since it has something to do in kernel space. So here we go But t