Running fork (2) from Windows with Cygwin. Possible?

I am trying to use a Ruby gem called shotgun, which requires the fork (2) command that I discovered is aa Linux command and may be available in Cygwin. Can this be made available through the windows command shell?

+5
source share
1 answer

fork(2)is kludgey under Cygwin, since the Windows process model does not easily allow this to happen. Cygwin may allow its caviar to use it, but you will suffer a serious performance hit, since Cygwin must imitate everything manually - including copying executable data, copying open descriptors, etc.

Depending on how many shotguns it uses fork(2), this emulation can be painful or can be relatively minor.

Here's a good thread on GameDev.net discussing the lack of funds forkon Win32. They raise the fact that I have no patience or the availability of a platform for research, but, of course, it sounds fun, dangerous and explosive for everyone:

, Win32 API ({Nt | Zw} CreateProcess). "Windows Nt/2000 Native Api Reference" " Win32". , .

, , . , , - Unix fork, Cygwin, , . , Ruby Cygwin, , .

+7

All Articles