• Post Reply Bookmark Topic Watch Topic
  • New Topic

how can I get message from another thread

 
sudhakar kandasamy
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have written a client applet which has logon,logoff...,When I click on login it sends request to server.It creates socket for the user.Actually I have written a socket class which accepts client request and then it creates a thread object which have functnalities of stream communications and it also creats timer thread,which works for 2 minutes.After 2 minutes it should inform
the priveous thread which sends the timer information to the client.
I want solution here.How can the socket thread get information(control) from timer thread after two minets are over.There is no return value to the run method.How should we use
isAlive() in socket to find the current thread completing time.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!