I’m working on developing TDMA on GR using RedHat Enterprise Linux WS
I intend to use semaphores or mutex for controlling access to shared
when events like packet arrivals and timeouts occur.
However, I understand based on the man pages that a number of the calls
semaphores and mutex may cause a deadlock when the calling thread
be handling an asynchronous signal.
First of all, what are asynchronous signals in this context? If they
to events whose time occurance is unpredictable, wouldn’t such signals
to a really large number of cases, including packet arrivals?
The man pages say that sem_post is the only POSIX call that handles
asynchronous signals fine. What use is this if I can’t use sem_wait with
What is your experience with semaphores and mutex?