For SGI and Linux: Instr like Semaphore with a Setable Timeout

C

clusardi2k

Hello,

I am looking for instructions that do what a mutual exclusive
semaphore does but with some specifiable timeout for SGI and Red
Hat Linux. (I.E.: A Semaphore with a count of 1 but with a timeout)

In other words, I want to know how to guard a critical piece of
code, but I don't want to be forced to wait a long time in a
queue. In other words, I have processes that could go on living
without entering the critical section of code.

Thank you,
Christopher Lusardi
 
V

Victor Bazarov

I am looking for instructions that do what a mutual exclusive
semaphore does but with some specifiable timeout for SGI and Red
Hat Linux. (I.E.: A Semaphore with a count of 1 but with a timeout)

In other words, I want to know how to guard a critical piece of
code, but I don't want to be forced to wait a long time in a
queue. In other words, I have processes that could go on living
without entering the critical section of code.

Is there a C++ language question hiding in here I am not seeing?
I am genuinely curious. Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top