Find Jobs
Hire Freelancers

SEMAPHORES

$20-25 USD

Fermé
Publié il y a plus de 20 ans

$20-25 USD

Payé lors de la livraison
Semaphore ImplementationYou are to design and develop your own implementation of a Semaphore, and then use that semaphore to develop the solution to the consumer-producer problem described below. The semaphore data structure and operations (P, V, initialize) that you design must include a blocking feature to eliminate (or really, reduce) busy-waiting. (You should consider using your spin-lock solution in implementing the semaphore operations.) Using your semaphore mechanism, you should implement the necessary code for CSenter and CSexit that will protect a critical section of code. In effect, your are simulating the semaphore operations. You are not permitted to use semaphores or semaphore operations that are part of the operating system; you are constructing your own! The problem that you are to solve is a consumer-producer problem. Using **at least** four processes ( two or more producer processes and two or more consumer processes), develop a concurrent program that produces values and consumes them. The values that are produced should be placed in a multi-element shared buffer. The **shared buffer** is one that is **in main memory** and accessible to all of the processes of the program. Obviously, you should use your semaphore implementation to ensure that the processes properly and safely access this shared buffer. Consumer processes and producer processes should be able to execute concurrently, whenever the buffer state has one or more filled or or one or more empty cells, respectively. You are to design a method of demonstrating and testing the program so that you can assure yourself, and me, that it is working properly, for varying speeds of producers and consumers. Refer to the document on materials to submit with your homework. <!--[if !supportEmptyParas]--> <!--[if !supportEmptyParas]--> Due: Sunday November 2 ## Deliverables CAN SOMEBODY HELP ME WITH THIS ## Platform UNIX
N° de projet : 3001081

Concernant le projet

5 propositions
Projet à distance
Actif à il y a 20 ans

Cherchez-vous à gagner de l'argent ?

Avantages de faire une offre sur Freelancer

Fixez votre budget et vos délais
Soyez payé pour votre travail
Surlignez votre proposition
Il est gratuit de s'inscrire et de faire des offres sur des travaux
5 freelances proposent en moyenne $15 USD pour ce travail
Avatar de l'utilisateur
See private message.
$21,25 USD en 1 jour
5,0 (12 commentaires)
4,3
4,3
Avatar de l'utilisateur
See private message.
$12,75 USD en 1 jour
4,4 (13 commentaires)
3,3
3,3
Avatar de l'utilisateur
See private message.
$8,50 USD en 1 jour
4,9 (13 commentaires)
2,8
2,8
Avatar de l'utilisateur
See private message.
$11,05 USD en 1 jour
3,8 (16 commentaires)
2,7
2,7
Avatar de l'utilisateur
See private message.
$21,25 USD en 1 jour
0,0 (0 commentaires)
0,0
0,0

À propos du client

Drapeau de UNITED STATES
United States
5,0
5
Membre depuis nov. 2, 2003

Vérification du client

Merci ! Nous vous avons envoyé un lien par e-mail afin de réclamer votre crédit gratuit.
Une erreur a eu lieu lors de l'envoi de votre e-mail. Veuillez réessayer.
Utilisateurs enregistrés Total des travaux publiés
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Chargement de l'aperçu
Permission donnée pour la géolocalisation.
Votre session de connexion a expiré et vous avez été déconnecté. Veuillez vous connecter à nouveau.