Find Jobs
Hire Freelancers

Create a c program using multithreading and semaphore

$10-30 USD

Fermé
Publié il y a presque 2 ans

$10-30 USD

Payé lors de la livraison
--->Create a global array of integers of size 5. --->Create five producer threads and five consumer threads. The producer threads will fill up the array with sequential numbers while the consumers will consume the arrays and display the numbers. --->Use a semaphore (‘empty’) to block the producers when the buffer is full and use a different semaphore (‘full’) to block the consumers when the buffer is empty. The producer needs to signal the ‘full’ semaphore and the consumer needs to signal the ‘empty’ semaphore. --->Use a consumer mutex lock to protect the consumer’s critical section and a producer mutex to protect the producer’s critical section. --->Both the producer and consumer threads should be running in infinite loops (while(1)). The consumer will exit the entire process when it consumes the integer 1000. The 5 producers will be inserting numbers, in order, from 0-1000. So the first producer will produce 0, the second will produce 1, and so forth, until the array is filled (protected with the empty semaphore). The consumers will be doing the opposite: as long as there are items in the array (this is the job of the full semaphore), they should be removing the items, signaling the producers and allowing another item to be produced; e.g., when 0 is removed, the next producer will fill it with 5. The first consumer will remove 0 and display it, the second will remove 1 and display it, etc. The output will be a series of values: 0 1 2 3 4 ... all the way to 1000. Submit three files (prod_cons_NAME.c , [login to view URL], and Makefile)
N° de projet : 34135159

Concernant le projet

18 propositions
Projet à distance
Actif à il y a 2 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
18 freelances proposent en moyenne $72 USD pour ce travail
Avatar de l'utilisateur
Hello Sir/ Ma’am We are a group of Software Engineers (Programmers) having 10+ years of experience. Expert in JAVA, C, C++ , C# , Python, MATLAB. Done 700+ projects here on FREELANCER.COM. Please check our profile for reference. https://www.freelancer.com/u/NovaSofts The bid is negotiable and we can talk about the price. Thank you
$40 USD en 1 jour
4,9 (332 commentaires)
7,7
7,7
Avatar de l'utilisateur
HI..I am proficient in C/C++ programming with multithreaded programs using semaphore, threads and can help you complete the given project specs with well commented code.
$70 USD en 2 jours
4,9 (223 commentaires)
6,7
6,7
Avatar de l'utilisateur
Hi there, I checked your requirements and guarantee you it's gonna be done within the next few hours. Let's contact via chat so that I can start work immediately. Wish you the best.
$20 USD en 7 jours
5,0 (86 commentaires)
5,6
5,6
Avatar de l'utilisateur
Heyy I am expert in multithreading semaphores mutexlocks etc and I can help you with your project message me to discuss so that we can start working on it
$20 USD en 1 jour
4,9 (69 commentaires)
5,3
5,3
Avatar de l'utilisateur
Hi, I have great experience in implementing multi threaded applications in both C and C++, for the Linux platform. I have lots of experience with thread synchronization using mutexes or semaphores and I have developed multi threaded web servers and many more. I am very much interested in discussing the details of the project and I am very much interested in working on this amazing project. Please feel free to contact me via chat so that we can discuss further and start working on this amazing project right away!!! Best Regards, Aravind A
$30 USD en 1 jour
4,9 (30 commentaires)
4,6
4,6
Avatar de l'utilisateur
I have good experience in Linux System programming and pthreads. I can take your specs make a C program using pthreads library under Linux meeting the specs. I can do this work well. Thank you.
$40 USD en 7 jours
4,8 (2 commentaires)
3,9
3,9
Avatar de l'utilisateur
Hi, I am an experienced C , C++, Java, C# and QT developer. please visit my profile to view my related works. Also worked in Java , JavaScript and React https://www.freelancer.in/u/soumenmurmu?filter=active Thanks
$20 USD en 7 jours
4,9 (10 commentaires)
3,9
3,9
Avatar de l'utilisateur
Hello, How are you today? I have briefly read through your project details posted. I believe amd the best person who can deliver as per the requirements however I need us to discuss for more clarity on the details, deadline and budget as well. I'm very prolific in the following skills among others as listed on my profile: C Programming C++ Programming I hope that this projects is still available. If the job’s not longer, I’d appreciate you throwing my hat into the ring for any similar opportunities in the future. You can hire me directly via https://www.freelancer.com/u/VirtualBrainInc. Thank you for your time, I look forward to hearing from you soon, Best Wishes, Kevin M
$420 USD en 7 jours
5,0 (3 commentaires)
3,3
3,3
Avatar de l'utilisateur
actually i am a data entry expert so, i can complete my job perfectlyand timely and i am hardworking employ
$20 USD en 7 jours
0,0 (0 commentaires)
0,0
0,0
Avatar de l'utilisateur
Hi, I've read your project and I have worked before on thread manipulation. So let's have a quick chat about your project. Thanks in advance, Best Regards,
$300 USD en 7 jours
0,0 (0 commentaires)
0,0
0,0
Avatar de l'utilisateur
I am a C and C++ developer with the experience to write the code exactly as required, please contact me and lets chat about further.
$30 USD en 7 jours
0,0 (0 commentaires)
0,0
0,0
Avatar de l'utilisateur
I had a short experience with multithreading and semaphores during a course and will have to quickly read up on it again, so if you can't find anyone else I'm up for it.
$20 USD en 3 jours
0,0 (0 commentaires)
0,0
0,0
Avatar de l'utilisateur
Hello sir. Read your description related multithreading your work is easy i can do your work in 2 days. Iam an C Programming expert. So much interested to solve your problem.
$10 USD en 2 jours
0,0 (0 commentaires)
0,0
0,0
Avatar de l'utilisateur
I have around 5 years of experience in embedded SW development in automotive standard. I can deliver your code in a very clean format. Do call me at +918712332180 to discuss more.
$60 USD en 7 jours
0,0 (0 commentaires)
0,0
0,0
Avatar de l'utilisateur
I already done similar project and i will provide you with it after required changing within a short interval of time and at a very low price.
$10 USD en 1 jour
0,0 (0 commentaires)
0,0
0,0
Avatar de l'utilisateur
Iam a C++ Developer in a Top MNC company in india, this is a simple task which we are more familier with
$25 USD en 7 jours
0,0 (0 commentaires)
0,0
0,0

À propos du client

Drapeau de UNITED STATES
Houston, United States
0,0
0
Membre depuis juil. 15, 2022

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.