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

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

Thread Previous | Thread Next
From:
Leon Timmermans
Date:
April 11, 2018 08:55
Subject:
Re: [perl #125106] Why are threads discouraged?
Message ID:
CAHhgV8iMgS1NRnd1pL=5T7QKUP7gb9WuCSQAWNdGOP0Tnf4xGw@mail.gmail.com
On Wed, Apr 11, 2018 at 8:45 AM, bulk88 via RT
<perlbug-followup@perl.org> 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"

Leon

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About