Skip to content

Instantly share code, notes, and snippets.

@User001501
User001501 / multithreaded_sqlite.py
Last active February 5, 2024 13:59 — forked from consindo/multithreaded_sqlite.py
Multithreaded SQLite Python
from threading import Thread
from multiprocessing import Queue
import sqlite3, sys, time, datetime
class MultiThreadOK(Thread):
def __init__(self, db):
super(MultiThreadOK, self).__init__()
self.db=db
self.reqs=Queue()
self.start()