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.
Logga in för att se historik över inskick
Logga inLogga in för att använda AI-mentorn
Logga in