perl threads will not make your program faster on a CPU with more cores. Someone recently tested it and the perl implementation of threads is actually making it worse on multi-core machines in most cases
Better use real processes and for example the module MLDBM::Sync to make concurrent access to it reentrant.
Also possible would be using a real separate database engine like mysql or postgres. This would already split the task into two processes and concurrent access would be handled completely by the database
In reply to Re: If I am tied to a db and I join a thread, program chrashes
by jethro
in thread If I am tied to a db and I join a thread, program chrashes
by lance0r
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |