home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / amiga / programm / 17271 < prev    next >
Encoding:
Internet Message Format  |  1992-12-12  |  1.1 KB

  1. Path: sparky!uunet!usc!enterpoop.mit.edu!eru.mt.luth.se!lunic!sunic!seunet!pop!bjst
  2. From: bjst@sth.frontec.se (Bjorn Stenberg)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: WShell: Hangning forbid!
  5. Message-ID: <1992Dec12.143541.21468@sth.frontec.se>
  6. Date: 12 Dec 92 14:35:41 GMT
  7. Organization: IDK/Frontec - System Design Group
  8. Lines: 26
  9. Nntp-Posting-Host: pop.sth.frontec.se
  10.  
  11.  
  12. A while ago there was some talk about process syncronization when
  13. multithreading, and Randell Jesup suggested doing:
  14.  
  15.    ...
  16.    Forbid();
  17.    Signal(parent,sig);     // tell parent we exited
  18. }
  19.  
  20. to make sure the child has exited before any other process gets a time slice.
  21.  
  22. Well, I do this in a child of mine, but after the parent exits WShell
  23. complains with the message:
  24.  
  25. ***Hanging forbid!
  26.  
  27. Is WShell just being paranoid or am I doing something wrong? (I'm not supposed 
  28. to Permit() or anything in the parent, am I?)
  29.  
  30. Any hints are appreciated.
  31.  
  32.         -- Bjorn
  33.  
  34. ---------------------------------------------------------------------------
  35. Bjorn Stenberg, Stockholm, Sweden                       bjst@sth.frontec.se
  36. ---------------------------------------------------------------------------
  37.