in reply to Re^3: perl -Dusethreads compilation
in thread perl -Dusethreads compilation
# 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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: perl -Dusethreads compilation
by Corion (Patriarch) on Apr 05, 2010 at 15:32 UTC | |
by almut (Canon) on Apr 05, 2010 at 15:52 UTC | |
by Corion (Patriarch) on Apr 05, 2010 at 16:01 UTC | |
by almut (Canon) on Apr 05, 2010 at 16:09 UTC | |
|
Re^5: perl -Dusethreads compilation
by BrowserUk (Patriarch) on Apr 05, 2010 at 16:01 UTC | |
by mr_p (Scribe) on Apr 05, 2010 at 17:05 UTC | |
by BrowserUk (Patriarch) on Apr 05, 2010 at 18:39 UTC | |
by mr_p (Scribe) on Apr 05, 2010 at 20:45 UTC | |
by BrowserUk (Patriarch) on Apr 05, 2010 at 21:07 UTC | |
|