Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Why choose semaphore

Daljeet12

Member level 4
Joined
Jun 16, 2018
Messages
78
Helped
0
Reputation
0
Reaction score
0
Trophy points
6
Activity points
648
Hello everyone,

Could someone please explain semaphores in a way that's easy to understand, and perhaps provide some practical examples of how they're used in real-world scenarios within an OS?


Let's say we have a shared resource, like a printer, that multiple threads need to use concurrently. We want to ensure that only one thread can print at a time to avoid conflicts. What would you use mutex or semaphore.

Thank you in advance."
 

LaTeX Commands Quick-Menu:

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top