From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,562d37d12a49893d,start X-Google-Attributes: gidf678f,public X-Google-ArrivalTime: 1993-09-17 00:16:00 PST Path: gmd.de!newsserver.jvnc.net!howland.reston.ans.net!europa.eng.gtefsd.com!uunet!mcsun!julienas!bull.bull.fr!vercors.frec.bull.fr!cnmat5.frec.bull.fr!brunor From: brunor@cnmat5.frec.bull.fr (Bruno.Richoux ) Newsgroups: comp.unix.osf.misc Subject: Threads and shared memory Message-ID: <301@vercors.frec.bull.fr> Date: 16 Sep 93 09:36:32 GMT Sender: news@vercors.frec.bull.fr Hi everybody, I would like to have the following information about using threads in the following context : one multi-threaded UNIX process and several "normal" UNIX processes communicate data through a shared memory segment. This segment is accessed exclusively and is then protected by an IPC semaphore. The questions are : 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). 3) Has someone encountered the same problems I'm confronted to. As I'm not interested in rewriting the world, I would like to benefit from past experiments. Thanks for listening, Bruno.