How to use two threads
Hi , All...
I am new to thread programming... well i want to know what is the best suitable way to use two threads pausing the one in between...
That is,.. I have a one main Thread .. and i have another thread Thread_2.
What i want is to run Thread_2 and pausing the main thread since the thread_2 not completes it's work.. and then main thread runs its and do its task..
Your main thread can join() the other thread; read the API documentation for the Thread class for details.
Originally Posted by rajan701v
you can use 2 threads useing 1st thread will start another thread will run
like client and server application in : client is sending a request to server at the same time server is responding to u.