Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^8: Isolating dynamically loaded modules with Thread::Isolate.

by BrowserUk (Patriarch)
on Feb 01, 2005 at 00:09 UTC ( [id://426768]=note: print w/replies, xml ) Need Help??


in reply to Re^7: Isolating dynamically loaded modules with Thread::Isolate.
in thread Isolating dynamically loaded modules with Thread::Isolate.

In fact Elizabeth Mattijsen managed to implement iThreads using fork, and from what I understand the result is the pretty much the same except that it is faster, less bug-prone, and uses less memory.

That is so wrong.

Forks not only duplicate everything as iThreads do, they do it by using Storable and passing everything through sockets between the processes and all locking and synchronisation is duplicated and much harder. Whilst they showed some early promise and were somewhat more reliable than ithreads in builds 5.8.0/1/2, they achieved that by being even slower, clumsier and heavier than that which they attempted to replace.

Your information is secondhand and totally out of date.

The rest is more red herrings.


Examine what is said, not who speaks.
Silence betokens consent.
Love the truth but pardon error.
  • Comment on Re^8: Isolating dynamically loaded modules with Thread::Isolate.

Replies are listed 'Best First'.
Re^9: Isolating dynamically loaded modules with Thread::Isolate.
by tilly (Archbishop) on Feb 01, 2005 at 05:18 UTC
    You claim that forks duplicate everything? I think not. At least not on any OS which implements copy on write memory, which would be any semi-current *nix. And in many applications it is OK if communication overhead is slightly more in order to benefit from the saved memory and increased protection.

    As for the rest, I haven't tracked to see if people's experience with Perl's threading in the last half year is as bad as it had been before that. It probably has improved, though not to the point where I'd be willing to put it into production. But my general comments about threading remain true, and my specific comments about Perl's thread model in specific are, to the best of my knowledge, accurate. If you have specific examples to change my mind, that would be one thing. But you don't appear to, instead you're just telling me that what I've said is red herrings and wrong, without providing me with any specifics.

    Since I feel no need to convince you of anything, and I don't feel that this conversation is going anywhere I'm exiting the conversation here.

      instead you're just telling me <<...X...>> without providing me with any specifics.

      That is exactly the problem I have with your posts. It is impossible for me to either counter or agree with non-specific FUD.


      Examine what is said, not who speaks.
      Silence betokens consent.
      Love the truth but pardon error.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2024-04-26 04:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found