in reply to faster with threads?

Also this script will run on a machine with 2 cpus. Will the threading enable it to use both cpu's?
This depends on the threading implementation of your operating system. I believe that on FreeBSD 4.x it won't (unless you use the linuxthreads package), while on Linux it will.

Replies are listed 'Best First'.
Re^2: faster with threads?
by hakkr (Chaplain) on Jun 09, 2004 at 13:28 UTC
    Check your kernel if you are using the smp linux kernel theres a good chance it will use both processors. Also check if your db is setup to use threads