Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: The problem with "The Problem with Threads"

by BrowserUk (Pope)
on Jul 20, 2014 at 06:33 UTC ( #1094353=note: print w/replies, xml ) Need Help??


in reply to Re: The problem with "The Problem with Threads"
in thread The problem with "The Problem with Threads"

Use the Fork, Luke, the Fork. :-)

Try using a fork -- the metal utensil -- to slice a tomato and see the sticky mess you end up with.

Like its namesake, fork is useful for somethings and not so for others.

everything on Windows OS is a thread, even the forks.
Everything on modern *nix is also a thread. Processes are simply single threaded processes.

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
  • Comment on Re^2: The problem with "The Problem with Threads"

Replies are listed 'Best First'.
Re^3: The problem with "The Problem with Threads"
by zentara (Archbishop) on Jul 20, 2014 at 12:55 UTC
    What are you advocating then, in regards to all this? Are you lobbying for forks and threads that don't use clone(), so you get a pure executable space, unencumbered by the parent process's ENV and filehandles? I think that would be the most desirable way to do it, but you would be forced to deal with the filehandles yourself, having to open them all manually. Most people don't expect to have to manually open stdout or stdin.

    I'm not really a human, but I play one on earth.
    Old Perl Programmer Haiku ................... flash japh
      What are you advocating then, in regards to all this? Are you lobbying for forks and threads that don't use clone(), so you get a pure executable space, unencumbered by the parent process's ENV and filehandles? I think that would be the most desirable way to do it, but you would be forced to deal with the filehandles yourself, having to open them all manually. Most people don't expect to have to manually open stdout or stdin.

      Like I said. You shouldn't throw the baby away with the bathwater.

      Instead of all or nothing; how about clone-on-demand.


      With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1094353]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (3)
As of 2017-12-16 03:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (448 votes). Check out past polls.

    Notices?