Newsgroups: comp.sys.amiga.programmer Path: utzoo!utgpu!watserv1!maytag!maytag!himacdon From: himacdon@maytag.uwaterloo.ca (Hamish Macdonald) Subject: Re: What's a Hanging Forbid!? In-Reply-To: chris@genly.UUCP's message of 25 Jan 91 14:50:05 GMT Message-ID: <1991Jan28.171326.6363@maytag.waterloo.edu> Sender: daemon@maytag.waterloo.edu (Admin) Organization: University of Waterloo, Waterloo, Ontario References: Date: Mon, 28 Jan 91 17:13:26 GMT Lines: 12 >>>>> In article , chris@genly.UUCP (Chris Hind Genly) writes: Chris> You would use Forbid()/Permit() when accessing structures Chris> shared by several tasks to prevent the structure from being Chris> modified while you were working on it. No, you should use SEMAPHORES when accessing structures shared by several tasks to prevent the structure from being modified while you were working on it. -- -------------------------------------------------------------------- himacdon@maytag.uwaterloo.ca watmath!maytag!himacdon