Unix Programming - Re: how to check for completion of all threads when mutiple threads are running

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > April 2006 > Re: how to check for completion of all threads when mutiple threads are running





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: how to check for completion of all threads when mutiple threads are running
Maxim Yegorushkin

2006-04-02, 7:42 pm


star wrote:
> cat filelist.txt | while read filename
> do
> processa $filename
> done
>
>
> processb


why not:

processa ($cat filelist.txt)
processb

Where processa receives the lines from filelist.txt as char** agrv list
in int main(int argc, char** argv). After all threads in processa
complete processa returns and processb is executed than.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com