User:Devon McCormick/mutex

From J Wiki
Jump to navigation Jump to search

Here's my first try at some code to allow processes to co-operate by implementing mutual exclusion, or "mutex".

The basic code uses J file-locking to allow processes to take turns holding a common file.

The test cases are crucial to this endeavor.