home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3c / pcreate.z / pcreate
Encoding:
Text File  |  2002-10-03  |  4.5 KB  |  67 lines

  1.  
  2.  
  3.  
  4. PPPPCCCCRRRREEEEAAAATTTTEEEE((((3333CCCC))))                                                        PPPPCCCCRRRREEEEAAAATTTTEEEE((((3333CCCC))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      pcreate: pcreatel, pcreatev, pcreateve, pcreatelp, pcreatevp - create a
  10.      process
  11.  
  12. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.      ####iiiinnnncccclllluuuuddddeeee <<<<uuuunnnniiiissssttttdddd....hhhh>>>>
  14.  
  15.      iiiinnnntttt ppppccccrrrreeeeaaaatttteeeellll((((ccccoooonnnnsssstttt cccchhhhaaaarrrr ****ppppaaaatttthhhh,,,, ccccoooonnnnsssstttt cccchhhhaaaarrrr ****aaaarrrrgggg0000,,,, ............,,,,
  16.                ccccoooonnnnsssstttt cccchhhhaaaarrrr ****aaaarrrrggggnnnn,,,, 0000))));;;;
  17.  
  18.      iiiinnnntttt ppppccccrrrreeeeaaaatttteeeevvvv((((ccccoooonnnnsssstttt cccchhhhaaaarrrr ****ppppaaaatttthhhh,,,, cccchhhhaaaarrrr **** ccccoooonnnnsssstttt ****aaaarrrrggggvvvv))));;;;
  19.  
  20.      iiiinnnntttt ppppccccrrrreeeeaaaatttteeeevvvveeee((((ccccoooonnnnsssstttt cccchhhhaaaarrrr ****ppppaaaatttthhhh,,,, cccchhhhaaaarrrr **** ccccoooonnnnsssstttt ****aaaarrrrggggvvvv,,,,
  21.                cccchhhhaaaarrrr **** ccccoooonnnnsssstttt****eeeennnnvvvvpppp))));;;;
  22.  
  23.      iiiinnnntttt ppppccccrrrreeeeaaaatttteeeellllpppp((((ccccoooonnnnsssstttt cccchhhhaaaarrrr ****ffffiiiilllleeee,,,, ccccoooonnnnsssstttt cccchhhhaaaarrrr ****aaaarrrrgggg0000,,,, ............,,,,
  24.                ccccoooonnnnsssstttt cccchhhhaaaarrrr ****aaaarrrrggggnnnn,,,, 0000))));;;;
  25.  
  26.      iiiinnnntttt ppppccccrrrreeeeaaaatttteeeevvvvpppp((((ccccoooonnnnsssstttt cccchhhhaaaarrrr ****ffffiiiilllleeee,,,, cccchhhhaaaarrrr **** ccccoooonnnnsssstttt ****aaaarrrrggggvvvv))));;;;
  27.  
  28. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  29.      _pppp_cccc_rrrr_eeee_aaaa_tttt_eeee in all its forms creates a new process and runs the requested
  30.      program.  These routines are equivalent to a _ffff_oooo_rrrr_kkkk(2) and _eeee_xxxx_eeee_cccc(2) pair
  31.      except that the caller incurs only a small logical swap space penalty
  32.      compared to _ffff_oooo_rrrr_kkkk.  _pppp_cccc_rrrr_eeee_aaaa_tttt_eeee (using _ssss_pppp_rrrr_oooo_cccc(2)) requires that the calling
  33.      process have enough virtual space left (see _ssss_eeee_tttt_rrrr_llll_iiii_mmmm_iiii_tttt(2)) to create a
  34.      temporary 32K stack for the new process.  This new stack also requires
  35.      system logical swap space.  A _ffff_oooo_rrrr_kkkk on the other hand duplicates the
  36.      calling process, which requires the system to reserve logical swap space
  37.      for all modifiable portions of the calling process.  A very large process
  38.      may not be allowed to _ffff_oooo_rrrr_kkkk due to insufficient backing store (swap area).
  39.  
  40. CCCCAAAAVVVVEEEEAAAATTTT
  41.      The POSIX thread model (i.e. Pthreads) is incompatible with the _ssss_pppp_rrrr_oooo_cccc(2)
  42.      model of threading.  As such the _pppp_cccc_rrrr_eeee_aaaa_tttt_eeee(3C) family of calls cannot be
  43.      used with Pthreads.
  44.  
  45. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  46.      fork(2), exec(2), prctl(2), setrlimit(2), sproc(2).
  47.  
  48. DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
  49.      All diagnostics are from either _ssss_pppp_rrrr_oooo_cccc(2) or _eeee_xxxx_eeee_cccc(2).
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.