Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!rochester!udel!new From: new@udel.EDU (Darren New) Newsgroups: comp.sys.amiga.tech Subject: Re: Official Warnings... Keywords: tas Message-ID: <14420@louie.udel.EDU> Date: 1 May 89 18:06:58 GMT References: <3082@haven.umd.edu> <11394@well.UUCP> <3773@sugar.hackercorp.com> <10819@mcdphx.phx.mcd.mot.com> <8904302141.AA21035@explorer.dgp.toronto.edu> Sender: usenet@udel.EDU Reply-To: new@udel.EDU (Darren New) Distribution: na Organization: University of Delaware Lines: 9 In article <8904302141.AA21035@explorer.dgp.toronto.edu> pavel@dgp.toronto.edu (Pavel Rozalski) writes: >Occasionally one may wish to have a lightweight method of accessing >shared memory without the burden of an OS call. As I remember, Forbid() and Permit() (or at least the asm macros thereof) are just one or two instructions long and don't involve any OS calls. I think they work by just incrementing or decrementing flags, maybe in the Task structure (requiring that you find this via the OS, but only once). How much more lightweight do you want? -- Darren