.Net support parallel execution of code through multithreading. A thread is a lightweight process.
Some methods used in Threading
Join :- If one thread is running and you want to start a new thread after ending the first one. You can call join methods for that.
t2.join();
Sleep :- If you want to suspend the thread for some time you can use Sleep method.
Abort :- You can abort the thread forcefully in the middle by using abort method.
No comments:
Post a Comment