-
Deadlock
Does anyone know a concept in c that avoids deadlock using semaphores. I understand the concept of Deadlock but what I don't understand is how we incorporate the concept of deadlock to semaphores. Please if anyone could assist me I would be very greatful.
my email is [email protected]
Thanks in advance
:)
-
C doesn't know anything about semaphores - they're usually provided by some operating specific API
-
incorporate the concept into semaphores? improper placement of semaphores is what causes deadlock. I'm not sure I understand what you're asking but its up to the programmer to properly place semaphores in a way that won't produce deadlocks.