home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!spool.mu.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!ira.uka.de!rz.uni-karlsruhe.de!rz.uni-karlsruhe.de!ry41
- From: ry41@rz.uni-karlsruhe.de (Bernhard Moellemann)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: WShell: Hangning forbid!
- Date: 12 Dec 1992 17:04:31 GMT
- Organization: University of Karlsruhe, Germany
- Lines: 24
- Distribution: world
- Message-ID: <1gd62vINN3lp@nz12.rz.uni-karlsruhe.de>
- References: <1992Dec12.143541.21468@sth.frontec.se>
- NNTP-Posting-Host: tp70.rz.uni-karlsruhe.de
-
- In article <1992Dec12.143541.21468@sth.frontec.se>, bjst@sth.frontec.se (Bjorn Stenberg) writes:
- >
- >A while ago there was some talk about process syncronization when
- >multithreading, and Randell Jesup suggested doing:
-
- > Forbid();
- > Signal(parent,sig); // tell parent we exited
-
- >Well, I do this in a child of mine, but after the parent exits WShell
- >complains with the message:
-
- >***Hanging forbid!
-
- >Is WShell just being paranoid or am I doing something wrong? (I'm not supposed
- >to Permit() or anything in the parent, am I?)
-
- This is only true for a "single-job-process". But your process is running
- under the Shell's schedule, so the Forbid() would lock the shell.
-
- --
- Bernhard M÷llemann <spare space> Chairman of the Nessy-Fan-Club //
- internet=zza@rz.uni-karlsruhe.de <space> FIDO=2:241/7506.42 IRC=ZZA //
- nessynet=008 Lifenet=77:7700/11.42 greetings to my Marsupilami \\ //
- 2000/500 Technical Reference Manual: "A1000, the original Amiga" \X/
-