in reply to Re^11: Forking Clients
in thread Forking Clients

This makes sense, thank you for your clear explanation and for sticking with me through all my questions.

I assume in the instances where I don't need the information, lets say for example I kick of some command blindly, then I can just not do a join for it. Is this correct?

Again thank you for your help, I will play with this more today, and post back my results and questions if I have any.

Replies are listed 'Best First'.
Re^13: Forking Clients
by BrowserUk (Patriarch) on Oct 16, 2008 at 18:09 UTC
    I assume in the instances where I don't need the information, lets say for example I kick of some command blindly, then I can just not do a join for it. Is this correct?

    If there is nothing useful returned or you just aren't interested in what is, just detach it at the point of creation:

    threads->create( ...)->detach;

    And any return will be discarded.

    If you're not sure if you will want the returns or not, start it in the normal way and decide later. If you want it, do the join. If you don't detach it as soon as you know that.


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.