Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* "producer - consumer" problem
@ 1997-12-10  5:00 Benoit JACROT
  1997-12-13  5:00 ` john hall
  0 siblings, 1 reply; 2+ messages in thread
From: Benoit JACROT @ 1997-12-10  5:00 UTC (permalink / 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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1997-12-13  5:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-12-10  5:00 "producer - consumer" problem Benoit JACROT
1997-12-13  5:00 ` john hall

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