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.
Log in om je inzendingsgeschiedenis te zien
InloggenLog in om de AI-mentor te gebruiken
Inloggen