From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,3d7c99651d0c9cf5,start X-Google-Attributes: gidfee84,public From: Benoit JACROT Subject: "producer - consumer" problem Date: 1997/12/10 Message-ID: <348EF272.E3B@cnam.fr>#1/1 X-Deja-AN: 296881436 Reply-To: jacrot@cnam.fr Newsgroups: comp.unix.programmer;,comp.unix.osf.osf1 Subject : How to read the process table ? ######################################### Hello, I have a "producer - consumer" problem : N processes write to a file and one process read this file. To stop reading, the consumer wants to know when all producers are dead. To solve this problem I see two solutions : - trying to know how many processes have the file open (not possible ?), - reading the process table and look for any producer, but having to make assumptions about their name. How can I implement these solutions (under OSF1), are there any other solutions ? Thanks. Benoit Jacrot jacrot@cnam.fr