June 2001
Intermediate to advanced
688 pages
19h 18m
English

The Locking subsystem provides interprocess and intraprocess concurrency control mechanisms. Although the Locking system is used extensively by the Berkeley DB Access Methods and Transaction system, it may also be used as a standalone subsystem to provide concurrency control to any set of designated resources.
The Locking subsystem is created, initialized, and opened by calls to DBENV→open with the DB_INIT_LOCK or DB_INIT_CDB flags specified.
The lock_detect function provides the programmatic interface to the Berkeley DB deadlock detector. Whenever two threads of control issue lock requests that are not carefully ...