This was under Linux 2.4.19, the reason for forking was the thread
creation overhead.  The theory being, create a pool of threads, and then
fork() the process on each new socket connection, hopefully copying the
thread pool too, thus circumventing the delay normally present when
having to spawn the threads all over again.  But no luck so far.

Ray

-----Original Message-----
From: Arthur Bergman [mailto:arthur@;contiller.se] 
Sent: 25 October 2002 11:17
To: Ray Hilton
Cc: 'Perl-Ithreads'
Subject: Re: Thread::Queue::Any and sharing


On torsdag, okt 24, 2002, at 13:10 Europe/Stockholm, Ray Hilton wrote:

>
> I forgot to mention that I was forking the process, and on further
> investigation it appears that fork()ing does not copy the threads :(
>
>

Which OS are you using?

Arthur

forks and threads mix kind of differently on different operating systems


Reply via email to