Skip to main content

Two-phase locking via lockfiles

Project description

Two-phase locking with lockfiles

  • Initial release
  • Currently supports Linux/POSIX only
  • Documentation coming soon

Relies on modifying the number of open file descriptors for a lockfile.

Currently implements the 2PL lock compatibility table:

Lock type read-lock write-lock
read-lock Y N
write-lock N N

Read locks are called "concurrent," and write locks are called "exclusive."

The API, the naming, and the implementation are all subjects to change until the first stable release (i.e. until version 1.0.0, or earlier if explicitly stated).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

twpl-0.1.1.tar.gz (17.7 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page