Rule 184p-proc-step
Transitions
(184)
Comments
A process takes one reduction of its task at a time, and the steps of different processes, and every other transition, may come between any two of them. A process may thus be suspended at any ; a program may rely on nothing more. Rules (184) to (187) record the present time as the time of the process’s latest step. An action of a primitive of the platform acts on the world as the platform defines.
TeX source
\defnrule[r:p-proc-step]
{P(\pid)=(\tk,s',\pgorig)\premsep\tk\effred{\opt{\effa}}\tk'\\
\opt{\effa=\effdone{\pi(v_1\cdots v_k)}{\tk''}\premsep\pi\in\effPrimPlat}}
{(s,v,M,P,\sbv,Q,H)\step{\opt{\effa}}
(s,v,M,P+\{\pid\mapsto(\tk',s,\pgorig)\},\sbv,Q,H)}Tests (2)
- elm / MinimalTaskAndThenTestA task chained after a task that succeeds.
- elm-core / ProcessYieldThrashingTestTwo processes that each repeatedly yield with `Process.sleep 0` both run to completion.
Discussions
Discuss this rule·Search the discussions on GitHub
Discussions are on GitHub; one about this rule has [r:p-proc-step] in its title.
A Standard Definition of Elm? (Draft version 0.4) © Rupert Smith. The text is licensed under CC BY 4.0: share and adapt it freely, with credit and a link to the licence.