FLoM is a free open source distributed lock manager that can be used to synchronize shell commands, scripts and custom developed software.
When used in a shell environment, FLoM manages process synchronization in the same way that "nice" manages process prioritization.
Shell commands, scripts and custom programs can be synchronized inside a single system or in a network of IP connected systems. FLoM supports different types of abstract resources: simple, numeric, set, hierarchical and transactional sequence.
...
...Contributors have provided implementations and ports in many languages and folders (shell, Ruby, Python, Node, Perl, PowerShell, Go, Java, etc.), and the project explicitly welcomes pull requests that add additional language implementations.