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

InterruptedException...

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
I am confused about when the checked InterruptedException is thrown and MUST be handled. Can someone tell me if I am right hereafter :
does not throw InterruptedException :
yield()
throws InterruptedException :
join(), sleep(long l), wait()...
Can anyone help me on that ? Thanks
Fabien
 
Ranch Hand
Posts: 1090
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Fabien
Yes you are correct.
I think that the yield() method will not release any locks if any it is holding so in that case the yield() method won't be of any use.
[ July 27, 2003: Message edited by: Anupam Sinha ]
reply
    Bookmark Topic Watch Topic
  • New Topic