Operating System - ProducerConsumer

Completed Posted 7 years ago Paid on delivery
Completed Paid on delivery

Create a producer process and a consumer process sharing data. The producer generates total 100 integer data randomly, and the consumer process reads all those data. The data generated by the producer could be stored in a file by the producer; and the data consumed (i.e., read) by the consumer could be stored in another file by the consumer.

The file of produced data and the file of consumed data could be printed to verify that the two processes have cooperated correctly; that means, each data item is not lost and not consumed more than once. Interprocess communication between producer and consumer (to share data) should be implemented using the following four methods:

1. Use a Pipe to transfer 100 data from the producer to the consumer.

2. Use either the direct message passing or indirect message passing (using a mailbox or a message queue) to transfer 100 data from the producer to the consumer.

3. Use the sockets to transfer 100 data from the producer to the consumer. Note: The producer and consumer processes can be executed on the same machine (or on different machines).

4. Use the shared memory and semaphores for the implementation of the logical ring-buffer (that can store up to 10 data items) and the synchronization.

C++ Programming Java Linux

Project ID: #11959967

About the project

10 proposals Remote project Active 7 years ago

Awarded to:

it2051229

Hi there, I would like to do this project if given the opportunity. Let me know if you are interested so I can have further details. Thanks.

$70 USD in 1 day
(1149 Reviews)
7.6

10 freelancers are bidding on average $83 for this job

kaloyan13

Hello, I can do your project for a few hours. Can start working immediately. Thanks.................

$60 USD in 1 day
(176 Reviews)
6.4
Calleus

Hi, I have strong background in java and large experience with operating systems. Let me help you. I am ready to start.

$80 USD in 3 days
(90 Reviews)
6.0
xeathprynx

Hello, I am expert in java/c/c++ and i can deliver your task in the least time and least payments. The code will be well commented and well formatted for better understanding. I believe in long term relations so first More

$60 USD in 2 days
(67 Reviews)
5.0
yamaf555

Hi,How are you? I have a lot of experiences inJava Application,Objective c,C++ and so on for 5+years. I understand your proposal completely. I am sure that I will carry out completely with my skills. If you reply More

$133 USD in 2 days
(23 Reviews)
4.6
Nkokila

A proposal has not yet been provided

$60 USD in 5 days
(11 Reviews)
3.6
VnNorthStar

Hi I'm ready for this project. I'm expert in C, C++, also algorithms, Web, Mobile, Desktop applications. Please give me more detail. I will do it perfectly. Best Regards VnNorthStar

$50 USD in 3 days
(10 Reviews)
2.9
phanireddyss

I have 10+ years of software experience. I am good at C, C++, data structures, Linux, RTOS. I worked on embedded , telecom and IoT domains. I can do this for you.

$90 USD in 5 days
(0 Reviews)
0.0
gmarucci

The producer and the consumer are two java classes to implement respectively the generation (sequencely) of the 100 random numbers and the consuming of the numbers. The classes producer and consumer will be executed in More

$200 USD in 2 days
(0 Reviews)
0.0
skriyaz09

I have been working as a software developer for more than one and half year on C++ and having good knowledge of algorithms and data structures and good problem solving skills. I'm flexible about languages so I can writ More

$61 USD in 5 days
(0 Reviews)
0.0