Find Jobs
Hire Freelancers

C programming on Linux - Multithreaded

$10-30 USD

Abgeschlossen
Veröffentlicht vor etwa 8 Jahren

$10-30 USD

Bezahlt bei Lieferung
: Office Hours Multi-Thread Programming - You have been hired by the School of Computer Science at FIU to write code to help synchronize a professor and his/her students during office hours. The professor, of course, wants to take a nap if no students are around to ask questions; if there are students who want to ask questions, they must synchronize with each other and with the professor so that (i) no more than a certain number of students can be in the office at the same time because the office has limited capacity, (ii) only one person is speaking at a time, (iii) each student question is answered by the professor, (iv) no student asks another question before the professor is done answering the previous one, and (v) once a student finishes asking all his/her questions, he/she must leave the office to make room for other students waiting outside. You are to provide the following functions:  Professor(). This functions starts a thread that runs a loop calling AnswerStart() and AnswerDone(). See below for the specification of these two functions. AnswerStart() blocks when there are no students around.  Student(int id). This function creates a thread that represents a new student with identifier id that asks the professor one or more questions (the identifier given to your function can be expected to be greater or equal to zero and the first student's id is zero). First, each student needs to enter the professor’s office by calling EnterOffice(). If the office is already full, the student must wait.
Projekt-ID: 9991391

Über das Projekt

4 Vorschläge
Remote Projekt
Aktiv vor 8 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
Ive done a few synchronisation assignments already, although I haven't done this one it seem very obvious where some semaphores should be put to make it work so I guess its less than an hour to do...
$30 USD in 1 Tag
5,0 (42 Bewertungen)
5,2
5,2
4 Freelancer bieten im Durchschnitt $48 USD für diesen Auftrag
Avatar des Nutzers
Hi, I have great experience in creating Linux multithreaded programs and can help you to complete this assignument. I guarantee timely delivery and professional well-commented source code, as required in your assignment description.
$55 USD in 5 Tagen
5,0 (21 Bewertungen)
4,9
4,9
Avatar des Nutzers
hi i read your require about operating systems subject synchronization problem i'd like to do this thanks and regards
$55 USD in 4 Tagen
0,0 (0 Bewertungen)
0,0
0,0

Über den Kunden

Flagge von UNITED STATES
Miami, United States
4,4
3
Zahlungsmethode verifiziert
Mitglied seit März 25, 2015

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.