Interprocess Communication on UNIX SVR3

Benyukhis bareta at ihuxv.ATT.COM
Tue Apr 19 23:53:41 AEST 1988


Good morning usenetters,

Can anyone outthere help me code the producer/consumer problem
in "C".  The prolog is as follows:  the producer has to produce
a char and deposit it in the shareable buffer for consumer to pick it up
from.  Both processes must use binary semaphores as a means of
synchronization.  It looks trivial, but for someone that has never
written anything for more than one process .... In other words,
if anyone has any helpfull hints for me, I would really appreciate it.

Thanks in advance,

Ed.



More information about the Comp.lang.c mailing list