From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,562d37d12a49893d X-Google-Attributes: gidf678f,public X-Google-ArrivalTime: 1993-09-17 13:16:49 PST Newsgroups: comp.unix.osf.misc Path: gmd.de!newsserver.jvnc.net!howland.reston.ans.net!darwin.sura.net!udel!rochester!honeydew.srv.cs.cmu.edu!crabapple.srv.cs.cmu.edu!cantaloupe.srv.cs.cmu.edu!abh From: Andrew Hastings Subject: Re: Threads and shared memory Message-ID: Originator: abh@M.GP.CS.CMU.EDU Sender: news@cs.cmu.edu (Usenet News System) Nntp-Posting-Host: m.gp.cs.cmu.edu Organization: Transarc Corp., Pittsburgh References: <301@vercors.frec.bull.fr> Date: Fri, 17 Sep 1993 16:05:04 GMT In article mishkin@atria.com (Nathaniel Mishkin) writes: >Bruno.Richoux (brunor@cnmat5.frec.bull.fr) wrote: >: 1) Are the UNIX system calls semop and semctl blocking : if the semaphore is locked, a call to semop by a thread blocks the thread or blocks the process ? > >: 2) Related to 1), are there jacket routines developped for primitives >: handling shared memory and / or semaphores and where can I get the >: information (I've got the DCE thread sources). > > the semaphore ops will block all the threads (i.e., the >whole process). Short of polling, I don't think there's a way to >write jacket routines for the semaphore ops. HP's DCE has non-blocking wrappers for semaphore operations. Yes, they use polling. -Andrew Hastings abh+@transarc.com