How to pass a sqlite Connection Object through multiprocessing
问题 I'm testing out how multiprocessing works and would like an explanation why I'm getting this exception and if it is even possible to pass the sqlite3 Connection Object this way: import sqlite3 from multiprocessing import Queue, Process def sql_query_worker(conn, query_queue): # Creating the Connection Object here works... #conn = sqlite3.connect('test.db') while True: query = query_queue.get() if query == 'DO_WORK_QUIT': break c = conn.cursor() print('executing query: ', query) c.execute