develooper Front page | perl.perl5.porters | Postings from April 2018

Re: [perl #125106] Why are threads discouraged?

Thread Previous | Thread Next
Leon Timmermans
April 11, 2018 08:55
Re: [perl #125106] Why are threads discouraged?
Message ID:
On Wed, Apr 11, 2018 at 8:45 AM, bulk88 via RT
<> wrote:
> On Tue, 10 Apr 2018 15:25:00 -0700, LeonT wrote:
>> If that's not what one wants, it's probably possible to implement GIL
>> threading instead (though I'm not sure if we'd really want that
>> either). I think that's unexplored territory though.
> Wouldnt one of the existing fibers/future/promises/Coro/async-but-not-async-with-explicit-yields modules that swap Perl stacks inside the same interp/same perl thread be perl's already-implemented GIL concept?

AFAIK those are all "one interpreter one os-thread", wheras GIL
threading is "one interpreter many os-threads"


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About