Hacker News new | ask | show | jobs
by ihnorton 4288 days ago
> i felt that all Microsoft had to do for twenty years, was expose functions form the NT kernel, to stay ahead in terms of features.

I got some hints of that feeling while poking around http://undocumented.ntinternals.net/ ... They seem to have still forgotten about ZwCreateProcess (copy-on-write forking).

1 comments

Copy-on-write fork is not compatible with Win32 global (interprocess) mutexes. After fork succeeds in context of process with acquired global mutex, should parent or child automatically release that mutex?

Copy-on-write fork existed in POSIX subsystem of Windows NT (MS Services for UNIX aka Interix), hence no global mutexes in that subsystem.

There are global mutexes in Win32 subsystem of Windows NT, hence no fork.

And on "true" POSIX systems with pthreads there are mutexes and fork, but mutexes are process-local (kind of Win32 critical sections).