hi well this is the server code i have coded this but i got this idea because of a book , but one thing is striking my mind and that is
when the click the button the print writer will flush the data to the client and a new
thread is getting created ..but wait from here i cant understand whats happening
see the first time i click the button the data is send to the client and server starts a thread which is listening to the client so , as expected client will reply ..now server's listening thread is completed
after receiving the data from client ...... but
when i again send the message from the client why server's listening thread is still listening (i mean it is in running or runnable state and do back & forth between this two states)but the question is why the thread is not completed and go into terminated state why it is keep running ?
[edited for language]