Recipe 2.9. Synchronizing Resource Access Across Processes on Unix
2.9.1. Problem
You want to
ensure that two processes cannot simultaneously access the same
resource, such as a segment of shared memory.
2.9.2. Solution
Use a lock file
to signal that you are accessing the resource.
You are currently reading a PREVIEW of this book.
Get instant access to over
$1 million worth of books and videos.
Start a Free Trial