Click here to Skip to main content
15,922,155 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All

I need to Read the Zip file and Extract and Relocate.
Since this is a large file(2gb) operation, i am using three threads.
One for Reading and another for Extracting and another for Relocate.
Is there anyway for the second thread to wait until the first thread completes the operation. And the how first thread will communicate to second thread?




Reagrds
Froxy
Posted

Hi,

I guess this link about communication between multi threads would help you.

.NET multi-threading and communication between threads[^]
 
Share this answer
 
They created a special class, just for you ;-) called the ReaderWriterLock
http://msdn.microsoft.com/en-us/library/system.threading.readerwriterlock.aspx[^]

Good luck!
 
Share this answer
 
you can use the dos command
echo batch controller
call C:\Users\Desktop\test.bat
call C:\Users\Desktop\test2.bat
echo batch controller running again
exit
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900