fork and exec (was: Re: Proposed patch to system.XWinrc)
Andy Koppe
andy.koppe@gmail.com
Wed Jul 1 05:55:00 GMT 2009
2009/6/23 Christopher Faylor:
>>If posix_spawn() ever gets implemented in Cygwin to
>>avoid the slowness of fork(), /bin/sh might well change to the first
>>shell that supports it.
>
> It's really somewhat of an urban myth about Cygwin's fork being slow.
> Cygwin's exec is also pretty slow. I'm not really sure that posix_spawn
> would cause any kind of performance improvement.
Ah, right. So is it Windows' CreateProcess() itself that's slow? Or is
it some of the additional stuff that exec() needs to deal with?
Signals? The hidden console?
Andy
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin
mailing list