in reply to Re^6: If I am tied to a db and I join a thread, program chrashes
in thread If I am tied to a db and I join a thread, program chrashes

I don't question that the threads are beneficial for your problem. The interesting thing would be to know what 4 threads would do on *one* core. If you have a flash of curiousity, you could reboot and give one of the boot options "nosmp" or "maxcpus=0" to grub, then test again your threads version.
  • Comment on Re^7: If I am tied to a db and I join a thread, program chrashes