# create n numbers of threads #create ftp connection/login while (1) { wait msg Q(); 1. dequeue element 2. download file from ftp server. 3. delete file. } # Master Thread #create ftp connection/login while (1) { if 'files exist on ftp server' { enqueue files to download } }
To sum it, master threads gets list to download files and workers just downloads the file.
I am worried about multiple threads colliding, race condtions, in NET::FTP module.
In reply to Re^4: perl -Dusethreads compilation
by mr_p
in thread perl -Dusethreads compilation
by mr_p
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |