Results 1 to 4 of 4

Thread: about setDaemon....

  1. #1
    Contributing Member
    Join Date
    Sep 2006
    Answers
    962

    about setDaemon....

    What is setDaemon and how it works? I am searching in google but i am not clear with that. I want some simple example program to explain this..Please if anybody have a idea then post here.

    -----------------------
    suresh


  2. #2
    Expert Member
    Join Date
    Sep 2006
    Answers
    477

    Re: about setDaemon....

    If you just want to know what setDaemon does, it is very very simple. If you give setDaemon(true) then it will make the current thread a daemon thread and vice versa.

    Hope that helped.
    Cheers!
    Kalayama

    Last edited by kalayama; 05-11-2007 at 06:41 AM. Reason: Typo...
    [COLOR="Blue"][SIZE="2"]"If you are not living on the edge of your life, you are wasting space"[/SIZE][/COLOR]

    Someone says "Impossible is nothing". The man next him says "Let me see you licking your elbow tip!"

  3. #3
    Contributing Member
    Join Date
    Sep 2006
    Answers
    962

    Re: about setDaemon....

    Kalayama can you please explain with one simple example for how it works.(In C++ or Java)

    -------------------------
    suresh


  4. #4
    Expert Member
    Join Date
    Sep 2006
    Answers
    477

    Re: about setDaemon....

    Suresh, check this JAVA link, it should be clear to you, if you still need an example I can write it for you (Need some time as I am bit held up now)

    http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Thread.html#setDaemon(boolean)


    Cheers!
    Kalayama

    [COLOR="Blue"][SIZE="2"]"If you are not living on the edge of your life, you are wasting space"[/SIZE][/COLOR]

    Someone says "Impossible is nothing". The man next him says "Let me see you licking your elbow tip!"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact