• 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
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

Stopping a thread !

 
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Under which condition will a currently executing thread stop?
a. When an interrupted exception occurs.
b. When a thread of higher prioriry is ready(becomes runnable)
c.When the thread creates a new thread
d. When the stop() method is called
Ans: a,b,d
Does a higher priority thread really cause the current method to stop running ? Or does this depend on thread scheduling policy ?
I can't seem to find the link to the discussion on 'stop'-ing a thread.
Maha anna, could u pls clarify 'stop' from the exam point of view again !
 
Ranch Hand
Posts: 116
 
reply
    Bookmark Topic Watch Topic
  • New Topic