Skip to content

Commit c6a1f12

Browse files
committed
experiment
1 parent 001bc76 commit c6a1f12

File tree

2 files changed

+44
-7
lines changed

2 files changed

+44
-7
lines changed

corout.fdoc

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,25 @@
1-
21
@title coroutines
3-
@h1 Top
4-
blam
2+
@h1 The concept of fibration
3+
A <em>coroutine system</em> is a collection of processes called <em>fibres</em>
4+
with these properties:
5+
<ul>
6+
<li>Exactly one process can be <em>running</em> at once, the others are said to be <em>suspended</em></li>
7+
<li>Control cannot be pre-empted, but is yielded voluntarily</li>
8+
</ul>
9+
In our system, there are four principle operations:
10+
<ol>
11+
<li><em>spawn</em> a new fibre</li>
12+
<li><em>read/em> from a channel</li>
13+
<li><em>write/em> to a channel</li>
14+
<li>Commit <em>suicide</em>
15+
</ol>
16+
A fibre of control can be in one of four states:
17+
<ol>
18+
<li>Running</em>
19+
<li>Active (but not running)</li>
20+
<li>Waiting on I/O</li>
21+
<li>Dead</li>
22+
</ol>
523
@h2 next
624
stuff
725
@felix

tmp.html

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@
305305
}
306306
}
307307
var allbuttons = [
308-
"Top",
308+
"The concept of fibration",
309309
"next",
310310
"high",
311311
"med1",
@@ -370,7 +370,7 @@
370370
<!--Left Margin Toc-->
371371
<div id="leftmargintoc">
372372
<!--Left Margin Toc Main Contents-->
373-
<div class=m1 onclick="mshow('menu1','#Top_h')"> <a href="#Top_h">Top</a></div>
373+
<div class=m1 onclick="mshow('menu1','#The concept of fibration_h')"> <a href="#The_concept_of_fibration_h">The concept of fibration</a></div>
374374
<div class=sm id=menu1>
375375
<div class=m2><a href="#next_h">next</a></div>
376376
</div>
@@ -390,8 +390,27 @@
390390
<span id="right" class="rightpanel">
391391
<div class="maincontent">
392392
<!--Main Content Body-->
393-
<h1 id='Top_h'><img src='/share/src/web/images/minus.gif' id='Top' onclick='toggle(this,"Top_d")' alt='+'/> 1 Top</h1><div id='Top_d' style='display:block'>
394-
<p>blam
393+
<h1 id='The_concept_of_fibration_h'><img src='/share/src/web/images/minus.gif' id='The concept of fibration' onclick='toggle(this,"The_concept_of_fibration_d")' alt='+'/> 1 The concept of fibration</h1><div id='The_concept_of_fibration_d' style='display:block'>
394+
<p>A <em>coroutine system</em> is a collection of processes called <em>fibres</em>
395+
with these properties:
396+
<ul>
397+
<li>Exactly one process can be <em>running</em> at once, the others are said to be <em>suspended</em></li>
398+
<li>Control cannot be pre-empted, but is yielded voluntarily</li>
399+
</ul>
400+
In our system, there are four principle operations:
401+
<ol>
402+
<li><em>spawn</em> a new fibre</li>
403+
<li><em>read/em> from a channel</li>
404+
<li><em>write/em> to a channel</li>
405+
<li>Commit <em>suicide</em>
406+
</ol>
407+
A fibre of control can be in one of four states:
408+
<ol>
409+
<li>Running</em>
410+
<li>Active (but not running)</li>
411+
<li>Waiting on I/O</li>
412+
<li>Dead</li>
413+
</ol>
395414
</p><h2 id='next_h'><img src='/share/src/web/images/minus.gif' id='next' onclick='toggle(this,"next_d")' alt='+'/> 1.1 next</h2><div id='next_d' style='display:block'>
396415
<p>stuff
397416
</p><p><pre class='flxbg'><span class="lineno" id=line1></span> blah

0 commit comments

Comments
 (0)