|Welcome to the Monastery|
Multi Threading in perl sample codeby shan_emails (Beadle)
|on Nov 05, 2012 at 05:40 UTC||Need Help??|
shan_emails has asked for the
wisdom of the Perl Monks concerning the following question:
I am new to perl and I have the below task
1) read the config from oracle10g DataBase table (each config has a one process file)
2) get the files for processing
3) logs the processing comments in a log file
This config has the total of 2500.
So after reading from Database and get the files so totally we have 2500 files, now split it to 5 parts and then process this 5 parts at simultaneously. And keep logs of all 5 threads in a single log file.
kindly give some sample code for this threading in perl.
I am using HP-UX in Unix Operating System.