• 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
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
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
 
You had your fun. Now it's time to go to jail. Thanks for your help tiny ad.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic