Curbside Collections
This can be known as from any course of or thread, not onlythe process or thread which originally acquired the lock. With the block argument set to False, the method call does notblock. If the lock is presently in a locked state, return False;in any other case set the lock to a locked state and return True. If a process is killed while it's trying