V
Vadivel Kumar
I have some hundred files (or webpages, just for example sake) which i have
to process
for some business logic. I have to read this files and do some thing as per
the given requirement.
I thought of using threads to do this. So, i tried to create some 10 threads
which concurrently
read the files and give it back to my business logic layer. A static
function will take a parameter which is a file name
and give it to the callback function (async mode) which will read and do all
the stuff....
Now, the issue is all my threads are ending before the operation is over. I
tried using Monitor.Wait, nothing happens properly.
I request you guys to give me some sample code or article which could be the
same kind
Thanks in Advance
Vadivel Kumar
to process
for some business logic. I have to read this files and do some thing as per
the given requirement.
I thought of using threads to do this. So, i tried to create some 10 threads
which concurrently
read the files and give it back to my business logic layer. A static
function will take a parameter which is a file name
and give it to the callback function (async mode) which will read and do all
the stuff....
Now, the issue is all my threads are ending before the operation is over. I
tried using Monitor.Wait, nothing happens properly.
I request you guys to give me some sample code or article which could be the
same kind
Thanks in Advance
Vadivel Kumar