in reply to How to skip END blocks with threads?

I know this may sound stupid, but don't add END blocks. What is a fork-emulation thread?
  • Comment on Re: How to skip END blocks with threads?

Replies are listed 'Best First'.
Re^2: How to skip END blocks with threads?
by repellent (Priest) on May 04, 2009 at 01:01 UTC
    On Windows, fork is emulated with threads. The code is actually running in separate threads after (fork) is called.

      Please see this and Perlmonks - "What is the difference between Windows fork an Unix fork ?"

      A relevant bit of MSDN says :

      "One of the largest areas of difference is in the process model. UNIX has fork; Win32 does not. Depending on the use of fork and the code base, Win32 has two APIs that can be used: CreateProcess and CreateThread. A UNIX application that forks multiple copies of itself can be reworked in Win32 to have either multiple processes or a single process with multiple threads. If multiple processes are used, there are multiple methods of IPC that can be used to communicate between the processes (and perhaps to update the code and data of the new process to be like the parent, if the functionality that fork provides is needed). For more on IPC, see Interprocess Commuications."