• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
Ranch Hand
Posts: 1871
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 1871
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic