Open Source Your Knowledge, Become a Contributor

Technology knowledge has to be shared and made accessible for free. Join the movement.

Create Content

File Locks

In Java, we will use the java.nio.channels.FileLock class to demonstrate how to use it as a mutex that protects a critical section; this time around, only a single process can be inside said critical section:

Open Source Your Knowledge: become a Contributor and help others learn. Create New Content