in reply to Multithreading and DBI

Use forking rather than threads. Collect the results in files. Read the files at the end. Parallel::ForkManager can help.