(notonline)--> without js -- (critical sections) integer cs = init_cs() -- Create a new critical section ... enter_cs(cs) -- Begin mutually exclusive execution bool b = try_cs(cs) -- As enter_cs, but yields false (0) if the lock cannot be obtained instantly leave_cs(cs) -- End mutually exclusive execution ... delete_cs(cs) -- Delete a critical section that you have no further use for