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

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


limbo .sbl 2.1
Philosophers
4
philosophers.b
sys.m
draw.m
rand.m
81
17.1,25 0
18.1,28 1
19.1,50 2
38,49 2
38,49 2
38,49 2
38,49 2
38,49 2
38,49 2
38,49 2
21.6,12 3
18,27 4
14,27 4
22.2,25 5
13,14 5
16,24 5
16,24 5
2,25 5
21.29,32 6
29,32 6
24.6,11 7
17,26 8
13,26 8
25.2,46 9
20,21 9
23,24 9
26,33 9
36,45 9
26,45 9
2,46 9
24.28,31 10
28,31 10
26.3,14 11
1,14 11
1,14 12
27.0,1 13
32.2,10 14
33.2,9 15
2,9 15
40.6,19 16
17,18 16
6,19 16
6,19 16
6,24 16
41.15,17 17
19,21 17
4,6 17
8,10 17
42.2,58 18
13,50 18
52,53 18
55,57 18
2,58 18
2,58 18
43.2,11 19
2,17 19
44.2,58 20
13,50 20
52,53 20
55,57 20
2,58 20
2,58 20
45.2,11 21
2,17 21
46.2,56 22
13,48 22
50,51 22
53,55 22
2,56 22
2,56 22
47.4,13 23
2,13 23
48.2,56 24
13,48 24
50,51 24
53,55 24
2,56 24
2,56 24
49.4,13 25
2,13 25
2,13 25
12
aSys->Dir 1:26.1,39.2 64
11
0:name:28.2,6 s
4:uid:29.2,5 s
8:gid:30.2,5 s
12:muid:31.2,6 s
16:qid:32.2,5 @1

32:mode:33.2,6 i
36:atime:34.2,7 i
40:mtime:35.2,7 i
48:length:36.2,8 B
56:dtype:37.2,7 i
60:dev:38.2,5 i
aSys->Qid 11.1,16.2 16
3
0:path:13.2,6 B
8:vers:14.2,6 i
12:qtype:15.2,7 i
aDraw->Chans 2:70.1,82.2 4
1
0:desc:72.2,6 i
aDraw->Context 274.1,279.2 12
3
0:display:276.2,9 R@4

4:screen:277.2,8 R@8

8:wm:278.2,4 Ct8.2
0:t0:15,21 s
4:t1:15,21 Ct8.2
0:t0:32,38 s
4:t1:32,38 R@9



aDraw->Display 201.1,230.2 20
5
0:image:203.2,7 R@5

4:white:204.2,7 R@5

8:black:205.2,7 R@5

12:opaque:206.2,8 R@5

16:transparent:207.2,13 R@5

aDraw->Image 142.1,198.2 56
8
0:r:146.2,3 @6

16:clipr:147.2,7 @6

32:depth:148.2,7 i
36:chans:149.2,7 @2

40:repl:150.2,6 i
44:display:151.2,9 R@4

48:screen:152.2,8 R@8

52:iname:153.2,7 s
aDraw->Rect 116.1,139.2 16
2
0:min:118.2,5 @7

8:max:119.2,5 @7

aDraw->Point 99.1,113.2 8
2
0:x:101.2,3 i
4:y:102.2,3 i
aDraw->Screen 249.1,263.2 16
4
0:id:251.2,4 i
4:image:252.2,7 R@5

8:fill:253.2,6 R@5

12:display:254.2,9 R@4

aDraw->Wmcontext 282.1,291.2 28
7
0:kbd:284.2,5 Ci
4:ptr:285.2,5 CR@10

8:ctl:286.2,5 Cs
12:wctl:287.2,6 Cs
16:images:288.2,8 CR@5

20:connfd:289.2,8 R@11

24:ctxt:290.2,6 R@3

aDraw->Pointer 266.1,271.2 16
3
0:buttons:268.2,9 i
4:xy:269.2,4 @7

12:msec:270.2,6 i
aSys->FD 1:45.1,48.2 4
1
0:fd:47.2,4 i
3
0:init
0
1
40:i:0:21.6,7 i
n36:fork
2
32:n:29.5,6 i
36:c:13,14 Ci
1
40:p:32.2,3 i
n39:philosopher
3
32:n:37.12,13 i
36:f1:20,22 i
40:f2:24,26 i
0
n3
8:forks:12.0,5 ACi
24:rand:6.1,5 mRand
3:1.0,7.1 0

28:sys:0:3.1,4 mSys
1:4.0,160.1 0


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.