• 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

daemon thread not covered in K&B book

 
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey:
i was just running through some practice questions regarding the Thread chapter, which also happens to be the last chapter of the SCJP 1.4 exam.

however, I run in some questions related to Daemon thread..i did a bit of research online and was able to answer the questions...But then again, I realize that daemon thread i not covered in the K&B book..

so I am just wondering for those of you who have taken the SCJP 1.4 exam, have you seen any questions regarding daemon thread?

Pleae do let me know.

Thanks
 
Ranch Hand
Posts: 502
jQuery Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
when I wrote my exam, there is no question about Daemon thread. But, I remember some people said, there might be chance to get question on this as because it is also Thread. So, better to prepared on that as well.
 
Sheriff
Posts: 11343
Mac Safari Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think I recall a 1.4 question that involved daemons, but I might be wrong. The key points are basically:
  • A running daemon thread will not prevent a program from exiting.
  • A thread can be designated as daemon using the setDaemon method (and tested using the isDaemon method).
  •  
    author
    Posts: 9050
    21
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Hmmm... in the original 1.4 exam there were no daemon thread questions. It's possible that as a few questions have been retired and a few new questions introduced, that a daemon question has crept into the exam. You probably won't get any, you "might" get one. If so, all you need to know is what Marc posted.
     
    marc weber
    Sheriff
    Posts: 11343
    Mac Safari Java
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    At this point, maybe I'm confusing a mock question with a real one.
     
    Bert Bates
    author
    Posts: 9050
    21
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    At this point I'm really not sure Marc, I think it's quite possible that Sun has added one. Occasionally an original question will be retired from the exam, and one of the backup questions will be used to replace it - I think perhaps one of those second-stringers that came off the bench mentioned daemon threads.
     
    Try 100 things. 2 will work out, but you will never know in advance which 2. This tiny ad might be one:
    a bit of art, as a gift, the permaculture playing cards
    https://gardener-gift.com
    reply
      Bookmark Topic Watch Topic
    • New Topic