Write algorithm for Producer consumer problem using Semaphores using Switch condition? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Write algorithm for Producer consumer problem using Semaphores using Switch condition?

12th Feb 2023, 11:20 AM
KGS Sumanth
KGS Sumanth - avatar
2 Answers
+ 8
Sumanth K , your description is very vague. please give a more detailed information. the post should include: > the programming language (to be placed in tags) > a clear task description with input / output sample > a link that points to your code try > a description what exactly your issue is, (if possible including an error message)
12th Feb 2023, 11:29 AM
Lothar
Lothar - avatar
0
As said above you haven't tagged any languages to use, so I found this website with examples in python: https://superfastpython.com/thread-producer-consumer-pattern-in-python/
12th Feb 2023, 7:11 PM
Ervis Meta
Ervis Meta - avatar