Find Jobs
Hire Freelancers

a program that illustrate one producer and one consumer problem

$10-30 USD

Abgeschlossen
Veröffentlicht vor etwa 7 Jahren

$10-30 USD

Bezahlt bei Lieferung
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.
Projekt-ID: 13172129

Über das Projekt

15 Vorschläge
Remote Projekt
Aktiv vor 7 Jahren

Möchten Sie etwas Geld verdienen?

Vorteile einer Ausschreibung auf Freelancer

Legen Sie Ihr Budget und Ihren Zeitrahmen fest
Für Ihre Arbeit bezahlt werden
Skizzieren Sie Ihren Vorschlag
Sie können sich kostenlos anmelden und auf Aufträge bieten
Vergeben an:
Avatar des Nutzers
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 Tagen
5,0 (29 Bewertungen)
4,7
4,7
Avatar des Nutzers
$20 USD in 1 Tag
4,9 (74 Bewertungen)
5,3
5,3
15 Freelancer bieten im Durchschnitt $34 USD für diesen Auftrag
Avatar des Nutzers
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 Tag
4,9 (1106 Bewertungen)
7,6
7,6
Avatar des Nutzers
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 Tag
4,7 (400 Bewertungen)
7,4
7,4
Avatar des Nutzers
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 Tag
4,8 (104 Bewertungen)
6,7
6,7
Avatar des Nutzers
seems easy, let's do this
$25 USD in 1 Tag
1,0 (1 Bewertung)
2,4
2,4
Avatar des Nutzers
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 Tagen
5,0 (3 Bewertungen)
0,6
0,6
Avatar des Nutzers
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 Tagen
0,0 (0 Bewertungen)
0,0
0,0
Avatar des Nutzers
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 Tag
0,0 (0 Bewertungen)
0,0
0,0
Avatar des Nutzers
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 Tag
0,0 (0 Bewertungen)
0,0
0,0
Avatar des Nutzers
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 Tag
0,0 (0 Bewertungen)
0,0
0,0
Avatar des Nutzers
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 Tag
0,0 (0 Bewertungen)
0,0
0,0

Über den Kunden

Flagge von UNITED STATES
FREDERICK, United States
5,0
13
Zahlungsmethode verifiziert
Mitglied seit Jan. 24, 2017

Kundenüberprüfung

Danke! Wir haben Ihnen per E-Mail einen Link geschickt, über den Sie Ihr kostenloses Guthaben anfordern können.
Beim Senden Ihrer E-Mail ist ein Fehler aufgetreten. Bitte versuchen Sie es erneut.
Registrierte Benutzer Veröffentlichte Jobs
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Vorschau wird geladen
Erlaubnis zur Geolokalisierung erteilt.
Ihre Anmeldesitzung ist abgelaufen und Sie wurden abgemeldet. Bitte melden Sie sich erneut an.