|Perl Monk, Perl Meditation|
faster with threads?by js1 (Monk)
|on Jun 09, 2004 at 08:28 UTC||Need Help??|
js1 has asked for the wisdom of the Perl Monks concerning the following question:
In order to run this script as quickly as possible would I be right to run the database update whilst I carry on parsing the log? I presume I need some sort of thread to do this (not something I've done before in perl).
Could someone tell me if I'm on the right track here and if not point me in the right direction? If threads are the way to go where would be the best place to start?
Also this script will run on a machine with 2 cpus. Will the threading enable it to use both cpu's?
Thanks a lot,
Edit by BazB: changed href links into Perlmonks node links.