From: Benoit JACROT <jacrot@cnam.fr>
Subject: "producer - consumer" problem
Date: 1997/12/10 [thread overview]
Message-ID: <348EF272.E3B@cnam.fr> (raw)
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
next reply other threads:[~1997-12-10 5:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-12-10 5:00 Benoit JACROT [this message]
1997-12-13 5:00 ` "producer - consumer" problem john hall
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