You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a program that spawns 8 threads to work on I/O bound tasks. To keep track on what has been worked on and its results, I use a sqlite database.
AFAIK, write access is locked in sqlite. I was wondering how read access is managed. Can all those 8 threads read simultaneously from the database file without locking?
My tasks are split into two phases: collection and processing. Only collection requires writing. Processing is fully parallel.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a program that spawns 8 threads to work on I/O bound tasks. To keep track on what has been worked on and its results, I use a sqlite database.
AFAIK, write access is locked in sqlite. I was wondering how read access is managed. Can all those 8 threads read simultaneously from the database file without locking?
My tasks are split into two phases: collection and processing. Only collection requires writing. Processing is fully parallel.
Beta Was this translation helpful? Give feedback.
All reactions