I'm trying to develop a software featuring multithreading. On Linux the script works fine, the module i've used is ''forks''. In other words, no problem of shared handlers between threads while querying db and stuff like that. Once i've been trying to run the script on windows (Strawberry Perl), when i try to cpan install forks it says that ''forks module'' is not supported for the current version of my OS (64bit). Moving over, i decided to use ''threads'' instead, but i gained the following error, almost certainly linked with shared handlers between threads.
'' Thread 1 terminated abnormally: DBD::SQLite::db prepare failed: handle 2 is owned by thread d97fe8 not current thread 3a01058 (handles can't be shared between threads and your driver may need a CLONE method added) at file.pl line 180, line 1. ''
How to fix the aforementioned problem and make the script runnable on windows Strawberry Perl?