Find Jobs
Hire Freelancers

Analyze and correct psuedocode solution implementing synchronization with semaphores

$10-30 USD

Κλειστή
Αναρτήθηκε πάνω από 10 χρόνια πριν

$10-30 USD

Πληρωμή κατά την παράδοση
Bison World consists of a shopping mall and a buffalo ride that covers the 150 acre habitat. There are m visitors and n single-person vehicles. Visitors stroll around the mall at their leisure, then line up for the buffalo ride. When a buffalo vehicle is available, it allows the single passenger to climb aboard and drives around the habitat for a random amount of time. If the n buffalo vehicles are all taken, then a future rider waits; if a vehicle is available but no one is waiting, then the vehicle waits. The solution to this problem must synchronize visitor tasks and vehicle tasks using semaphores. Below is a potential solution. Assume initialization code exists. Correct any issues with this code, if any exist. Explain your position in detail. Semaphore vehicleAvailable = 0, vehicleTaken = 0, vehicleFilled = 0, visitorReleased = 0; Visitor() { [login to view URL](); [login to view URL](); [login to view URL](); [login to view URL](); } Vehicle() { while(True) { [login to view URL](); [login to view URL](); [login to view URL](); Drive through habitat for some arbitrary amount of time; [login to view URL](); } }
Ταυτότητα εργασίας: 5096038

Σχετικά με την εργασία

3 προτάσεις
Απομακρυσμένη Εργασία
Ενεργός/ή 10 χρόνια πριν

Ψάχνεις τρόπο για να κερδίσεις μερικά χρήματα;

Πλεονεκτήματα πλειοδοσίας στο Freelancer

Καθόρισε τον προϋπολογισμό σου και το χρονοδιάγραμμα
Πληρώσου για τη δουλειά σου
Περίγραψε την πρόταση σου
Η εγγραφή και η πλειοδοσία σε εργασίες είναι δωρεάν
3 freelancers δίνουν μια μέση προσφορά $67 USD για αυτή τη δουλειά
Avatar Χρήστη
I look forward to deliver the project as I am an expert in coding and like to discuss further .
$94 USD σε 3 ημέρες
4,7 (42 αξιολογήσεις)
6,5
6,5
Avatar Χρήστη
Hello, I am programming expert and can surely help you with this project, Please let me know if you are interested. Thank You
$54 USD σε 2 ημέρες
4,9 (39 αξιολογήσεις)
5,6
5,6
Avatar Χρήστη
Hi, I have strong background in Operating Systems concepts and experience in Algorithms. Let me help you. I am ready to start.
$54 USD σε 4 ημέρες
5,0 (13 αξιολογήσεις)
4,5
4,5

Σχετικά με τον πελάτη

Σημαία της UNITED STATES
Tampa, United States
5,0
1
Επαληθευμένη μέθοδος πληρωμής
Μέλος από Οκτ 14, 2013

Επαλήθευση Πελάτη

Άλλες δουλειές από αυτόν τον πελάτη

Java Burrito - repost
$30-250 USD
Ευχαριστούμε! Σου έχουμε στείλει ένα email με ένα σύνδεσμο για να διεκδικήσεις τη δωρεάν πίστωση σου.
Κάτι πήγε στραβά κατά την προσπάθεια αποστολής του email σου. Παρακαλούμε δοκίμασε ξανά.
Εγγεγραμμένοι Χρήστες Συνολικές Αναρτημένες Δουλειές
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Φόρτωση προεπισκόπησης
Δόθηκε πρόσβαση για Geolocation.
Η σύνδεση σου έχει λήξει και τώρα έχεις αποσυνδεθεί. Παρακαλούμε συνδέσου ξανά.