home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / volume.22 / text0097.txt < prev    next >
Encoding:
Text File  |  1991-03-06  |  1.0 KB  |  31 lines

  1. Submitted-by: mohta@necom830.cc.titech.ac.jp (Masataka Ohta)
  2.  
  3. In article <16994@cs.utexas.edu>
  4.     richard@aiai.ed.ac.uk (Richard Tobin) writes:
  5.  
  6. >Of course, these programs don't usually change many variables, so a
  7. >copy-on-write fork() won't need many pages in this case.  A c-o-w    
  8. >fork() with late allocation of pages could could be as robust as
  9. >vfork() almost always by pre-allocating a few pages.
  10.  
  11. That is the case where COW fork() with late allocation of pages or
  12. vfork() must be used.
  13.  
  14. >Surely the problem is when it's being used as a *real* fork(), and the
  15. >program fails much later when it modifies one variable too many.
  16.  
  17. If fork() is used as a real fork(), it is very probable that it modifies
  18. its data space many times.
  19.  
  20. The severe problem is that the program can not control the failure.
  21. It immediately dies.
  22.  
  23. With non-COW fork() or COW fork() with immediate allocation of pages,
  24. such a failure can be detected as error return value of fork()
  25. and may be processed in a controlled fashion.
  26.  
  27.                     Masataka Ohta
  28.  
  29. Volume-Number: Volume 22, Number 101
  30.  
  31.