Bounded Buffer

Construct a program, which creates two processes: producer and consumer. Process reader will read data into the buffer ***linestr,*** while process consumer will display the contents of the buffer 5 times, both processes share the buffer, ***linestr[21],*** implemented as shared memory among processes. The program should take two integers, k1 and K2 as command-line inputs. Use a mutual exclusion semaphore to prevent the producer and consumer from manipulating the list of buffers at the same time, a semaphore so that the producer can signal the consumer to start processing when it creats a full buffer, and another semaphore for the consumer to signal the producer when it creates an empty buffer. Process consumer and producer will be provided.

## Deliverables

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.

2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):

a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.

b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.

3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).

## Platform


Habilidades: Ingeniería, Linux, MySQL, PHP, Arquitectura de software, Verificación de software, UNIX

Ver más: integers form 1, hire producer, hire a line producer, producer hire, line producer for hire, hire web producer, hire a producer, buffer source code, read process memory, run command linux, linux condition shared, unix program producer consumer, semaphore code program, consumer program unix, software construct, producer consumer shared memory linux, signal processing program, program signal processing, signal linux, processing linux code, consumer law, linux program signal, shared memory, producer unix, producer consumer processes

Información del empleador:
( 10 comentarios ) United States

Nº del proyecto: #3393479

Adjudicado a:


See private message.

$2 USD en 1 día
(29 comentarios)

3 freelancers están ofertando el promedio de $100 para este trabajo


See private message.

$42.5 USD en 1 día
(81 comentarios)

See private message.

$255 USD en 1 día
(0 comentarios)