• Post Reply Bookmark Topic Watch Topic
  • New Topic

where do i get addwaitNotify() method....?

 
maateen ashraf
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if someone helps me out to get the method addWaitNotify()
i heard that this method is used instead of suspand()
plz help me out
in this respect...
thanx in advance...
 
Rahul Mahindrakar
Ranch Hand
Posts: 1869
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mateen,
I am sorry i could not get what you want. Could you please elaborate.
 
maateen ashraf
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello,
Rahul Mahindrakar
thanX for ur immidiate response...
actually i want to stop a thread which is continously listening on a specific port where a multithreaded server is running...
i actually want my client thread to stop when a client logs off
so what should i use
whether
Thread.stop()
Thread.Suspand()
Thread.distroy()
so would u help me out in this regard
thanx in advance...
maateen
 
Rahul Mahindrakar
Ranch Hand
Posts: 1869
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Mateen what you can do is have a while loop inside the run method coded like this.

Hope this helps
 
maateen ashraf
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok
thats fine
let me check it first
then i'll tell u if it does help me.
anyhow thanx for ur that much immidiate responses...
bye for now
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!