Skip to content

Latest commit

 

History

History
4 lines (4 loc) · 439 Bytes

README.md

File metadata and controls

4 lines (4 loc) · 439 Bytes

producer-consumer-server

POSIX thread producer and consumer server
make && ./pcserver && ./producer localhost port N rate bad
where localhost for hostname, port for port number, N is number of producers, rate is random floating point number used to randomly
(Poisson distribution) sleep producer generation, bad is percentage[0-100] of producers used to sleep to imitate hanging process