Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re: Status and usefulness of ithreads in 5.8.0

by samtregar (Abbot)
on Jul 14, 2002 at 23:13 UTC ( #181663=note: print w/ replies, xml ) Need Help??

in reply to Status and usefulness of ithreads in 5.8.0

My impression is that the core threading code is fairly stable. However, many popular Perl modules are not yet thread safe - DBI is one that I know of. Most pure-Perl modules will be thread safe out of the box but most XS modules will not be, particularily if they access non-thread-safe C libraries underneath.

As far as fork()-vs-threads the main difference is in how the processes communicate. With fork() you can communicate using pipes but it is far from convenient. Threads can share() variables and communicate quickly and easily. Also, under some operating systems threads can be created with lower overhead than fork().


Comment on Re: Status and usefulness of ithreads in 5.8.0

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2015-11-28 07:26 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (739 votes), past polls