• 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
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

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
 
Your mother was a hamster and your father was a tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic