One process in the critical section
Only one process at a time may run a critical section (e.g. a background job). They coordinate with an advisory lock keyed 42. Another process already holds it. Write a statement that TRIES to take lock 42 and returns the result immediately, without hanging — so the result tells you the section is already busy.
Pieslēdzies, lai redzētu iesniegumu vēsturi
PieslēgtiesPieslēdzies, lai izmantotu AI mentoru
Pieslēgties