June 2001
Intermediate to advanced
688 pages
19h 18m
English
Berkeley DB fully supports multithreaded applications. The Berkeley DB library is not itself multithreaded because it was deliberately architected to not use threads internally because of the portability problems it would introduce. Environmental and database object handles returned from Berkeley DB library functions are free-threaded. No other object handles returned from the Berkeley DB library are free-threaded. The following rules should be observed when using threads to access the Berkeley DB library:
The DB_THREAD flag must be specified to the DBENV→open and DB→open functions if the Berkeley DB handles returned by those interfaces will be used in the context of more than one thread. Setting the DB_THREAD ...