Skip to content

Instantly share code, notes, and snippets.

@consindo
consindo / multithreaded_sqlite.py
Created September 30, 2012 08:14
Multithreaded SQLite Python
from threading import Thread
from Queue import Queue
import sqlite3
class MultiThreadOK(Thread):
def __init__(self, db):
super(MultiThreadOK, self).__init__()
self.db=db
self.reqs=Queue()
self.start()