What do you mean by "calls it first"? Programs run in parallel under multi-processor setups. The calls may be simultaneous.
Do you have one threaded program that needs to serialize its accesses? Or is it multiple programs that need to cooperate? (In the first case, just lock a shared variable and that's it.)
In reply to Re: Critical section FCFS
by Anonymous Monk
in thread Critical section FCFS
by aj7700
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |