Fetching the Return results of a spawned Thread



Is there any way to fetch the Return results of spawned threads within the parent script? I would like to do that because I'm having problems with Threads that do queries to a database, I often encounter Threads failing due to MySQL connection failures. As much as possible I plan to make the threads return the query string and let the parent script do the actual query. Thanks in advance.
.