The "too small to fail" memory-allocation rule
The "too small to fail" memory-allocation rule
Posted Dec 24, 2014 12:31 UTC (Wed) by ibukanov (subscriber, #3942)In reply to: The "too small to fail" memory-allocation rule by pbonzini
Parent article: The "too small to fail" memory-allocation rule
Linux semantic of vfork is one of the most usable as it blocks only the thread in parent that calls it. Thus one can get rather safe and efficient alternative to fork/exec by creating a new thread, calling vfork from it, preparing the child and calling the exec. Compare that with, say, FreeBSD or Solaris that, according to the manual pages, suspends the whole parent process during the vfork call.