Plan 9 from Bell Labs’s /usr/web/sources/contrib/rog/sh-examples/demo/deadlock.demo/philosophers2.sbl

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


limbo .sbl 2.0
Philosophers
4
philosophers2.b
sys.m
draw.m
rand.m
71
14.1,25 0
1,25 0
15.1,28 1
1,28 1
16.15,27 2
38,49 2
38,49 2
38,49 2
38,49 2
38,49 2
38,49 2
38,49 2
18.6,12 3
18,27 4
14,27 4
19.2,25 5
13,14 5
16,24 5
16,24 5
2,25 5
18.29,32 6
14,27 4
21.6,11 7
17,26 8
13,26 8
22.2,46 9
20,21 9
23,24 9
26,33 9
36,45 9
26,45 9
2,46 9
21.28,31 10
13,26 8
23.3,14 11
1,14 11
3,0.0 12
24.0,1 13
28.2,10 14
29.2,9 15
27.8,8 16
35.6,19 17
17,18 17
6,19 17
6,19 17
6,24 17
36.15,17 18
19,21 18
4,6 18
8,10 18
37.2,11 19
2,17 19
38.2,56 20
13,48 20
50,51 20
53,55 20
2,56 20
2,56 20
39.2,11 21
2,17 21
40.2,56 22
13,48 22
50,51 22
53,55 22
2,56 22
2,56 22
41.4,13 23
2,13 23
42.4,13 24
2,13 24
34.8,8 25
7
aDraw->Context 2:178.1,187.2 28
7
0:screen:180.2,8 R@1

4:display:181.2,9 R@5

8:cir:182.2,5 Ci
12:ckbd:183.2,6 Ci
16:cptr:184.2,6 CR@6

20:ctoappl:185.2,9 Ci
24:ctomux:186.2,8 Ci
aDraw->Screen 146.1,159.2 16
4
0:id:148.2,4 i
4:image:149.2,7 R@2

8:fill:150.2,6 R@2

12:display:151.2,9 R@5

aDraw->Image 65.1,100.2 48
6
0:r:69.2,3 @3

16:clipr:70.2,7 @3

32:ldepth:71.2,8 i
36:repl:72.2,6 i
40:display:73.2,9 R@5

44:screen:74.2,8 R@1

aDraw->Rect 41.1,62.2 16
2
0:min:43.2,5 @4

8:max:44.2,5 @4

aDraw->Point 24.1,38.2 8
2
0:x:26.2,3 i
4:y:27.2,3 i
aDraw->Display 103.1,127.2 12
3
0:image:105.2,7 R@2

4:ones:106.2,6 R@2

8:zeros:107.2,7 R@2

aDraw->Pointer 162.1,166.2 12
2
0:buttons:164.2,9 i
4:xy:165.2,4 @4

3
0:init
0
1
40:i:0:18.6,7 i
n38:fork
2
32:n:25.5,6 i
36:c:13,14 Ci
1
40:p:28.2,3 i
n41:philosopher
3
32:n:32.12,13 i
36:f1:15,17 i
40:f2:19,21 i
0
n3
40:forks:10.0,5 ACi
52:rand:6.1,5 mRand
3:1.0,7.1 
56:sys:0:3.1,4 mSys
1:4.0,154.1 

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.