• 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

get/setDaemon in Threads

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have been using K&Bs book to study; the section on Threading didn't have anything about daemon's in threads, but a practice exam I took had 3 questions on this topic. Is this an area I need to study for the 1.4 exam?
Thanks,
Cathy
 
Ranch Hand
Posts: 456
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No you don't need it for the exam.
You can be pretty confident that if it is not in K&B's book then it is not on the exam because she helped write the exam. Most of the other test makes did not have this inside info that she had and this is why they include some topics not on the exam.
 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A friend told me that he bought a test exam from SUN and he saw some questions about daemons threads so i decided to study it too
And there are only two ideas about daemons i think that are necessary for the exam:
1. if setDaemon is invoked on an alive thread then a runtime exception will occur
2. there are user threads an daemon threads and when all alive threads are daemons then the JVM can exit
 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
According to my experience, it is included in the requirement in the test.
Please study it clearly as you can.
Good luck!
Shirley
 
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm pretty sure it came up on the exam when I took it, but understanding daemons wasn't necessary for answering the question correctly. It was just noise added to disguise what was really being asked. Wish I could remember the gist of the question but I can't (so no use asking me).
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic