Cold vs Hot co-routine

forax at univ-mlv.fr forax at univ-mlv.fr
Mon Dec 31 13:06:36 UTC 2018


The issue i see is that this model drift away from the thread model where the creation and the execution are two separated phases so it's less easy to convert a code that use a Thread to use a Fiber instead. 

Rémi

----- Mail original -----
> De: "Alan Bateman" <Alan.Bateman at oracle.com>
> À: "Remi Forax" <forax at univ-mlv.fr>, "loom-dev" <loom-dev at openjdk.java.net>
> Envoyé: Lundi 10 Décembre 2018 09:26:26
> Objet: Re: Cold vs Hot co-routine

> On 09/12/2018 22:39, Remi Forax wrote:
>> The latest API doesn't allow to create a Fiber without starting it,
>> so the model is now closer to what C# does than to what F# does.
>>
>> What is the rationale to not offer the choice to schedule or not the fiber when
>> you create it ?
>>
> Nothing discussed or decided on this yet. For now the API is minimal,
> the implementation leaves it open until we get there.
> 
> -Alan


More information about the loom-dev mailing list