Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
From: dmc@kamal.austin.ibm.com (Dave McCracken)
Subject: Re: Threads and shared memory
Date: Fri, 17 Sep 1993 14:48:51 GMT	[thread overview]
Message-ID: <DMC.93Sep17094851@kamal.austin.ibm.com> (raw)
In-Reply-To: brunor@cnmat5.frec.bull.fr's message of 16 Sep 93 09:36:32 GMT


In article <301@vercors.frec.bull.fr> brunor@cnmat5.frec.bull.fr (Bruno.Richoux        ) writes:

> 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).

If the platform you're running on uses the threads library from OSF, then
semop and semctl operations will block the whole process.  There is no
viable way to provide wrappers for them.

The only reason wrappers work for normal IO is because the select() system
call can be used to notify the process of IO being available.  There is no
equivalent mechanism for sem operations.

--
----------------#include <OBdisclaimer.h>----------------
Dave McCracken			IBM DCE Development, Austin, TX
IBM email: dmc@austin.ibm.com	Real email: dcm@cactus.org


      parent reply	other threads:[~1993-09-17 14:48 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-09-16  9:36 Threads and shared memory Bruno.Richoux        
1993-09-17 13:58 ` Nathaniel Mishkin
1993-09-17 13:44   ` David Wright
1993-09-17 16:05   ` Andrew Hastings
1993-09-17 16:21   ` Douglas C. Schmidt
1993-09-17 20:02     ` Nathaniel Mishkin
1993-09-18 18:21       ` Douglas C. Schmidt
1993-09-19 23:12         ` Dave Weisman
1993-09-22 20:07           ` Brian Sturgill
1993-09-23  1:20             ` Douglas C. Schmidt
1993-09-23 13:09               ` Nathaniel Mishkin
1993-09-27 13:54               ` George J. Carrette
1993-09-17 14:48 ` Dave McCracken [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox