Open separate connections for each thread. Use locks on the console for atomic console writes.