Hello all,
I want to ask something related to threads.
I create a thread from the main thread, say thread1.
Inside that thread1, I further create more threads, say thread2 and thread3.
Now during the execution of my program, I want to terminate all the threads(1,2 and 3) from main thread.
How can I do that?
WaitForSingleObject(m_hThread1, 50000);