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

Re: Re: Create a separate process with a sub...

by Foggy Bottoms (Monk)
on Aug 15, 2003 at 12:24 UTC ( [id://284130]=note: print w/replies, xml ) Need Help??


in reply to Re: Create a separate process with a sub...
in thread Create a separate process with a sub...

I thought fork() didn't work on Win32 systems ? I believe it's a Unix command only and not usable on WinNT, the OS I'm using...
  • Comment on Re: Re: Create a separate process with a sub...

Replies are listed 'Best First'.
Re: Re: Re: Create a separate process with a sub...
by liz (Monsignor) on Aug 15, 2003 at 12:49 UTC
    To my knowledge, fork() is emulated on Win32 systems using threads, thanks to the good work of Gurusamy Sarathy.

    Liz

Re: Re: Re: Create a separate process with a sub...
by BrowserUk (Patriarch) on Aug 15, 2003 at 13:33 UTC

    Contrary to poular myth, fork does work under win32 since at least 5.6. Under the covers it is implemented in exactly the same as threads are. IMO, the threads interface is easier to use than fork, but then I've never really made any great use of fork in C, so I'm coming from a different background.

    It also has the added bonus of making it reasonably easy to share data between parent and child.


    Examine what is said, not who speaks.
    "Efficiency is intelligent laziness." -David Dunham
    "When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller
    If I understand your problem, I can solve it! Of course, the same can be said for you.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2024-04-23 07:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found