Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Re: latest on ithreads vs forks?

by liz (Monsignor)
on May 29, 2004 at 09:41 UTC ( #357445=note: print w/ replies, xml ) Need Help??


in reply to Re: latest on ithreads vs forks?
in thread latest on ithreads vs forks?

Latency in the inter-thread communication in forks is much higher than with threads, as it uses a TCP/IP socket and Storable for it.

Thread startup, especially if you have a lot of modules loaded, should be faster with forks, as there is no copying of data-structures when a thread is started with forks (it just does a fork()). However, every thread with forks, has a bit of latency at startup, because of the setting of the inter-thread communications socket.

Hope this explains it a bit.

Liz


Comment on Re: Re: latest on ithreads vs forks?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://357445]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2014-09-18 23:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (126 votes), past polls