in reply to Re: Fork and creating a thread exits the process
in thread Fork and creating a thread exits the process
I am not confident that this is correct. Based on my understanding if ithreads, it's not traditional light weight threads (e.g., pthreads), so there is no possibility of the threadsafeness of the shared library being tested. The ideal of threadded shared libraries is certainly interesting and I think appropriate if implemented carefully in the library with mindfulness that it's going to be used by a single perl parent process and perl datastructures are in no way thread safe.
There seems to be a severe lack of familiarity in the Perl community with what "real" threads are wrt "multithreading". No doubt this is not lost of many, but I continue to see over and over again the suggestion that Perl ithreads are related to traditional shared memory threads. This is simply not the case.
The suggestion that Perl ithreads should not be used on Windows also seems to contradict the author of Coro's explaination (in POD of Coro) of what Perl threads are, and based on my knowledge of threads he "gets it". In fact, he indicates that ithreads is actually appropriate to some degree for Windows but completely brain dead for *nix/POSIX platforms.
I offer the above simply to prevent the spread of false information, I am open to being wrong and would appreciate constructive correction in any form.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Fork and creating a thread exits the process
by ikegami (Patriarch) on Aug 12, 2020 at 14:42 UTC | |
|
Re^3: Fork and creating a thread exits the process
by jeffenstein (Hermit) on Aug 12, 2020 at 08:39 UTC | |
|