in reply to Re: Perl Threads
in thread Perl Threads

Hmm, main thread is detached?
$ perl -Mthreads -e " threads->detach " Thread already detached at -e line 1. $ perl -Mthreads -e " threads->self->join " Cannot join a detached thread at -e line 1.

Replies are listed 'Best First'.
Re^3: Perl Threads ( main thread is detached )
by BrowserUk (Patriarch) on Aug 13, 2015 at 23:56 UTC
    Hmm, main thread is detached?

    How could it be otherwise? What part of the process could join the main thread?

    The main thread, is the process. Its return value can only be retrieved by another process; in which context thread->join doesn't make any sense.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    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". I knew I was on the right track :)
    In the absence of evidence, opinion is indistinguishable from prejudice.
    I'm with torvalds on this Agile (and TDD) debunked I told'em LLVM was the way to go. But did they listen!