Hi;
I have posted a similar post about a File Copy process that is multi-threaded where each thread is doing their part; i.e. copying then verifying etc.
Now i need some help how to stop my service/application as some threads are already running and some files are in process; so when i just close my application then that can result into some partial copy/move.
I'm looking for a way to stop my application that first completes the in process files then exit. (It can be abnormal termination)
Please suggest!
I have posted a similar post about a File Copy process that is multi-threaded where each thread is doing their part; i.e. copying then verifying etc.
Now i need some help how to stop my service/application as some threads are already running and some files are in process; so when i just close my application then that can result into some partial copy/move.
I'm looking for a way to stop my application that first completes the in process files then exit. (It can be abnormal termination)
Please suggest!
Comment