Find Jobs
Hire Freelancers

a program that illustrate one producer and one consumer problem

$10-30 USD

Completed
Posted about 7 years ago

$10-30 USD

Paid on delivery
I need a simple program to illustrate one producer and one consumer problem. there is a PDF file Attached to explain more. Moreover, The producer will produce 100 messages for the consumer to consume. Use an array of 10 slots to hold the contents of the buffer. The producer should send a sequence of integers to the consumer. Specifically, it should send the sequence 1, 2, 3, ..., 100, in that order. The consumer should receive them and check that it has indeed received exactly that sequence, in that order.
Project ID: 13172129

About the project

15 proposals
Remote project
Active 7 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
Hi!! I am relatively new programmer here, you can tell from my profile My main background is from parallel programming so I can help you with this. If you like I am available to chat
$25 USD in 2 days
5.0 (29 reviews)
4.7
4.7
User Avatar
$20 USD in 1 day
4.9 (74 reviews)
5.3
5.3
15 freelancers are bidding on average $34 USD for this job
User Avatar
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.
$30 USD in 1 day
4.9 (1106 reviews)
7.6
7.6
User Avatar
Hello I am C expert and interested in this project. I have reviewed the attached file and confident to handle it perfectly. I have a lot of experience in helping in students with assignments, so I will keep codes well documented and simple. Please communicate to discuss further. Regards Anshu
$30 USD in 1 day
4.7 (400 reviews)
7.4
7.4
User Avatar
I am very proficient in c and c++. I have 16 years c++ developing experience now, and have worked for more than 7 years. My work is online game developing, and mainly focus on server side, using c++ under Linux environment. I made many great projects using c++, for example, I made the tools which could convert java codes into c++ scripts, of course garbage collection included, this was very similar to a compiler, and was very complex. I also made our own mobile game using c++, I can show you the demo of client, if you like. I am very proficient in java also. I have a very good review on Freelancer.com, I never miss a project once I accept the job, you can check my review. Trust me, please let expert help you.
$80 USD in 1 day
4.8 (104 reviews)
6.7
6.7
User Avatar
seems easy, let's do this
$25 USD in 1 day
1.0 (1 review)
2.4
2.4
User Avatar
I have already implemented similar task. So you task will not take a lot of time and I can implement it without troubles.
$10 USD in 2 days
5.0 (3 reviews)
0.6
0.6
User Avatar
I assume that this project is a school project. Being a final year student myself, I can say that I can build this system in C++ in about 2 days. I have extensive experience with C++ and recently gave very succesful job interviews using this language. Let's chat and discuss more about this?
$30 USD in 2 days
0.0 (0 reviews)
0.0
0.0
User Avatar
im a c/c++ developer based on visual c++ and linux. also a c# developer. i also know java even tough not as much as c, but my apps includes tcp/ip which include thread and synchronization everywhere.
$24 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
Hello , Are you there ? . now I'm here . yes. . I would like to work with you . we can discuss more about the project . therefore can you talk with me ? .
$45 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
Hello, I hope you are doing fine. About me, I am a professional software developer with more than 4 years experience in developing software for both small and medium sized businesses. The skills that I posses are as follows; Web development skills (php, js, css,html), Software Development Skills (c#, java, c/c++, python), Mobile App development skills (android, windows) and User Interface and design skills. I read through your project description carefully and I am interested in doing this project because I currently don't have an on going project. I have experience with buffer bound and deadlocks algorithms. I've done producer-consumer problems before in campus and even in simple programs. According to your project, you want to implement a solution that uses semaphores and conditional variables. This is not hard to do, it can take me 1-2 days to complete it and my price is $30. This being a proposal, I can't say much but all I can guarantee you is that, if you give me a chance to do this project, I will make it a success and deliver all the objectives. THANKS
$30 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
Good evening. From what I understand from the PDF, you want to take your simple example (communication between one consumer and one producer over one buffer) and generalize it for 10 buffers (10 pieces of consecutive data) . The unprotected way can be done using 2 shared integers, one for the writer, one for the reader , so that if the reader value is equal to the writer value, you wait for the writer to finish (lock the mutex) , and then you process the data. The protected way is done with conditional blocks , if the writer reaches the reader for example, it will wait (using a _cond_wait) until the reader signals him to write again. If you add multiple readers, writers , the way I described will put all writers to wait for one of them to finish all his data. Is this what you need? Do you need a different implementation? Thank you for your time!
$15 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
FREDERICK, United States
5.0
13
Payment method verified
Member since Jan 24, 2017

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.