Multiple File Access

Adonis Vargas deltapigz at telocity.com
Thu Jan 17 19:06:59 EST 2002


i am writing a small database application, utilizing bsddb, and have come
across
a problem, when i have more than one thread accessing the database, thread1
might be performing an output operation, then sync, but prior to the
synching
thread2 accessed the table and proceses the file in an out of sync format,
then
when thread2 syncs it reverts whatever thread1 did etc.

how do i go about this? ive thought up of a few scenarios to fix it but have
come
full circle.

any sugguestions would greatly be appreicated.

Adonis





More information about the Python-list mailing list