Terminology
The following are some definitions that will be helpful for understanding transactions:
Thread of control Berkeley DB is indifferent to the type or style of threads being used by the application; or, for that matter, if threads are being used at all—because Berkeley DB supports multiprocess access. In the Berkeley DB documentation, any time we refer to a thread of control, it can be read as a true thread (one of many in an application’s address space) or a process.
Free-threaded A Berkeley DB handle that can be used by multiple threads simultaneously without any application-level synchronization is called free-threaded.
Transaction A transaction is one or more operations on one or more databases that should be treated as a single ...