home *** CD-ROM | disk | FTP | other *** search
Unknown | 1994-09-15 | 24.4 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was not able to be converted.
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| file
| data
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 70 61 00 00 01 00 00 00 | 00 00 00 00 06 08 00 00 |pa......|........|
|00000010| 00 08 00 00 01 10 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 10 00 00 02 18 00 00 | c8 00 00 00 00 00 00 00 |........|........|
|00000030| 01 14 00 00 00 00 00 00 | 00 18 00 00 a5 4c 00 00 |........|.....L..|
|00000040| 43 f0 49 01 f2 20 ff ff | 72 5f ff ff e0 2f 00 02 |C.I.. ..|r_.../..|
|00000050| 07 05 05 05 01 14 00 00 | 01 14 00 00 00 00 00 00 |........|........|
|00000060| 05 05 53 45 43 54 49 4f | 4e 20 33 08 01 14 00 00 |..SECTIO|N 3.....|
|00000070| 00 00 00 00 0d 07 00 00 | 02 1c 00 00 02 1c 00 00 |........|........|
|00000080| 00 00 00 00 00 4c 00 00 | a5 50 00 00 42 84 2a 04 |.....L..|.P..B.*.|
|00000090| b2 b6 fe ff 62 ed fe ff | 18 2b 00 02 4d 43 58 31 |....b...|.+..MCX1|
|000000a0| 31 20 43 4f 4e 54 52 4f | 4c 20 26 20 44 41 54 41 |1 CONTRO|L & DATA|
|000000b0| 20 53 54 52 55 43 54 55 | 52 45 53 08 02 1c 00 00 | STRUCTU|RES.....|
|000000c0| 00 00 00 00 0d 07 05 05 | 0c 3b 00 00 0c 3b 00 00 |........|.;...;..|
|000000d0| 00 00 00 00 00 50 00 00 | a5 44 00 00 42 a8 ad 01 |.....P..|.D..B...|
|000000e0| 02 4e fe ff e2 7c fe ff | c0 21 00 02 33 2e 30 20 |.N...|..|.!..3.0 |
|000000f0| 49 4e 54 52 4f 44 55 43 | 54 49 4f 4e 08 49 4f 4e |INTRODUC|TION.ION|
|00000100| 0c 3b 00 00 00 00 00 00 | 0d 07 00 00 0b 3c 00 00 |.;......|.....<..|
|00000110| 0b 3c 00 00 00 00 00 00 | 00 44 00 00 05 70 00 00 |.<......|.D...p..|
|00000120| 00 a0 98 06 22 ed fd ff | 02 1c fe ff 20 22 00 02 |...."...|.... "..|
|00000130| 49 6e 20 6f 72 64 65 72 | 20 74 6f 20 75 6e 64 65 |In order| to unde|
|00000140| 72 73 74 61 6e 64 20 68 | 6f 77 20 4d 43 58 31 31 |rstand h|ow MCX11|
|00000150| 20 77 6f 72 6b 73 20 61 | 6e 64 20 68 6f 77 20 74 | works a|nd how t|
|00000160| 6f 20 62 75 69 6c 64 20 | 72 65 61 6c 2d 74 69 6d |o build |real-tim|
|00000170| 65 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 73 79 |e applic|ation sy|
|00000180| 73 74 65 6d 73 20 00 00 | 00 70 00 00 05 80 00 00 |stems ..|.p......|
|00000190| 00 2c 5d 07 e2 b4 fd ff | c2 e3 fd ff 20 22 00 00 |.,].....|.... "..|
|000001a0| 61 72 6f 75 6e 64 20 69 | 74 2c 20 69 74 20 69 73 |around i|t, it is|
|000001b0| 20 6e 65 63 65 73 73 61 | 72 79 20 74 6f 20 75 6e | necessa|ry to un|
|000001c0| 64 65 72 73 74 61 6e 64 | 20 68 6f 77 20 69 74 73 |derstand| how its|
|000001d0| 20 76 61 72 69 6f 75 73 | 20 63 6f 6e 74 72 6f 6c | various| control|
|000001e0| 20 61 6e 64 20 64 61 74 | 61 20 73 74 72 75 63 74 | and dat|a struct|
|000001f0| 75 72 65 73 20 77 6f 72 | 6b 2e 20 54 68 69 73 20 |ures wor|k. This |
|00000200| 73 65 63 74 69 6f 6e 20 | 00 80 00 00 25 70 00 00 |section |....%p..|
|00000210| 42 b4 24 06 a2 7c fd ff | 82 ab fd ff 20 22 00 00 |B.$..|..|.... "..|
|00000220| 64 65 73 63 72 69 62 65 | 73 20 74 68 65 73 65 20 |describe|s these |
|00000230| 73 74 72 75 63 74 75 72 | 65 73 20 61 6e 64 20 74 |structur|es and t|
|00000240| 68 65 69 72 20 69 6e 74 | 65 72 72 65 6c 61 74 69 |heir int|errelati|
|00000250| 6f 6e 73 68 69 70 73 2e | 20 54 68 65 20 64 65 73 |onships.| The des|
|00000260| 63 72 69 70 74 69 6f 6e | 73 20 77 69 6c 6c 20 69 |cription|s will i|
|00000270| 6e 63 6c 75 64 65 3a 0d | 00 70 00 00 25 20 00 00 |nclude:.|.p..% ..|
|00000280| 42 14 79 00 22 25 fd ff | 02 54 fd ff 20 22 00 02 |B.y."%..|.T.. "..|
|00000290| 2d 20 74 61 73 6b 73 0d | 00 20 00 00 25 28 00 00 |- tasks.|. ..%(..|
|000002a0| 42 a0 f8 00 a2 cd fc ff | 82 fc fc ff 20 22 00 02 |B.......|.... "..|
|000002b0| 2d 20 73 65 6d 61 70 68 | 6f 72 65 73 0d 00 00 00 |- semaph|ores....|
|000002c0| 00 28 00 00 25 34 00 00 | 42 34 e8 01 22 76 fc ff |.(..%4..|B4.."v..|
|000002d0| 02 a5 fc ff 20 22 00 02 | 2d 20 6d 65 73 73 61 67 |.... "..|- messag|
|000002e0| 65 73 20 61 6e 64 20 6d | 61 69 6c 62 6f 78 65 73 |es and m|ailboxes|
|000002f0| 0d 00 00 00 00 34 00 00 | 25 24 00 00 42 80 9d 00 |.....4..|%$..B...|
|00000300| a2 1e fc ff 82 4d fc ff | 20 22 00 02 2d 20 71 75 |.....M..| "..- qu|
|00000310| 65 75 65 73 0d 00 00 00 | 00 24 00 00 25 24 00 00 |eues....|.$..%$..|
|00000320| 42 84 90 00 22 c7 fb ff | 02 f6 fb ff 20 22 00 02 |B..."...|.... "..|
|00000330| 2d 20 74 69 6d 65 72 73 | 0d 00 00 00 00 24 00 00 |- timers|.....$..|
|00000340| 05 78 00 00 00 88 04 07 | a2 6f fb ff 82 9e fb ff |.x......|.o......|
|00000350| 20 22 00 02 54 68 65 20 | 4d 43 58 31 31 20 65 78 | "..The |MCX11 ex|
|00000360| 65 63 75 74 69 76 65 20 | 73 65 72 76 69 63 65 73 |ecutive |services|
|00000370| 20 77 68 69 63 68 20 64 | 65 61 6c 20 77 69 74 68 | which d|eal with|
|00000380| 20 74 68 65 73 65 20 63 | 6c 61 73 73 65 73 20 6f | these c|lasses o|
|00000390| 66 20 63 6f 6e 74 72 6f | 6c 20 61 6e 64 20 64 61 |f contro|l and da|
|000003a0| 74 61 20 73 74 72 75 63 | 74 75 72 65 73 20 77 69 |ta struc|tures wi|
|000003b0| 6c 6c 20 00 00 78 00 00 | a5 58 00 00 42 94 b4 02 |ll ..x..|.X..B...|
|000003c0| 62 37 fb ff 42 66 fb ff | 20 22 00 00 62 65 20 70 |b7..Bf..| "..be p|
|000003d0| 72 65 73 65 6e 74 65 64 | 20 69 6e 20 61 20 73 75 |resented| in a su|
|000003e0| 62 73 65 71 75 65 6e 74 | 20 73 65 63 74 69 6f 6e |bsequent| section|
|000003f0| 2e 08 73 65 0b 3c 00 00 | 00 00 00 00 0d 07 73 75 |..se.<..|......su|
|00000400| 0c 3d 00 00 0c 3d 00 00 | 00 00 00 00 00 58 00 00 |.=...=..|.....X..|
|00000410| a5 3c 00 00 42 9c d5 00 | e2 c6 fa ff c2 f5 fa ff |.<..B...|........|
|00000420| c0 21 00 02 33 2e 31 20 | 54 41 53 4b 53 08 00 00 |.!..3.1 |TASKS...|
|00000430| 0c 3d 00 00 00 00 00 00 | 0d 07 84 ff 0b 3e 00 00 |.=......|.....>..|
|00000440| 0b 3e 00 00 00 00 00 00 | 00 3c 00 00 05 74 00 00 |.>......|.<...t..|
|00000450| 00 d8 b7 06 02 66 fa ff | e2 94 fa ff 20 22 00 02 |.....f..|.... "..|
|00000460| 49 6e 20 61 20 72 65 61 | 6c 2d 74 69 6d 65 20 61 |In a rea|l-time a|
|00000470| 70 70 6c 69 63 61 74 69 | 6f 6e 20 75 73 69 6e 67 |pplicati|on using|
|00000480| 20 4d 43 58 31 31 2c 20 | 74 68 65 20 66 75 6e 63 | MCX11, |the func|
|00000490| 74 69 6f 6e 73 20 6f 66 | 20 74 68 65 20 73 79 73 |tions of| the sys|
|000004a0| 74 65 6d 20 61 72 65 20 | 61 73 73 69 67 6e 65 64 |tem are |assigned|
|000004b0| 20 74 6f 20 76 61 72 69 | 6f 75 73 20 00 74 00 00 | to vari|ous .t..|
|000004c0| 05 88 00 00 00 20 de 07 | c2 2d fa ff a2 5c fa ff |..... ..|.-...\..|
|000004d0| 20 22 00 00 74 61 73 6b | 73 2e 20 4d 43 58 31 31 | "..task|s. MCX11|
|000004e0| 20 73 75 70 70 6f 72 74 | 73 20 75 70 20 74 6f 20 | support|s up to |
|000004f0| 31 32 36 20 74 61 73 6b | 73 20 69 6e 20 61 20 73 |126 task|s in a s|
|00000500| 69 6e 67 6c 65 20 73 79 | 73 74 65 6d 2e 20 54 68 |ingle sy|stem. Th|
|00000510| 65 20 6e 61 74 75 72 65 | 20 6f 66 20 65 61 63 68 |e nature| of each|
|00000520| 20 74 61 73 6b 20 69 73 | 2c 20 6f 66 20 63 6f 75 | task is|, of cou|
|00000530| 72 73 65 2c 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |rse, app|lication|
|00000540| 20 00 00 00 00 88 00 00 | 05 84 00 00 00 3c c5 07 | .......|.....<..|
|00000550| 82 f5 f9 ff 62 24 fa ff | 20 22 00 00 64 65 70 65 |....b$..| "..depe|
|00000560| 6e 64 65 6e 74 20 61 6e | 64 20 6c 65 66 74 20 74 |ndent an|d left t|
|00000570| 6f 20 74 68 65 20 69 6d | 61 67 69 6e 61 74 69 6f |o the im|aginatio|
|00000580| 6e 20 6f 66 20 74 68 65 | 20 73 79 73 74 65 6d 20 |n of the| system |
|00000590| 64 65 73 69 67 6e 65 72 | 2e 20 48 6f 77 65 76 65 |designer|. Howeve|
|000005a0| 72 2c 20 74 68 65 72 65 | 20 61 72 65 20 61 74 74 |r, there| are att|
|000005b0| 72 69 62 75 74 65 73 20 | 77 68 69 63 68 20 61 6c |ributes |which al|
|000005c0| 6c 20 74 61 73 6b 73 20 | 00 84 00 00 25 30 00 00 |l tasks |....%0..|
|000005d0| 42 08 8d 01 42 bd f9 ff | 22 ec f9 ff 20 22 00 00 |B...B...|"... "..|
|000005e0| 73 68 61 72 65 2e 20 54 | 68 65 73 65 20 69 6e 63 |share. T|hese inc|
|000005f0| 6c 75 64 65 3a 0d 00 00 | 00 30 00 00 25 2c 00 00 |lude:...|.0..%,..|
|00000600| 42 f0 3e 01 c2 65 f9 ff | a2 94 f9 ff 20 22 00 02 |B.>..e..|.... "..|
|00000610| 2d 20 61 20 74 61 73 6b | 20 69 64 65 6e 74 69 66 |- a task| identif|
|00000620| 69 65 72 0d 00 2c 00 00 | 25 28 00 00 42 7c c8 00 |ier..,..|%(..B|..|
|00000630| 42 0e f9 ff 22 3d f9 ff | 20 22 00 02 2d 20 61 20 |B..."=..| "..- a |
|00000640| 70 72 69 6f 72 69 74 79 | 0d 00 00 00 00 28 00 00 |priority|.....(..|
|00000650| 25 30 00 00 42 dc 4f 01 | c2 b6 f8 ff a2 e5 f8 ff |%0..B.O.|........|
|00000660| 20 22 00 02 2d 20 61 20 | 74 61 73 6b 20 73 74 61 | "..- a |task sta|
|00000670| 74 65 20 74 61 62 6c 65 | 0d 00 00 00 00 30 00 00 |te table|.....0..|
|00000680| 25 24 00 00 42 30 9c 00 | 42 5f f8 ff 22 8e f8 ff |%$..B0..|B_.."...|
|00000690| 20 22 00 02 2d 20 61 20 | 73 74 61 63 6b 0d 00 00 | "..- a |stack...|
|000006a0| 00 24 00 00 25 24 00 00 | 42 84 d5 00 c2 07 f8 ff |.$..%$..|B.......|
|000006b0| a2 36 f8 ff 20 22 00 02 | 2d 20 61 20 6d 61 69 6c |.6.. "..|- a mail|
|000006c0| 62 6f 78 0d 00 24 00 00 | a5 44 00 00 42 b8 1f 01 |box..$..|.D..B...|
|000006d0| 42 b0 f7 ff 22 df f7 ff | 20 22 00 02 2d 20 61 6e |B..."...| "..- an|
|000006e0| 20 65 6e 74 72 79 20 70 | 6f 69 6e 74 08 08 00 00 | entry p|oint....|
|000006f0| 0b 3e 00 00 00 00 00 00 | 0d 07 81 ff 0d 3f 00 00 |.>......|.....?..|
|00000700| 0d 3f 00 00 00 00 00 00 | 00 44 00 00 a5 54 00 00 |.?......|.D...T..|
|00000710| 42 98 59 02 c2 3f f7 ff | a2 6e f7 ff c0 21 00 02 |B.Y..?..|.n...!..|
|00000720| 33 2e 31 2e 31 20 54 61 | 73 6b 20 49 64 65 6e 74 |3.1.1 Ta|sk Ident|
|00000730| 69 66 69 65 72 20 26 20 | 50 72 69 6f 72 69 74 79 |ifier & |Priority|
|00000740| 08 08 00 f2 0d 3f 00 00 | 00 00 00 00 0d 07 20 49 |.....?..|...... I|
|00000750| 0b 40 00 00 0b 40 00 00 | 00 00 00 00 00 54 00 00 |.@...@..|.....T..|
|00000760| 05 74 00 00 03 ac a1 06 | e2 de f6 ff c2 0d f7 ff |.t......|........|
|00000770| 20 22 00 02 45 61 63 68 | 20 74 61 73 6b 20 69 73 | "..Each| task is|
|00000780| 20 69 64 65 6e 74 69 66 | 69 65 64 20 62 79 20 61 | identif|ied by a|
|00000790| 20 6e 75 6d 65 72 69 63 | 61 6c 20 69 64 65 6e 74 | numeric|al ident|
|000007a0| 69 66 69 65 72 20 77 68 | 69 63 68 20 69 73 20 61 |ifier wh|ich is a|
|000007b0| 20 6e 75 6d 62 65 72 20 | 66 72 6f 6d 20 31 20 74 | number |from 1 t|
|000007c0| 6f 20 31 32 36 2e 20 54 | 68 65 20 74 61 73 6b 20 |o 126. T|he task |
|000007d0| 00 74 00 00 05 84 00 00 | 00 78 a4 07 a2 a6 f6 ff |.t......|.x......|
|000007e0| 82 d5 f6 ff 20 22 00 00 | 69 64 65 6e 74 69 66 69 |.... "..|identifi|
|000007f0| 65 72 2c 20 6f 72 20 6e | 75 6d 62 65 72 2c 20 73 |er, or n|umber, s|
|00000800| 65 72 76 65 73 20 61 73 | 20 61 20 72 65 66 65 72 |erves as| a refer|
|00000810| 65 6e 63 65 20 64 75 72 | 69 6e 67 20 65 78 65 63 |ence dur|ing exec|
|00000820| 75 74 69 76 65 20 6f 70 | 65 72 61 74 69 6f 6e 73 |utive op|erations|
|00000830| 2e 20 54 61 73 6b 20 31 | 20 69 73 20 65 78 65 63 |. Task 1| is exec|
|00000840| 75 74 65 64 20 62 65 66 | 6f 72 65 20 74 61 73 6b |uted bef|ore task|
|00000850| 20 32 20 00 00 84 00 00 | 05 88 00 00 00 9c ef 07 | 2 .....|........|
|00000860| 62 6e f6 ff 42 9d f6 ff | 20 22 00 00 77 68 69 63 |bn..B...| "..whic|
|00000870| 68 20 69 73 20 65 78 65 | 63 75 74 65 64 20 70 72 |h is exe|cuted pr|
|00000880| 69 6f 72 20 74 6f 20 74 | 61 73 6b 20 33 20 61 6e |ior to t|ask 3 an|
|00000890| 64 20 73 6f 20 6f 6e 2e | 20 54 68 75 73 2c 20 74 |d so on.| Thus, t|
|000008a0| 68 65 20 74 61 73 6b 20 | 6e 75 6d 62 65 72 20 69 |he task |number i|
|000008b0| 73 20 69 6e 76 65 72 73 | 65 6c 79 20 72 65 6c 61 |s invers|ely rela|
|000008c0| 74 65 64 20 74 6f 20 74 | 68 65 20 74 61 73 6b 27 |ted to t|he task'|
|000008d0| 73 20 65 78 65 63 75 74 | 69 6f 6e 20 00 88 00 00 |s execut|ion ....|
|000008e0| 05 84 00 00 00 80 db 07 | 22 36 f6 ff 02 65 f6 ff |........|"6...e..|
|000008f0| 20 22 00 00 70 72 69 6f | 72 69 74 79 2e 20 54 68 | "..prio|rity. Th|
|00000900| 65 20 6c 6f 77 65 72 20 | 74 68 65 20 74 61 73 6b |e lower |the task|
|00000910| 20 6e 75 6d 62 65 72 2c | 20 74 68 65 20 68 69 67 | number,| the hig|
|00000920| 68 65 72 20 74 68 65 20 | 70 72 69 6f 72 69 74 79 |her the |priority|
|00000930| 2e 20 4d 43 58 31 31 20 | 75 73 65 73 20 74 68 69 |. MCX11 |uses thi|
|00000940| 73 20 66 69 78 65 64 20 | 74 61 73 6b 20 6e 75 6d |s fixed |task num|
|00000950| 62 65 72 69 6e 67 20 73 | 63 68 65 6d 65 20 00 00 |bering s|cheme ..|
|00000960| 00 84 00 00 05 84 00 00 | 00 64 a3 07 e2 fd f5 ff |........|.d......|
|00000970| c2 2c f6 ff 20 22 00 00 | 62 65 63 61 75 73 65 20 |.,.. "..|because |
|00000980| 69 74 20 69 73 20 6c 6f | 77 20 69 6e 20 6f 76 65 |it is lo|w in ove|
|00000990| 72 68 65 61 64 20 61 6e | 64 20 71 75 69 74 65 20 |rhead an|d quite |
|000009a0| 61 64 65 71 75 61 74 65 | 20 66 6f 72 20 6d 6f 73 |adequate| for mos|
|000009b0| 74 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 73 2e 20 |t applic|ations. |
|000009c0| 54 68 65 20 74 61 73 6b | 20 6e 75 6d 62 65 72 20 |The task| number |
|000009d0| 70 65 72 6d 69 74 73 20 | 61 20 64 69 72 65 63 74 |permits |a direct|
|000009e0| 20 00 00 00 00 84 00 00 | a5 98 00 00 42 70 28 07 | .......|....Bp(.|
|000009f0| a2 c5 f5 ff 82 f4 f5 ff | 20 22 00 00 61 63 63 65 |........| "..acce|
|00000a00| 73 73 20 74 6f 20 74 68 | 65 20 74 61 73 6b 27 73 |ss to th|e task's|
|00000a10| 20 73 74 61 74 65 20 74 | 61 62 6c 65 20 77 69 74 | state t|able wit|
|00000a20| 68 6f 75 74 20 74 68 65 | 20 6e 65 65 64 20 66 6f |hout the| need fo|
|00000a30| 72 20 6c 69 6e 6b 65 64 | 20 6c 69 73 74 73 20 6f |r linked| lists o|
|00000a40| 72 20 6f 74 68 65 72 20 | 63 6f 6d 6d 6f 6e 6c 79 |r other |commonly|
|00000a50| 20 75 73 65 64 20 74 65 | 63 68 6e 69 71 75 65 2e | used te|chnique.|
|00000a60| 08 40 00 00 0b 40 00 00 | 00 00 00 00 0d 07 00 00 |.@...@..|........|
|00000a70| 0d 41 00 00 0d 41 00 00 | 00 00 00 00 00 98 00 00 |.A...A..|........|
|00000a80| a5 48 00 00 42 64 ac 01 | 22 55 f5 ff 02 84 f5 ff |.H..Bd..|"U......|
|00000a90| c0 21 00 02 33 2e 31 2e | 32 20 54 61 73 6b 20 53 |.!..3.1.|2 Task S|
|00000aa0| 74 61 74 65 20 54 61 62 | 6c 65 08 00 0d 41 00 00 |tate Tab|le...A..|
|00000ab0| 00 00 00 00 0d 07 00 00 | 0b 42 00 00 0b 42 00 00 |........|.B...B..|
|00000ac0| 00 00 00 00 00 48 00 00 | 05 74 00 00 00 78 d8 06 |.....H..|.t...x..|
|00000ad0| 42 f4 f4 ff 22 23 f5 ff | 20 22 00 02 54 68 65 20 |B..."#..| "..The |
|00000ae0| 73 74 61 74 65 20 74 61 | 62 6c 65 20 69 73 20 63 |state ta|ble is c|
|00000af0| 6f 6d 6d 6f 6e 6c 79 20 | 72 65 66 65 72 72 65 64 |ommonly |referred|
|00000b00| 20 74 6f 20 61 73 20 61 | 20 54 61 73 6b 20 43 6f | to as a| Task Co|
|00000b10| 6e 74 72 6f 6c 20 42 6c | 6f 63 6b 20 28 54 43 42 |ntrol Bl|ock (TCB|
|00000b20| 29 2e 20 41 20 54 43 42 | 20 69 6e 20 4d 43 58 31 |). A TCB| in MCX1|
|00000b30| 31 20 69 73 20 00 00 00 | 00 74 00 00 05 84 00 00 |1 is ...|.t......|
|00000b40| 00 44 c9 07 02 bc f4 ff | e2 ea f4 ff 20 22 00 00 |.D......|.... "..|
|00000b50| 63 6f 6e 74 61 69 6e 65 | 64 20 69 6e 20 74 77 6f |containe|d in two|
|00000b60| 20 73 65 70 61 72 61 74 | 65 20 73 65 63 74 69 6f | separat|e sectio|
|00000b70| 6e 73 20 69 6e 20 6f 72 | 64 65 72 20 74 6f 20 6d |ns in or|der to m|
|00000b80| 69 6e 69 6d 69 7a 65 20 | 74 68 65 20 75 73 65 20 |inimize |the use |
|00000b90| 6f 66 20 73 79 73 74 65 | 6d 20 52 41 4d 2e 20 4f |of syste|m RAM. O|
|00000ba0| 6e 6c 79 20 74 68 6f 73 | 65 20 64 61 74 61 20 61 |nly thos|e data a|
|00000bb0| 62 6f 75 74 20 74 68 65 | 20 00 00 00 00 84 00 00 |bout the| .......|
|00000bc0| 05 84 00 00 00 e0 cf 07 | c2 83 f4 ff a2 b2 f4 ff |........|........|
|00000bd0| 20 22 00 00 65 78 65 63 | 75 74 69 6f 6e 20 73 74 | "..exec|ution st|
|00000be0| 61 74 65 20 6f 66 20 74 | 68 65 20 74 61 73 6b 20 |ate of t|he task |
|00000bf0| 61 72 65 20 6b 65 70 74 | 20 69 6e 20 52 41 4d 2e |are kept| in RAM.|
|00000c00| 20 53 74 61 74 69 63 20 | 69 6e 66 6f 72 6d 61 74 | Static |informat|
|00000c10| 69 6f 6e 20 61 62 6f 75 | 74 20 74 68 65 20 74 61 |ion abou|t the ta|
|00000c20| 73 6b 20 69 73 20 6b 65 | 70 74 20 69 6e 20 52 4f |sk is ke|pt in RO|
|00000c30| 4d 2e 20 42 6f 74 68 20 | 73 65 74 73 20 6f 66 20 |M. Both |sets of |
|00000c40| 00 84 00 00 05 88 00 00 | 00 88 f1 07 82 4b f4 ff |........|.....K..|
|00000c50| 62 7a f4 ff 20 22 00 00 | 74 68 69 73 20 54 43 42 |bz.. "..|this TCB|
|00000c60| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 20 61 72 65 | informa|tion are|
|00000c70| 20 6b 65 70 74 20 69 6e | 20 61 72 72 61 79 73 20 | kept in| arrays |
|00000c80| 77 68 69 63 68 20 61 6c | 6c 6f 77 20 64 69 72 65 |which al|low dire|
|00000c90| 63 74 20 61 63 63 65 73 | 73 20 74 6f 20 74 68 65 |ct acces|s to the|
|00000ca0| 20 64 61 74 61 20 62 61 | 73 65 64 20 6f 6e 20 74 | data ba|sed on t|
|00000cb0| 68 65 20 74 61 73 6b 20 | 6e 75 6d 62 65 72 2e 20 |he task |number. |
|00000cc0| 54 68 69 73 20 00 00 00 | 00 88 00 00 01 10 00 00 |This ...|........|
|00000cd0| 42 f4 95 06 00 00 00 00 | 00 10 00 00 02 18 00 00 |B.......|........|
|00000ce0| f4 01 00 00 00 00 00 00 | 0b 42 00 00 00 00 00 00 |........|.B......|
|00000cf0| 00 18 00 00 25 74 00 00 | 42 f4 95 06 e1 30 f2 ff |....%t..|B....0..|
|00000d00| c1 5f f2 ff 20 22 00 00 | 6d 61 6b 65 73 20 66 6f |._.. "..|makes fo|
|00000d10| 72 20 76 65 72 79 20 71 | 75 69 63 6b 20 61 63 63 |r very q|uick acc|
|00000d20| 65 73 73 20 77 69 74 68 | 6f 75 74 20 74 68 65 20 |ess with|out the |
|00000d30| 63 6f 6d 6d 6f 6e 6c 79 | 20 77 61 73 74 65 64 20 |commonly| wasted |
|00000d40| 74 69 6d 65 20 6f 66 20 | 73 65 61 72 63 68 69 6e |time of |searchin|
|00000d50| 67 20 61 20 6c 69 6e 6b | 65 64 20 6c 69 73 74 2e |g a link|ed list.|
|00000d60| 0d 00 00 00 00 74 00 00 | 05 70 00 00 00 d4 76 06 |.....t..|.p....v.|
|00000d70| 61 d9 f1 ff 41 08 f2 ff | 20 22 00 02 54 68 65 20 |a...A...| "..The |
|00000d80| 52 41 4d 20 70 6f 72 74 | 69 6f 6e 20 6f 66 20 74 |RAM port|ion of t|
|00000d90| 68 65 20 54 43 42 20 63 | 6f 6e 74 61 69 6e 73 20 |he TCB c|ontains |
|00000da0| 6f 6e 6c 79 20 76 6f 6c | 61 74 69 6c 65 20 64 61 |only vol|atile da|
|00000db0| 74 61 20 61 62 6f 75 74 | 20 74 68 65 20 74 61 73 |ta about| the tas|
|00000dc0| 6b 20 61 6e 64 20 69 6e | 63 6c 75 64 65 73 20 74 |k and in|cludes t|
|00000dd0| 68 65 20 00 00 70 00 00 | 25 24 00 00 42 54 c3 00 |he ..p..|%$..BT..|
|00000de0| 21 a1 f1 ff 01 d0 f1 ff | 20 22 00 00 66 6f 6c 6c |!.......| "..foll|
|00000df0| 6f 77 69 6e 67 3a 0d 00 | 00 24 00 00 25 30 00 00 |owing:..|.$..%0..|
|00000e00| 42 38 78 01 a1 49 f1 ff | 81 78 f1 ff 20 22 00 02 |B8x..I..|.x.. "..|
|00000e10| 2d 20 74 68 65 20 65 78 | 65 63 75 74 69 6f 6e 20 |- the ex|ecution |
|00000e20| 73 74 61 74 65 0d 00 00 | 00 30 00 00 25 2c 00 00 |state...|.0..%,..|
|00000e30| 42 2c 51 01 21 f2 f0 ff | 01 21 f1 ff 20 22 00 02 |B,Q.!...|.!.. "..|
|00000e40| 2d 20 74 68 65 20 73 74 | 61 63 6b 20 70 6f 69 6e |- the st|ack poin|
|00000e50| 74 65 72 0d 00 2c 00 00 | 25 40 00 00 42 f8 8c 02 |ter..,..|%@..B...|
|00000e60| a1 9a f0 ff 81 c9 f0 ff | 20 22 00 02 2d 20 74 68 |........| "..- th|
|00000e70| 65 20 66 69 72 73 74 20 | 6c 69 6e 6b 20 69 6e 20 |e first |link in |
|00000e80| 74 68 65 20 74 61 73 6b | 27 73 20 6d 61 69 6c 62 |the task|'s mailb|
|00000e90| 6f 78 0d 00 00 40 00 00 | 05 78 00 00 00 64 19 07 |ox...@..|.x...d..|
|00000ea0| 21 43 f0 ff 01 72 f0 ff | 20 22 00 02 57 68 65 6e |!C...r..| "..When|
|00000eb0| 65 76 65 72 20 74 68 65 | 20 4d 43 58 31 31 20 64 |ever the| MCX11 d|
|00000ec0| 69 73 70 61 74 63 68 65 | 72 20 69 73 20 6c 6f 6f |ispatche|r is loo|
|00000ed0| 6b 69 6e 67 20 66 6f 72 | 20 61 20 74 61 73 6b 20 |king for| a task |
|00000ee0| 74 6f 20 65 78 65 63 75 | 74 65 2c 20 69 74 20 65 |to execu|te, it e|
|00000ef0| 78 61 6d 69 6e 65 73 20 | 74 68 65 20 65 78 65 63 |xamines |the exec|
|00000f00| 75 74 69 6f 6e 20 73 74 | 61 74 65 20 00 78 00 00 |ution st|ate .x..|
|00000f10| 05 8c 00 00 00 28 d6 07 | e1 0a f0 ff c1 39 f0 ff |.....(..|.....9..|
|00000f20| 20 22 00 00 76 61 72 69 | 61 62 6c 65 20 74 6f 20 | "..vari|able to |
|00000f30| 73 65 65 20 69 66 20 74 | 68 65 20 74 61 73 6b 20 |see if t|he task |
|00000f40| 69 73 20 72 75 6e 6e 61 | 62 6c 65 20 6f 72 20 6e |is runna|ble or n|
|00000f50| 6f 74 2e 20 54 68 65 20 | 65 78 65 63 75 74 69 6f |ot. The |executio|
|00000f60| 6e 20 73 74 61 74 65 20 | 69 73 20 63 6f 6e 74 61 |n state |is conta|
|00000f70| 69 6e 65 64 20 69 6e 20 | 61 20 73 69 6e 67 6c 65 |ined in |a single|
|00000f80| 20 62 79 74 65 20 61 6e | 64 20 61 20 76 61 6c 75 | byte an|d a valu|
|00000f90| 65 20 6f 66 20 00 00 00 | 00 8c 00 00 05 84 00 00 |e of ...|........|
|00000fa0| 02 3c 77 07 a1 d2 ef ff | 81 01 f0 ff 20 22 00 00 |.<w.....|.... "..|
|00000fb0| 24 30 30 20 69 6e 64 69 | 63 61 74 65 73 20 74 68 |$00 indi|cates th|
|00000fc0| 61 74 20 74 68 65 20 74 | 61 73 6b 20 69 73 20 72 |at the t|ask is r|
|00000fd0| 75 6e 6e 61 62 6c 65 2e | 20 41 6e 79 20 6f 74 68 |unnable.| Any oth|
|00000fe0| 65 72 20 63 6f 6e 74 65 | 6e 74 20 69 6e 20 74 68 |er conte|nt in th|
|00000ff0| 65 20 74 61 73 6b 20 73 | 74 61 74 65 20 61 6e 64 |e task s|tate and|
|00001000| 20 74 68 65 20 74 61 73 | 6b 20 69 73 20 62 6c 6f | the tas|k is blo|
|00001010| 63 6b 65 64 20 66 72 6f | 6d 20 00 00 00 84 00 00 |cked fro|m ......|
|00001020| 25 24 00 00 42 8c 9d 00 | 61 9a ef ff 41 c9 ef ff |%$..B...|a...A...|
|00001030| 20 22 00 00 72 75 6e 6e | 69 6e 67 2e 0d 00 00 00 | "..runn|ing.....|
|00001040| 00 24 00 00 25 60 00 00 | 43 e0 cc 04 e1 42 ef ff |.$..%`..|C....B..|
|00001050| c1 71 ef ff 20 22 00 02 | 54 68 65 20 73 74 61 63 |.q.. "..|The stac|
|00001060| 6b 20 70 6f 69 6e 74 65 | 72 20 63 6f 6e 74 61 69 |k pointe|r contai|
|00001070| 6e 73 20 74 68 65 20 61 | 64 64 72 65 73 73 20 6f |ns the a|ddress o|
|00001080| 66 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 74 6f |f the cu|rrent to|
|00001090| 70 05 05 05 2d 6f 66 2d | 73 74 61 63 6b 2e 0d 00 |p...-of-|stack...|
|000010a0| 00 60 00 00 05 80 00 00 | 00 d0 1c 07 61 eb ee ff |.`......|....a...|
|000010b0| 41 1a ef ff 20 22 00 02 | 54 68 65 20 66 69 72 73 |A... "..|The firs|
|000010c0| 74 20 6c 69 6e 6b 20 69 | 6e 20 74 68 65 20 74 61 |t link i|n the ta|
|000010d0| 73 6b 27 73 20 6d 61 69 | 6c 62 6f 78 20 63 6f 6e |sk's mai|lbox con|
|000010e0| 74 61 69 6e 73 20 74 68 | 65 20 61 64 64 72 65 73 |tains th|e addres|
|000010f0| 73 20 6f 66 20 74 68 65 | 20 68 69 67 68 65 73 74 |s of the| highest|
|00001100| 20 70 72 69 6f 72 69 74 | 79 20 6d 65 73 73 61 67 | priorit|y messag|
|00001110| 65 20 77 61 69 74 69 6e | 67 20 74 6f 20 00 00 00 |e waitin|g to ...|
|00001120| 00 80 00 00 25 68 00 00 | 42 f8 7d 05 21 b3 ee ff |....%h..|B.}.!...|
|00001130| 01 e2 ee ff 20 22 00 00 | 62 65 20 72 65 63 65 69 |.... "..|be recei|
|00001140| 76 65 64 20 62 79 20 74 | 68 65 20 74 61 73 6b 2e |ved by t|he task.|
|00001150| 20 49 66 20 6e 6f 20 6d | 65 73 73 61 67 65 20 69 | If no m|essage i|
|00001160| 73 20 77 61 69 74 69 6e | 67 2c 20 74 68 65 20 70 |s waitin|g, the p|
|00001170| 6f 69 6e 74 65 72 20 63 | 6f 6e 74 61 69 6e 73 20 |ointer c|ontains |
|00001180| 7a 65 72 6f 2e 0d 00 00 | 00 68 00 00 25 3c 00 00 |zero....|.h..%<..|
|00001190| 42 a4 a7 02 a1 5b ee ff | 81 8a ee ff 20 22 00 02 |B....[..|.... "..|
|000011a0| 54 68 65 20 52 4f 4d 20 | 70 61 72 74 20 6f 66 20 |The ROM |part of |
|000011b0| 74 68 65 20 54 43 42 20 | 63 6f 6e 74 61 69 6e 73 |the TCB |contains|
|000011c0| 3a 0d 00 00 00 3c 00 00 | 25 38 00 00 42 58 f1 01 |:....<..|%8..BX..|
|000011d0| 21 04 ee ff 01 33 ee ff | 20 22 00 02 2d 20 74 68 |!....3..| "..- th|
|000011e0| 65 20 69 6e 69 74 69 61 | 6c 20 65 78 65 63 75 74 |e initia|l execut|
|000011f0| 69 6f 6e 20 73 74 61 74 | 65 0d 00 00 00 38 00 00 |ion stat|e....8..|
|00001200| 25 2c 00 00 42 c0 2c 01 | a1 ac ed ff 81 db ed ff |%,..B.,.|........|
|00001210| 20 22 00 02 2d 20 74 68 | 65 20 65 6e 74 72 79 20 | "..- th|e entry |
|00001220| 70 6f 69 6e 74 0d 00 00 | 00 2c 00 00 25 38 00 00 |point...|.,..%8..|
|00001230| 42 bc 2f 02 21 55 ed ff | 01 84 ed ff 20 22 00 02 |B./.!U..|.... "..|
|00001240| 2d 20 74 68 65 20 62 61 | 73 65 20 61 64 64 72 65 |- the ba|se addre|
|00001250| 73 73 20 6f 66 20 74 68 | 65 20 73 74 61 63 6b 0d |ss of th|e stack.|
|00001260| 00 38 00 00 25 44 00 00 | 42 70 0e 03 a1 fd ec ff |.8..%D..|Bp......|
|00001270| 81 2c ed ff 20 22 00 02 | 2d 20 74 68 65 20 61 64 |.,.. "..|- the ad|
|00001280| 64 72 65 73 73 20 6f 66 | 20 74 68 65 20 52 41 4d |dress of| the RAM|
|00001290| 20 70 61 72 74 20 6f 66 | 20 74 68 65 20 54 43 42 | part of| the TCB|
|000012a0| 0d 00 00 00 00 44 00 00 | 05 70 00 00 00 f0 0f 06 |.....D..|.p......|
|000012b0| 21 a6 ec ff 01 d5 ec ff | 20 22 00 02 54 68 65 20 |!.......| "..The |
|000012c0| 69 6e 69 74 69 61 6c 20 | 65 78 65 63 75 74 69 6f |initial |executio|
|000012d0| 6e 20 73 74 61 74 65 20 | 69 73 20 73 70 65 63 69 |n state |is speci|
|000012e0| 66 69 65 64 20 62 79 20 | 74 68 65 20 73 79 73 74 |fied by |the syst|
|000012f0| 65 6d 20 64 65 73 69 67 | 6e 65 72 20 61 74 20 74 |em desig|ner at t|
|00001300| 68 65 20 74 69 6d 65 20 | 6f 66 20 73 79 73 74 65 |he time |of syste|
|00001310| 6d 20 00 00 00 70 00 00 | 05 88 00 00 00 54 ec 07 |m ...p..|.....T..|
|00001320| e1 6d ec ff c1 9c ec ff | 20 22 00 00 63 6f 6e 66 |.m......| "..conf|
|00001330| 69 67 75 72 61 74 69 6f | 6e 2e 20 54 68 69 73 20 |iguratio|n. This |
|00001340| 62 65 63 6f 6d 65 73 20 | 74 68 65 20 69 6e 69 74 |becomes |the init|
|00001350| 69 61 6c 20 63 6f 6e 74 | 65 6e 74 20 6f 66 20 74 |ial cont|ent of t|
|00001360| 68 65 20 65 78 65 63 75 | 74 69 6f 6e 20 73 74 61 |he execu|tion sta|
|00001370| 74 65 2e 20 42 79 20 73 | 70 65 63 69 66 79 69 6e |te. By s|pecifyin|
|00001380| 67 20 61 20 76 61 6c 75 | 65 20 6f 66 20 7a 65 72 |g a valu|e of zer|
|00001390| 6f 2c 20 74 68 65 20 74 | 61 73 6b 20 00 88 00 00 |o, the t|ask ....|
|000013a0| 05 88 00 00 00 28 d6 07 | a1 35 ec ff 81 64 ec ff |.....(..|.5...d..|
|000013b0| 20 22 00 00 77 69 6c 6c | 20 62 65 20 65 78 65 63 | "..will| be exec|
|000013c0| 75 74 65 64 20 69 6d 6d | 65 64 69 61 74 65 6c 79 |uted imm|ediately|
|000013d0| 20 61 66 74 65 72 20 69 | 6e 69 74 69 61 6c 69 7a | after i|nitializ|
|000013e0| 61 74 69 6f 6e 20 69 6e | 20 61 63 63 6f 72 64 61 |ation in| accorda|
|000013f0| 6e 63 65 20 77 69 74 68 | 20 69 74 73 20 70 72 69 |nce with| its pri|
|00001400| 6f 72 69 74 79 2e 20 53 | 70 65 63 69 66 69 63 61 |ority. S|pecifica|
|00001410| 74 69 6f 6e 20 6f 66 20 | 61 20 6e 6f 6e 2d 7a 65 |tion of |a non-ze|
|00001420| 72 6f 20 00 00 88 00 00 | 25 70 00 00 42 d0 20 06 |ro .....|%p..B. .|
|00001430| 61 fd eb ff 41 2c ec ff | 20 22 00 00 76 61 6c 75 |a...A,..| "..valu|
|00001440| 65 20 77 69 6c 6c 20 70 | 72 65 76 65 6e 74 20 74 |e will p|revent t|
|00001450| 68 65 20 74 61 73 6b 20 | 66 72 6f 6d 20 61 75 74 |he task |from aut|
|00001460| 6f 6d 61 74 69 63 61 6c | 6c 79 20 73 74 61 72 74 |omatical|ly start|
|00001470| 69 6e 67 20 65 78 65 63 | 75 74 69 6f 6e 20 61 66 |ing exec|ution af|
|00001480| 74 65 72 20 69 6e 69 74 | 69 61 6c 69 7a 61 74 69 |ter init|ializati|
|00001490| 6f 6e 2e 0d 00 70 00 00 | 05 7c 00 00 00 40 10 07 |on...p..|.|...@..|
|000014a0| e1 a5 eb ff c1 d4 eb ff | 20 22 00 02 54 68 65 20 |........| "..The |
|000014b0| 65 6e 74 72 79 20 70 6f | 69 6e 74 20 69 73 20 74 |entry po|int is t|
|000014c0| 68 65 20 61 64 64 72 65 | 73 73 20 77 68 65 72 65 |he addre|ss where|
|000014d0| 20 74 68 65 20 74 61 73 | 6b 20 69 73 20 74 6f 20 | the tas|k is to |
|000014e0| 62 65 67 69 6e 20 65 78 | 65 63 75 74 69 6f 6e 2e |begin ex|ecution.|
|000014f0| 20 54 68 65 20 62 61 73 | 65 20 61 64 64 72 65 73 | The bas|e addres|
|00001500| 73 20 6f 66 20 74 68 65 | 20 73 74 61 63 6b 20 00 |s of the| stack .|
|00001510| 00 7c 00 00 25 58 00 00 | 42 f4 7c 04 a1 6d eb ff |.|..%X..|B.|..m..|
|00001520| 81 9c eb ff 20 22 00 00 | 69 64 65 6e 74 69 66 69 |.... "..|identifi|
|00001530| 65 73 20 74 68 61 74 20 | 6c 6f 63 61 74 69 6f 6e |es that |location|
|00001540| 20 69 6e 20 52 41 4d 20 | 77 68 65 72 65 20 74 68 | in RAM |where th|
|00001550| 65 20 74 61 73 6b 27 73 | 20 73 74 61 63 6b 20 62 |e task's| stack b|
|00001560| 65 67 69 6e 73 2e 0d 00 | 00 58 00 00 05 74 00 00 |egins...|.X...t..|
|00001570| 00 00 db 06 21 16 eb ff | 01 45 eb ff 20 22 00 02 |....!...|.E.. "..|
|00001580| 54 68 65 20 61 64 64 72 | 65 73 73 20 6f 66 20 74 |The addr|ess of t|
|00001590| 68 65 20 52 41 4d 20 70 | 61 72 74 20 6f 66 20 74 |he RAM p|art of t|
|000015a0| 68 65 20 54 43 42 20 74 | 61 62 6c 65 20 69 73 20 |he TCB t|able is |
|000015b0| 69 6e 63 6c 75 64 65 64 | 20 66 6f 72 20 63 6f 6d |included| for com|
|000015c0| 70 6c 65 74 65 6e 65 73 | 73 20 61 6e 64 20 69 73 |pletenes|s and is|
|000015d0| 20 73 6f 6d 65 74 69 6d | 65 73 20 00 00 74 00 00 | sometim|es ..t..|
|000015e0| a5 74 00 00 42 a4 cf 04 | e1 dd ea ff c1 0c eb ff |.t..B...|........|
|000015f0| 20 22 00 00 75 73 65 64 | 20 74 6f 20 73 61 76 65 | "..used| to save|
|00001600| 20 74 69 6d 65 20 69 6e | 20 73 65 74 74 69 6e 67 | time in| setting|
|00001610| 20 75 70 20 74 68 65 20 | 61 64 64 72 65 73 73 20 | up the |address |
|00001620| 6f 66 20 74 68 65 20 52 | 41 4d 20 54 43 42 20 61 |of the R|AM TCB a|
|00001630| 72 65 61 2e 08 42 00 00 | 0b 42 00 00 00 00 00 00 |rea..B..|.B......|
|00001640| 0d 07 00 00 0d 44 00 00 | 0d 44 00 00 00 00 00 00 |.....D..|.D......|
|00001650| 00 74 00 00 a5 3c 00 00 | 42 40 d4 00 61 6d ea ff |.t...<..|B@..am..|
|00001660| 41 9c ea ff c0 21 00 02 | 33 2e 31 2e 33 20 53 74 |A....!..|3.1.3 St|
|00001670| 61 63 6b 08 0d 44 00 00 | 00 00 00 00 0d 07 00 00 |ack..D..|........|
|00001680| 0b 45 00 00 0b 45 00 00 | 00 00 00 00 00 3c 00 00 |.E...E..|.....<..|
|00001690| 05 78 00 00 00 68 0c 07 | 81 0c ea ff 61 3b ea ff |.x...h..|....a;..|
|000016a0| 20 22 00 02 45 61 63 68 | 20 74 61 73 6b 20 6d 75 | "..Each| task mu|
|000016b0| 73 74 20 68 61 76 65 20 | 61 20 73 74 61 63 6b 20 |st have |a stack |
|000016c0| 6f 6e 20 77 68 69 63 68 | 20 74 68 65 20 63 6f 6e |on which| the con|
|000016d0| 74 65 78 74 20 6f 66 20 | 74 68 65 20 74 61 73 6b |text of |the task|
|000016e0| 20 69 73 20 73 61 76 65 | 64 20 64 75 72 69 6e 67 | is save|d during|
|000016f0| 20 74 68 6f 73 65 20 70 | 65 72 69 6f 64 73 20 77 | those p|eriods w|
|00001700| 68 65 6e 20 00 78 00 00 | 05 84 00 00 00 24 b3 07 |hen .x..|.....$..|
|00001710| 41 d4 e9 ff 21 03 ea ff | 20 22 00 00 74 68 65 20 |A...!...| "..the |
|00001720| 74 61 73 6b 20 69 73 20 | 6e 6f 74 20 61 63 74 75 |task is |not actu|
|00001730| 61 6c 6c 79 20 65 78 65 | 63 75 74 69 6e 67 2e 20 |ally exe|cuting. |
|00001740| 54 68 65 20 62 61 73 65 | 20 61 64 64 72 65 73 73 |The base| address|
|00001750| 20 6f 66 20 74 68 65 20 | 73 74 61 63 6b 20 69 73 | of the |stack is|
|00001760| 20 73 74 6f 72 65 64 20 | 69 6e 20 74 68 65 20 52 | stored |in the R|
|00001770| 4f 4d 20 70 6f 72 74 69 | 6f 6e 20 6f 66 20 74 68 |OM porti|on of th|
|00001780| 65 20 54 43 42 2e 20 00 | 00 84 00 00 05 80 00 00 |e TCB. .|........|
|00001790| 00 18 e3 07 01 9c e9 ff | e1 ca e9 ff 20 22 00 00 |........|.... "..|
|000017a0| 54 68 65 20 73 74 61 63 | 6b 20 65 78 74 65 6e 64 |The stac|k extend|
|000017b0| 73 20 66 72 6f 6d 20 74 | 68 65 20 62 61 73 65 20 |s from t|he base |
|000017c0| 61 64 64 72 65 73 73 20 | 64 6f 77 6e 77 61 72 64 |address |downward|
|000017d0| 20 69 6e 20 6d 65 6d 6f | 72 79 2c 20 69 2e 65 2e | in memo|ry, i.e.|
|000017e0| 20 74 6f 77 61 72 64 73 | 20 61 64 64 72 65 73 73 | towards| address|
|000017f0| 20 24 30 30 30 30 2c 20 | 66 6f 72 20 61 20 6e 75 | $0000, |for a nu|
|00001800| 6d 62 65 72 20 6f 66 20 | 00 80 00 00 05 84 00 00 |mber of |........|
|00001810| 00 b4 77 07 c1 63 e9 ff | a1 92 e9 ff 20 22 00 00 |..w..c..|.... "..|
|00001820| 62 79 74 65 73 20 73 70 | 65 63 69 66 69 65 64 20 |bytes sp|ecified |
|00001830| 62 79 20 74 68 65 20 67 | 69 76 65 6e 20 73 74 61 |by the g|iven sta|
|00001840| 63 6b 20 73 69 7a 65 20 | 66 6f 72 20 74 68 65 20 |ck size |for the |
|00001850| 74 61 73 6b 2e 20 54 68 | 65 20 73 69 7a 65 20 6f |task. Th|e size o|
|00001860| 66 20 65 61 63 68 20 74 | 61 73 6b 27 73 20 73 74 |f each t|ask's st|
|00001870| 61 63 6b 20 69 73 20 64 | 65 70 65 6e 64 65 6e 74 |ack is d|ependent|
|00001880| 20 6f 6e 20 6d 61 6e 79 | 20 00 00 00 00 84 00 00 | on many| .......|
|00001890| 05 7c 00 00 00 f0 86 07 | 81 2b e9 ff 61 5a e9 ff |.|......|.+..aZ..|
|000018a0| 20 22 00 00 74 68 69 6e | 67 73 20 73 75 63 68 20 | "..thin|gs such |
|000018b0| 61 73 20 74 68 65 20 6d | 61 78 69 6d 75 6d 20 64 |as the m|aximum d|
|000018c0| 65 70 74 68 20 6f 66 20 | 6e 65 73 74 65 64 20 73 |epth of |nested s|
|000018d0| 75 62 72 6f 75 74 69 6e | 65 73 20 63 61 6c 6c 73 |ubroutin|es calls|
|000018e0| 2c 20 74 68 65 20 6d 61 | 78 69 6d 75 6d 20 61 6d |, the ma|ximum am|
|000018f0| 6f 75 6e 74 20 6f 66 20 | 77 6f 72 6b 69 6e 67 20 |ount of |working |
|00001900| 73 70 61 63 65 20 00 00 | 00 7c 00 00 05 84 00 00 |space ..|.|......|
|00001910| 00 98 cf 07 41 f3 e8 ff | 21 22 e9 ff 20 22 00 00 |....A...|!".. "..|
|00001920| 6e 65 65 64 65 64 20 66 | 6f 72 20 74 65 6d 70 6f |needed f|or tempo|
|00001930| 72 61 72 79 20 76 61 72 | 69 61 62 6c 65 73 2c 20 |rary var|iables, |
|00001940| 61 6e 64 20 74 68 65 20 | 73 69 7a 65 20 6f 66 20 |and the |size of |
|00001950| 61 6e 79 20 73 74 61 63 | 6b 20 66 72 61 6d 65 73 |any stac|k frames|
|00001960| 20 75 73 65 64 20 62 79 | 20 74 68 65 20 74 61 73 | used by| the tas|
|00001970| 6b 2e 20 41 74 20 6d 69 | 6e 69 6d 75 6d 2c 20 74 |k. At mi|nimum, t|
|00001980| 68 65 20 73 69 7a 65 20 | 6f 66 20 00 00 84 00 00 |he size |of .....|
|00001990| 05 84 00 00 00 b0 b1 07 | 01 bb e8 ff e1 e9 e8 ff |........|........|
|000019a0| 20 22 00 00 74 68 65 20 | 73 74 61 63 6b 20 6d 75 | "..the |stack mu|
|000019b0| 73 74 20 61 6c 6c 6f 77 | 20 66 6f 72 20 74 68 65 |st allow| for the|
|000019c0| 20 73 74 6f 72 61 67 65 | 20 6f 66 20 61 20 63 6f | storage| of a co|
|000019d0| 6d 70 6c 65 74 65 20 63 | 6f 6e 74 65 78 74 20 77 |mplete c|ontext w|
|000019e0| 68 69 63 68 20 72 65 71 | 75 69 72 65 73 20 6e 69 |hich req|uires ni|
|000019f0| 6e 65 20 28 39 29 20 62 | 79 74 65 73 2e 20 49 66 |ne (9) b|ytes. If|
|00001a00| 20 58 49 52 51 20 69 73 | 20 74 6f 20 62 65 20 00 | XIRQ is| to be .|
|00001a10| 00 84 00 00 05 88 00 00 | 00 cc 95 07 c1 82 e8 ff |........|........|
|00001a20| a1 b1 e8 ff 20 22 00 00 | 75 73 65 64 20 69 6e 20 |.... "..|used in |
|00001a30| 74 68 65 20 64 65 73 69 | 67 6e 2c 20 61 6e 20 65 |the desi|gn, an e|
|00001a40| 78 74 72 61 20 6e 69 6e | 65 20 28 39 29 20 62 79 |xtra nin|e (9) by|
|00001a50| 74 65 73 20 6d 75 73 74 | 20 62 65 20 61 6c 6c 6f |tes must| be allo|
|00001a60| 63 61 74 65 64 20 74 6f | 20 65 61 63 68 20 74 61 |cated to| each ta|
|00001a70| 73 6b 27 73 20 73 74 61 | 63 6b 20 64 75 65 20 74 |sk's sta|ck due t|
|00001a80| 6f 20 74 68 65 20 70 6f | 73 73 69 62 69 6c 69 74 |o the po|ssibilit|
|00001a90| 79 20 6f 66 20 00 00 00 | 00 88 00 00 05 78 00 00 |y of ...|.....x..|
|00001aa0| 00 1c 6a 07 81 4a e8 ff | 61 79 e8 ff 20 22 00 00 |..j..J..|ay.. "..|
|00001ab0| 73 74 61 63 6b 69 6e 67 | 20 61 6e 20 49 52 51 20 |stacking| an IRQ |
|00001ac0| 66 6f 6c 6c 6f 77 65 64 | 20 62 79 20 61 6e 20 58 |followed| by an X|
|00001ad0| 49 52 51 2e 20 54 68 69 | 73 20 69 73 20 70 6f 73 |IRQ. Thi|s is pos|
|00001ae0| 73 69 62 6c 65 20 62 65 | 63 61 75 73 65 20 74 68 |sible be|cause th|
|00001af0| 65 20 58 49 52 51 20 63 | 61 6e 6e 6f 74 20 62 65 |e XIRQ c|annot be|
|00001b00| 20 6d 61 73 6b 65 64 20 | 61 6e 64 20 63 61 6e 20 | masked |and can |
|00001b10| 00 78 00 00 25 54 00 00 | 42 c4 f8 03 41 12 e8 ff |.x..%T..|B...A...|
|00001b20| 21 41 e8 ff 20 22 00 00 | 69 6e 74 65 72 72 75 70 |!A.. "..|interrup|
|00001b30| 74 20 61 6e 20 49 52 51 | 20 69 6e 74 65 72 72 75 |t an IRQ| interru|
|00001b40| 70 74 20 73 65 72 76 69 | 63 65 20 72 6f 75 74 69 |pt servi|ce routi|
|00001b50| 6e 65 20 61 74 20 61 6e | 79 20 70 6f 69 6e 74 2e |ne at an|y point.|
|00001b60| 0d 00 00 00 00 54 00 00 | 05 7c 00 00 00 7c fb 06 |.....T..|.|...|..|
|00001b70| c1 ba e7 ff a1 e9 e7 ff | 20 22 00 02 49 6e 20 61 |........| "..In a|
|00001b80| 64 64 69 74 69 6f 6e 20 | 74 6f 20 74 68 65 20 73 |ddition |to the s|
|00001b90| 74 61 63 6b 73 20 6e 65 | 65 64 65 64 20 62 79 20 |tacks ne|eded by |
|00001ba0| 74 68 65 20 74 61 73 6b | 73 2c 20 74 68 65 72 65 |the task|s, there|
|00001bb0| 20 69 73 20 61 6c 73 6f | 20 74 68 65 20 6e 65 65 | is also| the nee|
|00001bc0| 64 20 66 6f 72 20 61 20 | 73 74 61 63 6b 20 66 6f |d for a |stack fo|
|00001bd0| 72 20 4d 43 58 31 31 2e | 20 54 68 69 73 20 00 00 |r MCX11.| This ..|
|00001be0| 00 7c 00 00 05 84 00 00 | 00 fc d4 07 81 82 e7 ff |.|......|........|
|00001bf0| 61 b1 e7 ff 20 22 00 00 | 73 79 73 74 65 6d 20 73 |a... "..|system s|
|00001c00| 74 61 63 6b 20 6d 75 73 | 74 20 68 61 76 65 20 73 |tack mus|t have s|
|00001c10| 75 66 66 69 63 69 65 6e | 74 20 73 70 61 63 65 20 |ufficien|t space |
|00001c20| 74 6f 20 68 61 6e 64 6c | 65 20 74 68 65 20 6d 61 |to handl|e the ma|
|00001c30| 78 69 6d 75 6d 20 6e 75 | 6d 62 65 72 20 6f 66 20 |ximum nu|mber of |
|00001c40| 69 6e 74 65 72 72 75 70 | 74 73 20 70 6f 73 73 69 |interrup|ts possi|
|00001c50| 62 6c 65 20 61 74 20 61 | 6e 79 20 67 69 76 65 6e |ble at a|ny given|
|00001c60| 20 00 00 00 00 84 00 00 | 05 80 00 00 00 1c 6a 07 | .......|......j.|
|00001c70| 41 4a e7 ff 21 79 e7 ff | 20 22 00 00 74 69 6d 65 |AJ..!y..| "..time|
|00001c80| 2c 20 6c 65 73 73 20 6f | 6e 65 20 69 6e 74 65 72 |, less o|ne inter|
|00001c90| 72 75 70 74 2e 20 45 61 | 63 68 20 69 6e 74 65 72 |rupt. Ea|ch inter|
|00001ca0| 72 75 70 74 20 72 65 71 | 75 69 72 65 73 20 6e 69 |rupt req|uires ni|
|00001cb0| 6e 65 20 62 79 74 65 73 | 2e 20 4d 43 58 31 31 20 |ne bytes|. MCX11 |
|00001cc0| 66 75 6e 63 74 69 6f 6e | 73 20 68 61 76 65 20 61 |function|s have a|
|00001cd0| 20 77 6f 72 73 74 20 63 | 61 73 65 20 73 74 61 63 | worst c|ase stac|
|00001ce0| 6b 20 00 00 00 80 00 00 | 01 10 00 00 42 88 53 06 |k ......|....B.S.|
|00001cf0| 00 00 00 00 00 10 00 00 | 02 18 00 00 c8 03 00 00 |........|........|
|00001d00| 00 00 00 00 0b 45 00 00 | 00 00 00 00 00 18 00 00 |.....E..|........|
|00001d10| 25 70 00 00 42 88 53 06 | 30 31 e5 ff 10 60 e5 ff |%p..B.S.|01...`..|
|00001d20| 20 22 00 00 72 65 71 75 | 69 72 65 6d 65 6e 74 20 | "..requ|irement |
|00001d30| 6f 66 20 73 65 76 65 6e | 20 28 37 29 20 62 79 74 |of seven| (7) byt|
|00001d40| 65 73 20 6e 6f 74 20 69 | 6e 63 6c 75 64 69 6e 67 |es not i|ncluding|
|00001d50| 20 74 68 6f 73 65 20 62 | 79 74 65 73 20 72 65 71 | those b|ytes req|
|00001d60| 75 69 72 65 64 20 66 6f | 72 20 74 68 65 20 73 79 |uired fo|r the sy|
|00001d70| 73 74 65 6d 20 73 74 61 | 63 6b 2e 0d 00 70 00 00 |stem sta|ck...p..|
|00001d80| 05 74 00 00 00 10 b9 06 | b0 d9 e4 ff 90 08 e5 ff |.t......|........|
|00001d90| 20 22 00 02 54 68 65 20 | 73 75 6d 20 6f 66 20 61 | "..The |sum of a|
|00001da0| 6c 6c 20 6f 66 20 74 68 | 65 20 73 74 61 63 6b 20 |ll of th|e stack |
|00001db0| 72 65 71 75 69 72 65 6d | 65 6e 74 73 20 73 68 6f |requirem|ents sho|
|00001dc0| 75 6c 64 20 6e 6f 74 20 | 62 65 20 61 6c 6c 6f 77 |uld not |be allow|
|00001dd0| 65 64 20 74 6f 20 65 78 | 63 65 65 64 20 61 76 61 |ed to ex|ceed ava|
|00001de0| 69 6c 61 62 6c 65 20 52 | 41 4d 20 6f 72 20 00 00 |ilable R|AM or ..|
|00001df0| 00 74 00 00 a5 48 00 00 | 42 90 86 01 70 a1 e4 ff |.t...H..|B...p...|
|00001e00| 50 d0 e4 ff 20 22 00 00 | 74 68 65 72 65 20 77 69 |P... "..|there wi|
|00001e10| 6c 6c 20 62 65 20 74 72 | 6f 75 62 6c 65 2e 08 00 |ll be tr|ouble...|
|00001e20| 0b 45 00 00 00 00 00 00 | 0d 07 00 00 0c 46 00 00 |.E......|.....F..|
|00001e30| 0c 46 00 00 00 00 00 00 | 00 48 00 00 a5 40 00 00 |.F......|.H...@..|
|00001e40| 42 20 84 01 f0 30 e4 ff | d0 5f e4 ff c0 21 00 02 |B ...0..|._...!..|
|00001e50| 33 2e 32 20 53 45 4d 41 | 50 48 4f 52 45 53 08 00 |3.2 SEMA|PHORES..|
|00001e60| 0c 46 00 00 00 00 00 00 | 0d 07 00 00 0b 47 00 00 |.F......|.....G..|
|00001e70| 0b 47 00 00 00 00 00 00 | 00 40 00 00 05 6c 00 00 |.G......|.@...l..|
|00001e80| 00 2c 16 06 10 d0 e3 ff | f0 fe e3 ff 20 22 00 02 |.,......|.... "..|
|00001e90| 53 65 6d 61 70 68 6f 72 | 65 73 20 28 65 76 65 6e |Semaphor|es (even|
|00001ea0| 74 20 66 6c 61 67 73 29 | 20 61 72 65 20 75 73 65 |t flags)| are use|
|00001eb0| 64 20 74 6f 20 73 79 6e | 63 68 72 6f 6e 69 7a 65 |d to syn|chronize|
|00001ec0| 20 74 77 6f 20 74 61 73 | 6b 73 20 74 6f 20 74 68 | two tas|ks to th|
|00001ed0| 65 20 6f 63 63 75 72 72 | 65 6e 63 65 20 6f 66 20 |e occurr|ence of |
|00001ee0| 61 6e 20 00 00 6c 00 00 | 05 88 00 00 00 a4 d8 07 |an ..l..|........|
|00001ef0| d0 97 e3 ff b0 c6 e3 ff | 20 22 00 00 61 73 79 6e |........| "..asyn|
|00001f00| 63 68 72 6f 6e 6f 75 73 | 20 65 76 65 6e 74 2e 20 |chronous| event. |
|00001f10| 4f 6e 65 20 74 61 73 6b | 20 6d 61 79 20 6e 65 65 |One task| may nee|
|00001f20| 64 20 74 6f 20 77 61 69 | 74 20 66 6f 72 20 74 68 |d to wai|t for th|
|00001f30| 65 20 6f 74 68 65 72 20 | 74 6f 20 72 65 61 63 68 |e other |to reach|
|00001f40| 20 61 20 63 65 72 74 61 | 69 6e 20 70 6f 69 6e 74 | a certa|in point|
|00001f50| 20 62 65 66 6f 72 65 20 | 69 74 20 63 61 6e 20 63 | before |it can c|
|00001f60| 6f 6e 74 69 6e 75 65 2e | 20 00 00 00 00 88 00 00 |ontinue.| .......|
|00001f70| 05 84 00 00 00 8c e4 07 | 90 5f e3 ff 70 8e e3 ff |........|._..p...|
|00001f80| 20 22 00 00 49 6e 70 75 | 74 2f 6f 75 74 70 75 74 | "..Inpu|t/output|
|00001f90| 20 6f 70 65 72 61 74 69 | 6f 6e 73 20 61 72 65 20 | operati|ons are |
|00001fa0| 61 6e 20 65 78 61 6d 70 | 6c 65 20 6f 66 20 74 68 |an examp|le of th|
|00001fb0| 69 73 20 74 79 70 65 20 | 6f 66 20 73 79 6e 63 68 |is type |of synch|
|00001fc0| 72 6f 6e 69 7a 61 74 69 | 6f 6e 2e 20 46 6f 72 20 |ronizati|on. For |
|00001fd0| 69 6e 73 74 61 6e 63 65 | 2c 20 77 68 65 6e 20 61 |instance|, when a|
|00001fe0| 6e 20 69 6e 70 75 74 20 | 66 72 6f 6d 20 61 6e 20 |n input |from an |
|00001ff0| 00 84 00 00 05 88 00 00 | 00 44 ab 07 50 27 e3 ff |........|.D..P'..|
|00002000| 30 56 e3 ff 20 22 00 00 | 65 78 74 65 72 6e 61 6c |0V.. "..|external|
|00002010| 20 64 65 76 69 63 65 20 | 69 73 20 64 65 73 69 72 | device |is desir|
|00002020| 65 64 20 62 79 20 61 20 | 74 61 73 6b 2c 20 69 74 |ed by a |task, it|
|00002030| 20 6d 75 73 74 20 77 61 | 69 74 20 66 6f 72 20 74 | must wa|it for t|
|00002040| 68 65 20 69 6e 70 75 74 | 20 65 76 65 6e 74 20 74 |he input| event t|
|00002050| 6f 20 6f 63 63 75 72 2e | 20 57 68 65 6e 20 74 68 |o occur.| When th|
|00002060| 65 20 69 6e 70 75 74 20 | 6f 70 65 72 61 74 69 6f |e input |operatio|
|00002070| 6e 20 69 73 20 00 00 00 | 00 88 00 00 05 84 00 00 |n is ...|........|
|00002080| 00 88 b5 07 10 ef e2 ff | f0 1d e3 ff 20 22 00 00 |........|.... "..|
|00002090| 63 6f 6d 70 6c 65 74 65 | 64 2c 20 74 68 65 20 64 |complete|d, the d|
|000020a0| 65 76 69 63 65 20 64 72 | 69 76 65 72 20 73 69 67 |evice dr|iver sig|
|000020b0| 6e 61 6c 73 20 74 68 61 | 74 20 74 68 65 20 65 76 |nals tha|t the ev|
|000020c0| 65 6e 74 20 68 61 73 20 | 6f 63 63 75 72 72 65 64 |ent has |occurred|
|000020d0| 20 77 68 69 63 68 20 69 | 6e 64 69 63 61 74 65 73 | which i|ndicates|
|000020e0| 20 74 68 65 20 64 61 74 | 61 20 69 73 20 61 76 61 | the dat|a is ava|
|000020f0| 69 6c 61 62 6c 65 2e 20 | 54 68 65 20 00 84 00 00 |ilable. |The ....|
|00002100| 05 78 00 00 00 04 f5 06 | d0 b6 e2 ff b0 e5 e2 ff |.x......|........|
|00002110| 20 22 00 00 73 69 67 6e | 61 6c 6c 69 6e 67 20 70 | "..sign|alling p|
|00002120| 72 6f 63 65 73 73 20 63 | 61 75 73 65 73 20 74 68 |rocess c|auses th|
|00002130| 65 20 77 61 69 74 69 6e | 67 20 74 61 73 6b 20 74 |e waitin|g task t|
|00002140| 6f 20 72 65 73 75 6d 65 | 2c 20 70 72 65 73 75 6d |o resume|, presum|
|00002150| 61 62 6c 79 20 74 6f 20 | 70 72 6f 63 65 73 73 20 |ably to |process |
|00002160| 74 68 65 20 69 6e 70 75 | 74 20 64 61 74 61 2e 20 |the inpu|t data. |
|00002170| 54 68 65 20 00 78 00 00 | 25 68 00 00 42 a4 c5 05 |The .x..|%h..B...|
|00002180| 90 7e e2 ff 70 ad e2 ff | 20 22 00 00 73 79 6e 63 |.~..p...| "..sync|
|00002190| 68 72 6f 6e 69 7a 61 74 | 69 6f 6e 20 6f 66 20 74 |hronizat|ion of t|
|000021a0| 68 65 20 74 61 73 6b 20 | 77 69 74 68 20 74 68 65 |he task |with the|
|000021b0| 20 65 76 65 6e 74 20 69 | 73 20 64 6f 6e 65 20 77 | event i|s done w|
|000021c0| 69 74 68 20 74 68 65 20 | 75 73 65 20 6f 66 20 61 |ith the |use of a|
|000021d0| 20 73 65 6d 61 70 68 6f | 72 65 2e 0d 00 68 00 00 | semapho|re...h..|
|000021e0| 05 78 00 00 00 e4 f0 06 | 10 27 e2 ff f0 55 e2 ff |.x......|.'...U..|
|000021f0| 20 22 00 02 54 68 65 72 | 65 20 61 72 65 20 73 65 | "..Ther|e are se|
|00002200| 76 65 72 61 6c 20 66 6f | 72 6d 73 20 74 68 61 74 |veral fo|rms that|
|00002210| 20 61 20 73 65 6d 61 70 | 68 6f 72 65 20 6d 61 79 | a semap|hore may|
|00002220| 20 74 61 6b 65 20 69 6e | 20 74 68 65 20 64 65 73 | take in| the des|
|00002230| 69 67 6e 20 6f 66 20 61 | 20 72 65 61 6c 2d 74 69 |ign of a| real-ti|
|00002240| 6d 65 20 6b 65 72 6e 65 | 6c 2e 20 4d 43 58 31 31 |me kerne|l. MCX11|
|00002250| 20 00 00 00 00 78 00 00 | 05 84 00 00 00 68 db 07 | ....x..|.....h..|
|00002260| d0 ee e1 ff b0 1d e2 ff | 20 22 00 00 75 73 65 73 |........| "..uses|
|00002270| 20 61 20 62 61 73 69 63 | 20 73 65 6d 61 70 68 6f | a basic| semapho|
|00002280| 72 65 20 63 6f 6e 73 74 | 72 75 63 74 20 74 68 61 |re const|ruct tha|
|00002290| 74 20 69 73 20 6b 6e 6f | 77 6e 20 74 6f 20 68 61 |t is kno|wn to ha|
|000022a0| 6e 64 6c 65 20 6d 6f 73 | 74 20 65 76 65 6e 74 73 |ndle mos|t events|
|000022b0| 20 61 6e 64 20 69 73 20 | 6c 6f 77 20 69 6e 20 6f | and is |low in o|
|000022c0| 76 65 72 68 65 61 64 2e | 20 41 20 73 65 6d 61 70 |verhead.| A semap|
|000022d0| 68 6f 72 65 20 00 00 00 | 00 84 00 00 05 84 00 00 |hore ...|........|
|000022e0| 00 94 be 07 90 b6 e1 ff | 70 e5 e1 ff 20 22 00 00 |........|p... "..|
|000022f0| 69 73 20 72 65 66 65 72 | 65 6e 63 65 64 20 62 79 |is refer|enced by|
|00002300| 20 61 20 6e 75 6d 65 72 | 69 63 61 6c 20 69 64 65 | a numer|ical ide|
|00002310| 6e 74 69 66 69 65 72 20 | 6c 69 6d 69 74 65 64 20 |ntifier |limited |
|00002320| 74 6f 20 61 20 76 61 6c | 75 65 20 66 72 6f 6d 20 |to a val|ue from |
|00002330| 31 2d 32 35 35 2e 20 41 | 20 73 65 6d 61 70 68 6f |1-255. A| semapho|
|00002340| 72 65 20 69 64 65 6e 74 | 69 66 69 65 72 20 6f 66 |re ident|ifier of|
|00002350| 20 7a 65 72 6f 20 68 61 | 73 20 61 20 00 84 00 00 | zero ha|s a ....|
|00002360| 25 74 00 00 42 fc d2 06 | 50 7e e1 ff 30 ad e1 ff |%t..B...|P~..0...|
|00002370| 20 22 00 00 73 70 65 63 | 69 61 6c 20 6d 65 61 6e | "..spec|ial mean|
|00002380| 69 6e 67 2e 20 54 68 65 | 72 65 20 61 72 65 20 74 |ing. The|re are t|
|00002390| 68 72 65 65 20 64 69 66 | 66 65 72 65 6e 74 20 63 |hree dif|ferent c|
|000023a0| 6c 61 73 73 65 73 20 6f | 66 20 73 65 6d 61 70 68 |lasses o|f semaph|
|000023b0| 6f 72 65 73 20 75 73 65 | 64 20 62 79 20 4d 43 58 |ores use|d by MCX|
|000023c0| 31 31 20 61 73 20 66 6f | 6c 6c 6f 77 73 3a 0d 00 |11 as fo|llows:..|
|000023d0| 00 74 00 00 25 2c 00 00 | 42 b8 8b 01 d0 26 e1 ff |.t..%,..|B....&..|
|000023e0| b0 55 e1 ff 20 22 00 02 | 2d 20 4e 61 6d 65 64 20 |.U.. "..|- Named |
|000023f0| 73 65 6d 61 70 68 6f 72 | 65 73 0d 00 00 2c 00 00 |semaphor|es...,..|
|00002400| 25 2c 00 00 42 78 5f 01 | 50 cf e0 ff 30 fe e0 ff |%,..Bx_.|P...0...|
|00002410| 20 22 00 02 2d 20 54 61 | 73 6b 20 73 65 6d 61 70 | "..- Ta|sk semap|
|00002420| 68 6f 72 65 73 0d 00 00 | 00 2c 00 00 25 2c 00 00 |hores...|.,..%,..|
|00002430| 42 b0 7e 01 d0 77 e0 ff | b0 a6 e0 ff 20 22 00 02 |B.~..w..|.... "..|
|00002440| 2d 20 51 75 65 75 65 20 | 73 65 6d 61 70 68 6f 72 |- Queue |semaphor|
|00002450| 65 73 0d 00 00 2c 00 00 | 05 78 00 00 00 4c fb 06 |es...,..|.x...L..|
|00002460| 50 20 e0 ff 30 4f e0 ff | 20 22 00 02 4e 61 6d 65 |P ..0O..| "..Name|
|00002470| 64 20 73 65 6d 61 70 68 | 6f 72 65 73 20 61 72 65 |d semaph|ores are|
|00002480| 20 74 68 6f 73 65 20 6e | 6f 72 6d 61 6c 6c 79 20 | those n|ormally |
|00002490| 72 65 66 65 72 65 6e 63 | 65 64 20 62 79 20 74 68 |referenc|ed by th|
|000024a0| 65 20 75 73 65 72 20 69 | 6e 20 74 68 65 20 61 70 |e user i|n the ap|
|000024b0| 70 6c 69 63 61 74 69 6f | 6e 20 63 6f 64 65 2e 20 |plicatio|n code. |
|000024c0| 54 61 73 6b 20 61 6e 64 | 20 00 00 00 00 78 00 00 |Task and| ....x..|
|000024d0| 05 7c 00 00 00 58 7c 07 | 10 e8 df ff f0 16 e0 ff |.|...X|.|........|
|000024e0| 20 22 00 00 71 75 65 75 | 65 20 73 65 6d 61 70 68 | "..queu|e semaph|
|000024f0| 6f 72 65 73 20 61 72 65 | 20 75 73 65 64 20 62 79 |ores are| used by|
|00002500| 20 4d 43 58 31 31 20 69 | 6e 74 65 72 6e 61 6c 6c | MCX11 i|nternall|
|00002510| 79 20 66 6f 72 20 74 68 | 65 20 70 75 72 70 6f 73 |y for th|e purpos|
|00002520| 65 20 6f 66 20 6f 72 74 | 68 6f 67 6f 6e 61 6c 69 |e of ort|hogonali|
|00002530| 74 79 20 77 69 74 68 20 | 74 68 65 20 73 65 6d 61 |ty with |the sema|
|00002540| 70 68 6f 72 65 20 00 00 | 00 7c 00 00 05 88 00 00 |phore ..|.|......|
|00002550| 00 5c ed 07 d0 af df ff | b0 de df ff 20 22 00 00 |.\......|.... "..|
|00002560| 73 65 72 76 69 63 65 20 | 66 75 6e 63 74 69 6f 6e |service |function|
|00002570| 73 2e 20 54 61 73 6b 20 | 73 65 6d 61 70 68 6f 72 |s. Task |semaphor|
|00002580| 65 73 20 61 72 65 20 61 | 6c 77 61 79 73 20 72 65 |es are a|lways re|
|00002590| 66 65 72 65 6e 63 65 64 | 20 62 79 20 74 68 65 20 |ferenced| by the |
|000025a0| 69 64 65 6e 74 69 66 69 | 65 72 20 6f 66 20 7a 65 |identifi|er of ze|
|000025b0| 72 6f 20 28 30 29 20 77 | 68 69 63 68 20 69 73 20 |ro (0) w|hich is |
|000025c0| 74 72 61 6e 73 6c 61 74 | 65 64 20 62 79 20 00 00 |translat|ed by ..|
|000025d0| 00 88 00 00 05 7c 00 00 | 00 18 c5 07 90 77 df ff |.....|..|.....w..|
|000025e0| 70 a6 df ff 20 22 00 00 | 4d 43 58 31 31 20 69 6e |p... "..|MCX11 in|
|000025f0| 74 6f 20 74 68 65 20 70 | 72 6f 70 65 72 20 6e 75 |to the p|roper nu|
|00002600| 6d 62 65 72 20 66 6f 72 | 20 74 68 65 20 74 61 73 |mber for| the tas|
|00002610| 6b 20 73 65 6d 61 70 68 | 6f 72 65 2e 20 51 75 65 |k semaph|ore. Que|
|00002620| 75 65 20 73 65 6d 61 70 | 68 6f 72 65 73 20 73 68 |ue semap|hores sh|
|00002630| 6f 75 6c 64 20 6e 65 76 | 65 72 20 62 65 20 72 65 |ould nev|er be re|
|00002640| 66 65 72 65 6e 63 65 64 | 20 62 79 20 00 7c 00 00 |ferenced| by .|..|
|00002650| 25 48 00 00 42 20 52 03 | 50 3f df ff 30 6e df ff |%H..B R.|P?..0n..|
|00002660| 20 22 00 00 74 68 65 20 | 75 73 65 72 20 6c 65 73 | "..the |user les|
|00002670| 74 20 75 6e 64 65 73 69 | 72 61 62 6c 65 20 72 65 |t undesi|rable re|
|00002680| 73 75 6c 74 73 20 73 68 | 6f 75 6c 64 20 6f 63 63 |sults sh|ould occ|
|00002690| 75 72 2e 0d 00 48 00 00 | 05 74 00 00 00 88 dd 06 |ur...H..|.t......|
|000026a0| d0 e7 de ff b0 16 df ff | 20 22 00 02 41 6e 20 4d |........| "..An M|
|000026b0| 43 58 31 31 20 73 65 6d | 61 70 68 6f 72 65 20 69 |CX11 sem|aphore i|
|000026c0| 73 20 61 20 73 69 6e 67 | 6c 65 20 62 79 74 65 20 |s a sing|le byte |
|000026d0| 28 38 20 62 69 74 73 29 | 20 77 68 69 63 68 20 63 |(8 bits)| which c|
|000026e0| 6f 6e 74 61 69 6e 73 20 | 61 20 76 61 6c 75 65 20 |ontains |a value |
|000026f0| 72 65 70 72 65 73 65 6e | 74 69 6e 67 20 6f 6e 65 |represen|ting one|
|00002700| 20 6f 66 20 74 68 65 20 | 00 74 00 00 25 58 00 00 | of the |.t..%X..|
|00002710| 42 7c 49 04 90 af de ff | 70 de de ff 20 22 00 00 |B|I.....|p... "..|
|00002720| 74 68 72 65 65 20 70 6f | 73 73 69 62 6c 65 20 73 |three po|ssible s|
|00002730| 74 61 74 65 73 20 69 6e | 20 77 68 69 63 68 20 69 |tates in| which i|
|00002740| 74 20 63 61 6e 20 65 78 | 69 73 74 2e 20 54 68 65 |t can ex|ist. The|
|00002750| 73 65 20 73 74 61 74 65 | 73 20 61 72 65 3a 0d 00 |se state|s are:..|
|00002760| 00 58 00 00 25 24 00 00 | 42 04 e9 00 10 58 de ff |.X..%$..|B....X..|
|00002770| f0 86 de ff 20 22 00 02 | 2d 20 50 45 4e 44 49 4e |.... "..|- PENDIN|
|00002780| 47 0d 00 00 00 24 00 00 | 25 24 00 00 42 f8 e8 00 |G....$..|%$..B...|
|00002790| 90 00 de ff 70 2f de ff | 20 22 00 02 2d 20 57 41 |....p/..| "..- WA|
|000027a0| 49 54 49 4e 47 0d 00 00 | 00 24 00 00 25 20 00 00 |ITING...|.$..% ..|
|000027b0| 42 80 9d 00 10 a9 dd ff | f0 d7 dd ff 20 22 00 02 |B.......|.... "..|
|000027c0| 2d 20 44 4f 4e 45 0d 00 | 00 20 00 00 05 74 00 00 |- DONE..|. ...t..|
|000027d0| 00 44 e5 06 90 51 dd ff | 70 80 dd ff 20 22 00 02 |.D...Q..|p... "..|
|000027e0| 41 20 50 45 4e 44 49 4e | 47 20 73 74 61 74 65 20 |A PENDIN|G state |
|000027f0| 69 6e 64 69 63 61 74 65 | 73 20 74 68 61 74 20 74 |indicate|s that t|
|00002800| 68 65 20 65 76 65 6e 74 | 20 61 73 73 6f 63 69 61 |he event| associa|
|00002810| 74 65 64 20 77 69 74 68 | 20 74 68 65 20 73 65 6d |ted with| the sem|
|00002820| 61 70 68 6f 72 65 20 68 | 61 73 20 6e 6f 74 20 79 |aphore h|as not y|
|00002830| 65 74 20 6f 63 63 75 72 | 72 65 64 20 00 74 00 00 |et occur|red .t..|
|00002840| 05 84 00 00 00 6c d7 07 | 50 19 dd ff 30 48 dd ff |.....l..|P...0H..|
|00002850| 20 22 00 00 61 6e 64 20 | 69 73 20 74 68 65 72 65 | "..and |is there|
|00002860| 66 6f 72 65 20 70 65 6e | 64 69 6e 67 2e 20 54 68 |fore pen|ding. Th|
|00002870| 65 20 57 41 49 54 49 4e | 47 20 73 74 61 74 65 20 |e WAITIN|G state |
|00002880| 73 68 6f 77 73 20 74 68 | 61 74 20 6e 6f 74 20 6f |shows th|at not o|
|00002890| 6e 6c 79 20 68 61 73 20 | 74 68 65 20 65 76 65 6e |nly has |the even|
|000028a0| 74 20 6e 6f 74 20 79 65 | 74 20 6f 63 63 75 72 72 |t not ye|t occurr|
|000028b0| 65 64 20 62 75 74 20 61 | 20 74 61 73 6b 20 00 00 |ed but a| task ..|
|000028c0| 00 84 00 00 05 80 00 00 | 00 cc ad 07 10 e1 dc ff |........|........|
|000028d0| f0 0f dd ff 20 22 00 00 | 69 73 20 77 61 69 74 69 |.... "..|is waiti|
|000028e0| 6e 67 20 66 6f 72 20 69 | 74 20 74 6f 20 68 61 70 |ng for i|t to hap|
|000028f0| 70 65 6e 2e 20 54 68 65 | 20 44 4f 4e 45 20 73 74 |pen. The| DONE st|
|00002900| 61 74 65 20 74 65 6c 6c | 73 20 74 68 61 74 20 74 |ate tell|s that t|
|00002910| 68 65 20 65 76 65 6e 74 | 20 68 61 73 20 6f 63 63 |he event| has occ|
|00002920| 75 72 72 65 64 2e 20 4d | 43 58 31 31 20 73 65 6d |urred. M|CX11 sem|
|00002930| 61 70 68 6f 72 65 73 20 | 68 61 76 65 20 61 20 00 |aphores |have a .|
|00002940| 00 80 00 00 05 80 00 00 | 00 14 72 07 d0 a8 dc ff |........|..r.....|
|00002950| b0 d7 dc ff 20 22 00 00 | 76 65 72 79 20 73 74 72 |.... "..|very str|
|00002960| 69 63 74 20 73 74 61 74 | 65 20 74 72 61 6e 73 69 |ict stat|e transi|
|00002970| 74 69 6f 6e 20 70 72 6f | 74 6f 63 6f 6c 20 77 68 |tion pro|tocol wh|
|00002980| 69 63 68 20 69 73 20 61 | 75 74 6f 6d 61 74 69 63 |ich is a|utomatic|
|00002990| 61 6c 6c 79 20 6d 61 6e | 61 67 65 64 20 62 79 20 |ally man|aged by |
|000029a0| 4d 43 58 31 31 2e 20 54 | 68 65 20 70 65 72 6d 69 |MCX11. T|he permi|
|000029b0| 73 73 69 62 6c 65 20 73 | 74 61 74 65 20 00 00 00 |ssible s|tate ...|
|000029c0| 00 80 00 00 a5 48 00 00 | 42 34 de 02 90 70 dc ff |.....H..|B4...p..|
|000029d0| 70 9f dc ff 20 22 00 00 | 63 68 61 6e 67 65 73 20 |p... "..|changes |
|000029e0| 61 72 65 20 73 68 6f 77 | 6e 20 69 6e 20 74 68 65 |are show|n in the|
|000029f0| 20 66 69 67 75 72 65 20 | 62 65 6c 6f 77 3a 0d 08 | figure |below:..|
|00002a00| 0b 47 00 00 00 00 00 00 | 00 48 00 00 a5 44 00 00 |.G......|.H...D..|
|00002a10| 42 85 f5 07 21 7e da ff | 30 67 dc ff 2f da 01 02 |B...!~..|0g../...|
|00002a20| 13 0e 00 00 18 00 00 00 | 01 00 00 00 00 00 00 00 |........|........|
|00002a30| 51 01 00 00 85 f5 07 00 | 2f da 01 00 0d 07 63 ff |Q.......|/.....c.|
|00002a40| 0b 4a 00 00 0b 4a 00 00 | 00 00 00 00 00 44 00 00 |.J...J..|.....D..|
|00002a50| 01 10 00 00 00 54 d8 06 | 00 00 00 00 00 10 00 00 |.....T..|........|
|00002a60| 02 18 00 00 f4 04 00 00 | 00 00 00 00 0b 4a 00 00 |........|.....J..|
|00002a70| 00 00 00 00 00 18 00 00 | 05 78 00 00 00 54 d8 06 |........|.x...T..|
|00002a80| 3f 12 d8 ff 1f 41 d8 ff | 20 22 00 02 49 66 20 61 |?....A..| "..If a|
|00002a90| 20 74 61 73 6b 20 61 74 | 74 65 6d 70 74 73 20 74 | task at|tempts t|
|00002aa0| 6f 20 77 61 69 74 20 6f | 6e 20 61 20 73 65 6d 61 |o wait o|n a sema|
|00002ab0| 70 68 6f 72 65 20 77 68 | 69 63 68 20 69 73 20 69 |phore wh|ich is i|
|00002ac0| 6e 20 74 68 65 20 44 4f | 4e 45 20 73 74 61 74 65 |n the DO|NE state|
|00002ad0| 2c 20 74 68 65 20 77 61 | 69 74 20 64 6f 65 73 20 |, the wa|it does |
|00002ae0| 6e 6f 74 20 6f 63 63 75 | 72 20 00 00 00 78 00 00 |not occu|r ...x..|
|00002af0| 05 84 00 00 00 30 ec 07 | ff d9 d7 ff df 08 d8 ff |.....0..|........|
|00002b00| 20 22 00 00 61 6e 64 20 | 74 68 65 20 74 61 73 6b | "..and |the task|
|00002b10| 20 69 73 20 69 6d 6d 65 | 64 69 61 74 65 6c 79 20 | is imme|diately |
|00002b20| 72 65 73 75 6d 65 64 20 | 28 73 69 6e 63 65 20 74 |resumed |(since t|
|00002b30| 68 65 20 64 65 73 69 72 | 65 64 20 65 76 65 6e 74 |he desir|ed event|
|00002b40| 20 68 61 73 20 61 6c 72 | 65 61 64 79 20 68 61 70 | has alr|eady hap|
|00002b50| 70 65 6e 65 64 29 20 61 | 6e 64 20 74 68 65 20 73 |pened) a|nd the s|
|00002b60| 65 6d 61 70 68 6f 72 65 | 20 73 74 61 74 65 20 00 |emaphore| state .|
|00002b70| 00 84 00 00 05 84 00 00 | 00 e0 e1 07 bf a1 d7 ff |........|........|
|00002b80| 9f d0 d7 ff 20 22 00 00 | 69 73 20 63 68 61 6e 67 |.... "..|is chang|
|00002b90| 65 64 20 62 61 63 6b 20 | 74 6f 20 50 45 4e 44 49 |ed back |to PENDI|
|00002ba0| 4e 47 2e 20 49 66 20 61 | 20 74 61 73 6b 20 61 74 |NG. If a| task at|
|00002bb0| 74 65 6d 70 74 73 20 74 | 6f 20 77 61 69 74 20 6f |tempts t|o wait o|
|00002bc0| 6e 20 61 20 73 65 6d 61 | 70 68 6f 72 65 20 69 6e |n a sema|phore in|
|00002bd0| 20 74 68 65 20 50 45 4e | 44 49 4e 47 20 73 74 61 | the PEN|DING sta|
|00002be0| 74 65 2c 20 74 68 65 20 | 73 74 61 74 65 20 6f 66 |te, the |state of|
|00002bf0| 20 00 00 00 00 84 00 00 | 05 80 00 00 00 7c 9d 07 | .......|.....|..|
|00002c00| 7f 69 d7 ff 5f 98 d7 ff | 20 22 00 00 74 68 65 20 |.i.._...| "..the |
|00002c10| 73 65 6d 61 70 68 6f 72 | 65 20 69 73 20 63 68 61 |semaphor|e is cha|
|00002c20| 6e 67 65 64 20 74 6f 20 | 57 41 49 54 49 4e 47 20 |nged to |WAITING |
|00002c30| 61 6e 64 20 74 68 65 20 | 74 61 73 6b 27 73 20 65 |and the |task's e|
|00002c40| 78 65 63 75 74 69 6f 6e | 20 69 73 20 73 75 73 70 |xecution| is susp|
|00002c50| 65 6e 64 65 64 20 75 6e | 74 69 6c 20 74 68 65 20 |ended un|til the |
|00002c60| 65 76 65 6e 74 20 6f 63 | 63 75 72 73 2e 20 41 6e |event oc|curs. An|
|00002c70| 20 00 00 00 00 80 00 00 | 05 84 00 00 00 44 db 07 | .......|.....D..|
|00002c80| 3f 31 d7 ff 1f 60 d7 ff | 20 22 00 00 61 74 74 65 |?1...`..| "..atte|
|00002c90| 6d 70 74 20 74 6f 20 77 | 61 69 74 20 6f 6e 20 61 |mpt to w|ait on a|
|00002ca0| 20 73 65 6d 61 70 68 6f | 72 65 20 77 68 69 63 68 | semapho|re which|
|00002cb0| 20 69 73 20 61 6c 72 65 | 61 64 79 20 69 6e 20 74 | is alre|ady in t|
|00002cc0| 68 65 20 57 41 49 54 49 | 4e 47 20 73 74 61 74 65 |he WAITI|NG state|
|00002cd0| 20 63 61 6e 20 63 61 75 | 73 65 20 75 6e 70 72 65 | can cau|se unpre|
|00002ce0| 64 69 63 74 61 62 6c 65 | 20 72 65 73 75 6c 74 73 |dictable| results|
|00002cf0| 20 61 6e 64 20 00 00 00 | 00 84 00 00 25 5c 00 00 | and ...|....%\..|
|00002d00| 42 ec a5 04 ff f8 d6 ff | df 27 d7 ff 20 22 00 00 |B.......|.'.. "..|
|00002d10| 73 68 6f 75 6c 64 20 6e | 6f 74 20 62 65 20 61 74 |should n|ot be at|
|00002d20| 74 65 6d 70 74 65 64 2e | 20 49 74 20 73 68 6f 75 |tempted.| It shou|
|00002d30| 6c 64 20 62 65 20 63 6f | 6e 73 69 64 65 72 65 64 |ld be co|nsidered|
|00002d40| 20 61 20 64 65 73 69 67 | 6e 20 65 72 72 6f 72 2e | a desig|n error.|
|00002d50| 0d 00 00 00 00 5c 00 00 | 05 74 00 00 00 7c b6 06 |.....\..|.t...|..|
|00002d60| 7f a1 d6 ff 5f d0 d6 ff | 20 22 00 02 49 66 20 61 |...._...| "..If a|
|00002d70| 6e 20 61 74 74 65 6d 70 | 74 20 69 73 20 6d 61 64 |n attemp|t is mad|
|00002d80| 65 20 74 6f 20 73 69 67 | 6e 61 6c 20 61 20 73 65 |e to sig|nal a se|
|00002d90| 6d 61 70 68 6f 72 65 20 | 77 68 69 63 68 20 69 73 |maphore |which is|
|00002da0| 20 69 6e 20 61 20 50 45 | 4e 44 49 4e 47 20 73 74 | in a PE|NDING st|
|00002db0| 61 74 65 2c 20 74 68 65 | 20 73 65 6d 61 70 68 6f |ate, the| semapho|
|00002dc0| 72 65 20 69 73 20 00 00 | 00 74 00 00 05 88 00 00 |re is ..|.t......|
|00002dd0| 00 2c f0 07 3f 69 d6 ff | 1f 98 d6 ff 20 22 00 00 |.,..?i..|.... "..|
|00002de0| 70 6c 61 63 65 64 20 69 | 6e 74 6f 20 74 68 65 20 |placed i|nto the |
|00002df0| 44 4f 4e 45 20 73 74 61 | 74 65 2e 20 41 73 20 74 |DONE sta|te. As t|
|00002e00| 68 69 73 20 61 63 74 69 | 6f 6e 20 64 6f 65 73 20 |his acti|on does |
|00002e10| 6e 6f 74 20 63 6f 6e 63 | 65 72 6e 20 61 6e 79 20 |not conc|ern any |
|00002e20| 74 61 73 6b 2c 20 6e 6f | 20 66 75 72 74 68 65 72 |task, no| further|
|00002e30| 20 61 63 74 69 6f 6e 20 | 69 73 20 74 61 6b 65 6e | action |is taken|
|00002e40| 2e 20 48 6f 77 65 76 65 | 72 2c 20 69 66 20 00 00 |. Howeve|r, if ..|
|00002e50| 00 88 00 00 05 80 00 00 | 00 a0 b5 07 ff 30 d6 ff |........|.....0..|
|00002e60| df 5f d6 ff 20 22 00 00 | 61 20 73 69 67 6e 61 6c |._.. "..|a signal|
|00002e70| 20 69 73 20 73 65 6e 74 | 20 74 6f 20 61 20 73 65 | is sent| to a se|
|00002e80| 6d 61 70 68 6f 72 65 20 | 69 6e 20 74 68 65 20 57 |maphore |in the W|
|00002e90| 41 49 54 49 4e 47 20 73 | 74 61 74 65 2c 20 74 68 |AITING s|tate, th|
|00002ea0| 65 20 73 65 6d 61 70 68 | 6f 72 65 20 74 72 61 6e |e semaph|ore tran|
|00002eb0| 73 69 74 69 6f 6e 73 20 | 74 6f 20 61 20 44 4f 4e |sitions |to a DON|
|00002ec0| 45 20 73 74 61 74 65 20 | 61 6e 64 20 74 68 65 20 |E state |and the |
|00002ed0| 00 80 00 00 05 7c 00 00 | 00 18 50 07 bf f8 d5 ff |.....|..|..P.....|
|00002ee0| 9f 27 d6 ff 20 22 00 00 | 74 61 73 6b 20 77 61 69 |.'.. "..|task wai|
|00002ef0| 74 69 6e 67 20 6f 6e 20 | 74 68 65 20 65 76 65 6e |ting on |the even|
|00002f00| 74 20 69 73 20 6d 61 64 | 65 20 72 75 6e 6e 61 62 |t is mad|e runnab|
|00002f10| 6c 65 20 61 67 61 69 6e | 2e 20 54 68 65 20 73 65 |le again|. The se|
|00002f20| 6d 61 70 68 6f 72 65 20 | 69 73 20 74 68 65 6e 20 |maphore |is then |
|00002f30| 61 75 74 6f 6d 61 74 69 | 63 61 6c 6c 79 20 73 65 |automati|cally se|
|00002f40| 74 20 62 61 63 6b 20 74 | 6f 20 61 20 00 7c 00 00 |t back t|o a .|..|
|00002f50| a5 48 00 00 42 04 1b 02 | 7f c0 d5 ff 5f ef d5 ff |.H..B...|...._...|
|00002f60| 20 22 00 00 50 45 4e 44 | 49 4e 47 20 73 74 61 74 | "..PEND|ING stat|
|00002f70| 65 20 62 79 20 4d 43 58 | 31 31 2e 08 0b 4a 00 00 |e by MCX|11...J..|
|00002f80| 00 00 00 00 0d 07 00 00 | 0c 4b 00 00 0c 4b 00 00 |........|.K...K..|
|00002f90| 00 00 00 00 00 48 00 00 | a5 4c 00 00 42 b8 c9 02 |.....H..|.L..B...|
|00002fa0| ff 4f d5 ff df 7e d5 ff | c0 21 00 02 33 2e 33 20 |.O...~..|.!..3.3 |
|00002fb0| 4d 45 53 53 41 47 45 53 | 20 41 4e 44 20 4d 41 49 |MESSAGES| AND MAI|
|00002fc0| 4c 42 4f 58 45 53 08 00 | 0c 4b 00 00 00 00 00 00 |LBOXES..|.K......|
|00002fd0| 0d 07 00 00 0b 4c 00 00 | 0b 4c 00 00 00 00 00 00 |.....L..|.L......|
|00002fe0| 00 4c 00 00 05 78 00 00 | 00 f4 c5 06 1f ef d4 ff |.L...x..|........|
|00002ff0| ff 1d d5 ff 20 22 00 02 | 4d 65 73 73 61 67 65 73 |.... "..|Messages|
|00003000| 20 61 72 65 20 6f 6e 65 | 20 6f 66 20 74 68 65 20 | are one| of the |
|00003010| 6d 65 61 6e 73 20 62 79 | 20 77 68 69 63 68 20 64 |means by| which d|
|00003020| 61 74 61 20 69 73 20 74 | 72 61 6e 73 6d 69 74 74 |ata is t|ransmitt|
|00003030| 65 64 20 66 72 6f 6d 20 | 61 20 73 65 6e 64 65 72 |ed from |a sender|
|00003040| 20 74 6f 20 61 20 72 65 | 63 65 69 76 65 72 20 74 | to a re|ceiver t|
|00003050| 61 73 6b 2e 20 00 00 00 | 00 78 00 00 05 7c 00 00 |ask. ...|.x...|..|
|00003060| 00 a8 86 07 df b6 d4 ff | bf e5 d4 ff 20 22 00 00 |........|.... "..|
|00003070| 45 76 65 72 79 20 74 61 | 73 6b 20 72 75 6e 6e 69 |Every ta|sk runni|
|00003080| 6e 67 20 75 6e 64 65 72 | 20 4d 43 58 31 31 20 69 |ng under| MCX11 i|
|00003090| 73 20 63 61 70 61 62 6c | 65 20 6f 66 20 62 65 69 |s capabl|e of bei|
|000030a0| 6e 67 20 62 6f 74 68 20 | 61 20 6d 65 73 73 61 67 |ng both |a messag|
|000030b0| 65 20 73 65 6e 64 65 72 | 20 61 6e 64 20 72 65 63 |e sender| and rec|
|000030c0| 65 69 76 65 72 2e 20 45 | 61 63 68 20 74 61 73 6b |eiver. E|ach task|
|000030d0| 20 69 73 20 00 7c 00 00 | 05 88 00 00 00 bc f0 07 | is .|..|........|
|000030e0| 9f 7e d4 ff 7f ad d4 ff | 20 22 00 00 61 73 73 69 |.~......| "..assi|
|000030f0| 67 6e 65 64 20 61 20 22 | 6d 61 69 6c 62 6f 78 22 |gned a "|mailbox"|
|00003100| 20 69 6e 74 6f 20 77 68 | 69 63 68 20 61 72 65 20 | into wh|ich are |
|00003110| 70 6c 61 63 65 64 20 61 | 6c 6c 20 6d 65 73 73 61 |placed a|ll messa|
|00003120| 67 65 73 20 73 65 6e 74 | 20 74 6f 20 69 74 2e 20 |ges sent| to it. |
|00003130| 57 68 65 6e 20 61 20 73 | 65 6e 64 65 72 20 74 61 |When a s|ender ta|
|00003140| 73 6b 20 73 65 6e 64 73 | 20 61 20 6d 65 73 73 61 |sk sends| a messa|
|00003150| 67 65 2c 20 69 74 20 69 | 73 20 00 00 00 88 00 00 |ge, it i|s ......|
|00003160| 05 84 00 00 00 a0 97 07 | 5f 46 d4 ff 3f 75 d4 ff |........|_F..?u..|
|00003170| 20 22 00 00 70 75 74 20 | 69 6e 74 6f 20 74 68 65 | "..put |into the|
|00003180| 20 6d 61 69 6c 62 6f 78 | 20 6f 66 20 74 68 65 20 | mailbox| of the |
|00003190| 72 65 63 65 69 76 65 72 | 20 74 61 73 6b 2e 20 49 |receiver| task. I|
|000031a0| 66 20 74 77 6f 20 6f 72 | 20 6d 6f 72 65 20 74 61 |f two or| more ta|
|000031b0| 73 6b 73 20 61 72 65 20 | 73 65 6e 64 69 6e 67 20 |sks are |sending |
|000031c0| 6d 65 73 73 61 67 65 73 | 20 74 6f 20 61 20 73 69 |messages| to a si|
|000031d0| 6e 67 6c 65 20 72 65 63 | 65 69 76 65 72 2c 20 00 |ngle rec|eiver, .|
|000031e0| 00 84 00 00 25 80 00 00 | 42 04 13 07 1f 0e d4 ff |....%...|B.......|
|000031f0| ff 3c d4 ff 20 22 00 00 | 74 68 65 69 72 20 6d 65 |.<.. "..|their me|
|00003200| 73 73 61 67 65 73 20 61 | 72 65 20 70 75 74 20 69 |ssages a|re put i|
|00003210| 6e 74 6f 20 74 68 65 20 | 6d 61 69 6c 62 6f 78 20 |nto the |mailbox |
|00003220| 69 6e 20 73 74 72 69 63 | 74 20 73 65 71 75 65 6e |in stric|t sequen|
|00003230| 63 65 20 6f 66 20 74 68 | 65 69 72 20 70 72 69 6f |ce of th|eir prio|
|00003240| 72 69 74 69 65 73 2c 20 | 68 69 67 68 65 73 74 20 |rities, |highest |
|00003250| 70 72 69 6f 72 69 74 79 | 20 66 69 72 73 74 2e 0d |priority| first..|
|00003260| 00 80 00 00 05 7c 00 00 | 00 ac 0d 07 9f b6 d3 ff |.....|..|........|
|00003270| 7f e5 d3 ff 20 22 00 02 | 54 68 65 20 63 6f 6e 74 |.... "..|The cont|
|00003280| 65 6e 74 20 6f 66 20 74 | 68 65 20 6d 65 73 73 61 |ent of t|he messa|
|00003290| 67 65 20 69 73 20 6e 6f | 74 20 61 63 74 75 61 6c |ge is no|t actual|
|000032a0| 6c 79 20 6d 6f 76 65 64 | 20 66 72 6f 6d 20 74 68 |ly moved| from th|
|000032b0| 65 20 73 65 6e 64 65 72 | 20 74 6f 20 74 68 65 20 |e sender| to the |
|000032c0| 72 65 63 65 69 76 65 72 | 20 77 68 65 6e 20 69 74 |receiver| when it|
|000032d0| 20 69 73 20 73 65 6e 74 | 2e 20 00 00 00 7c 00 00 | is sent|. ...|..|
|000032e0| 05 84 00 00 00 dc 64 07 | 5f 7e d3 ff 3f ad d3 ff |......d.|_~..?...|
|000032f0| 20 22 00 00 49 6e 73 74 | 65 61 64 2c 20 6d 65 73 | "..Inst|ead, mes|
|00003300| 73 61 67 65 73 20 61 72 | 65 20 6c 69 6e 6b 65 64 |sages ar|e linked|
|00003310| 20 69 6e 74 6f 20 61 20 | 74 68 72 65 61 64 65 64 | into a |threaded|
|00003320| 20 6c 69 73 74 20 61 63 | 63 6f 72 64 69 6e 67 20 | list ac|cording |
|00003330| 74 6f 20 74 68 65 20 70 | 72 69 6f 72 69 74 69 65 |to the p|rioritie|
|00003340| 73 20 6f 66 20 74 68 65 | 69 72 20 73 65 6e 64 65 |s of the|ir sende|
|00003350| 72 73 2e 20 57 68 65 6e | 20 74 68 65 20 00 00 00 |rs. When| the ...|
|00003360| 00 84 00 00 05 88 00 00 | 00 c0 dd 07 1f 46 d3 ff |........|.....F..|
|00003370| ff 74 d3 ff 20 22 00 00 | 72 65 63 65 69 76 65 72 |.t.. "..|receiver|
|00003380| 20 72 65 71 75 65 73 74 | 73 20 72 65 63 65 69 70 | request|s receip|
|00003390| 74 20 6f 66 20 74 68 65 | 20 6e 65 78 74 20 6d 65 |t of the| next me|
|000033a0| 73 73 61 67 65 2c 20 69 | 74 73 20 61 64 64 72 65 |ssage, i|ts addre|
|000033b0| 73 73 20 69 73 20 72 65 | 74 75 72 6e 65 64 2e 20 |ss is re|turned. |
|000033c0| 54 68 69 73 20 74 65 63 | 68 6e 69 71 75 65 20 67 |This tec|hnique g|
|000033d0| 75 61 72 61 6e 74 65 65 | 73 20 74 68 65 20 72 65 |uarantee|s the re|
|000033e0| 63 65 69 76 65 72 20 00 | 00 88 00 00 05 88 00 00 |ceiver .|........|
|000033f0| 00 78 ce 07 df 0d d3 ff | bf 3c d3 ff 20 22 00 00 |.x......|.<.. "..|
|00003400| 74 68 61 74 20 74 68 65 | 20 68 69 67 68 65 73 74 |that the| highest|
|00003410| 20 70 72 69 6f 72 69 74 | 79 20 6d 65 73 73 61 67 | priorit|y messag|
|00003420| 65 20 69 73 20 72 65 63 | 65 69 76 65 64 20 66 69 |e is rec|eived fi|
|00003430| 72 73 74 2e 20 49 74 20 | 69 73 20 70 6f 73 73 69 |rst. It |is possi|
|00003440| 62 6c 65 2c 20 68 6f 77 | 65 76 65 72 2c 20 74 6f |ble, how|ever, to|
|00003450| 20 74 65 6d 70 6f 72 61 | 72 69 6c 79 20 73 75 73 | tempora|rily sus|
|00003460| 70 65 6e 64 20 74 68 69 | 73 20 6f 72 64 65 72 20 |pend thi|s order |
|00003470| 00 88 00 00 05 84 00 00 | 00 a0 ac 07 9f d5 d2 ff |........|........|
|00003480| 7f 04 d3 ff 20 22 00 00 | 62 79 20 72 65 71 75 65 |.... "..|by reque|
|00003490| 73 74 69 6e 67 20 6f 6e | 6c 79 20 74 68 6f 73 65 |sting on|ly those|
|000034a0| 20 6d 65 73 73 61 67 65 | 73 20 66 72 6f 6d 20 61 | message|s from a|
|000034b0| 20 70 61 72 74 69 63 75 | 6c 61 72 20 73 65 6e 64 | particu|lar send|
|000034c0| 65 72 2e 20 54 68 69 73 | 20 69 73 20 75 73 65 66 |er. This| is usef|
|000034d0| 75 6c 20 77 68 65 6e 20 | 69 74 20 69 73 20 64 65 |ul when |it is de|
|000034e0| 73 69 72 61 62 6c 65 20 | 6e 6f 74 20 74 6f 20 6d |sirable |not to m|
|000034f0| 69 78 20 00 00 84 00 00 | 25 50 00 00 42 00 f6 03 |ix .....|%P..B...|
|00003500| 5f 9d d2 ff 3f cc d2 ff | 20 22 00 00 6d 65 73 73 |_...?...| "..mess|
|00003510| 61 67 65 73 20 6f 6e 20 | 61 20 73 68 61 72 65 64 |ages on |a shared|
|00003520| 20 72 65 73 6f 75 72 63 | 65 2c 20 66 6f 72 20 65 | resourc|e, for e|
|00003530| 78 61 6d 70 6c 65 2c 20 | 61 20 70 72 69 6e 74 65 |xample, |a printe|
|00003540| 72 2e 0d 00 00 50 00 00 | 05 7c 00 00 00 78 e1 06 |r....P..|.|...x..|
|00003550| df 45 d2 ff bf 74 d2 ff | 20 22 00 02 54 68 65 20 |.E...t..| "..The |
|00003560| 6d 61 69 6c 62 6f 78 20 | 6f 66 20 61 20 74 61 73 |mailbox |of a tas|
|00003570| 6b 20 69 73 20 61 20 74 | 68 72 65 61 64 65 64 20 |k is a t|hreaded |
|00003580| 28 6c 69 6e 6b 65 64 29 | 20 6c 69 73 74 20 6f 66 |(linked)| list of|
|00003590| 20 61 6c 6c 20 6d 65 73 | 73 61 67 65 73 20 73 65 | all mes|sages se|
|000035a0| 6e 74 20 74 6f 20 62 75 | 74 20 6e 6f 74 20 79 65 |nt to bu|t not ye|
|000035b0| 74 20 72 65 63 65 69 76 | 65 64 20 62 79 20 00 00 |t receiv|ed by ..|
|000035c0| 00 7c 00 00 05 88 00 00 | 00 90 b0 07 9f 0d d2 ff |.|......|........|
|000035d0| 7f 3c d2 ff 20 22 00 00 | 74 68 61 74 20 74 61 73 |.<.. "..|that tas|
|000035e0| 6b 2e 20 54 68 65 20 6d | 61 69 6c 62 6f 78 20 63 |k. The m|ailbox c|
|000035f0| 6f 6e 73 69 73 74 73 20 | 6f 66 20 61 20 70 6f 69 |onsists |of a poi|
|00003600| 6e 74 65 72 20 28 6c 69 | 6e 6b 29 20 74 6f 20 74 |nter (li|nk) to t|
|00003610| 68 65 20 6d 65 73 73 61 | 67 65 20 73 65 6e 74 20 |he messa|ge sent |
|00003620| 62 79 20 74 68 65 20 68 | 69 67 68 65 73 74 20 70 |by the h|ighest p|
|00003630| 72 69 6f 72 69 74 79 20 | 73 65 6e 64 65 72 2e 20 |riority |sender. |
|00003640| 54 68 61 74 20 00 00 00 | 00 88 00 00 05 88 00 00 |That ...|........|
|00003650| 00 c8 9f 07 5f d5 d1 ff | 3f 04 d2 ff 20 22 00 00 |...._...|?... "..|
|00003660| 6d 65 73 73 61 67 65 20 | 69 73 20 6c 69 6e 6b 65 |message |is linke|
|00003670| 64 20 74 6f 20 74 68 65 | 20 6e 65 78 74 20 68 69 |d to the| next hi|
|00003680| 67 68 65 73 74 20 70 72 | 69 6f 72 69 74 79 20 6d |ghest pr|iority m|
|00003690| 65 73 73 61 67 65 20 61 | 6e 64 20 69 74 20 69 6e |essage a|nd it in|
|000036a0| 20 74 75 72 6e 20 69 73 | 20 6c 69 6e 6b 65 64 20 | turn is| linked |
|000036b0| 74 6f 20 74 68 65 20 74 | 68 69 72 64 20 68 69 67 |to the t|hird hig|
|000036c0| 68 65 73 74 20 70 72 69 | 6f 72 69 74 79 20 00 00 |hest pri|ority ..|
|000036d0| 00 88 00 00 05 84 00 00 | 00 ec ab 07 1f 9d d1 ff |........|........|
|000036e0| ff cb d1 ff 20 22 00 00 | 6d 65 73 73 61 67 65 2c |.... "..|message,|
|000036f0| 20 61 6e 64 20 73 6f 20 | 6f 6e 20 75 6e 74 69 6c | and so |on until|
|00003700| 20 74 68 65 20 65 6e 64 | 20 6f 66 20 74 68 65 20 | the end| of the |
|00003710| 74 68 72 65 61 64 2e 20 | 54 68 65 20 6c 61 73 74 |thread. |The last|
|00003720| 20 6d 65 73 73 61 67 65 | 20 69 6e 20 61 20 74 61 | message| in a ta|
|00003730| 73 6b 27 73 20 6d 61 69 | 6c 62 6f 78 20 77 69 6c |sk's mai|lbox wil|
|00003740| 6c 20 63 6f 6e 74 61 69 | 6e 20 61 20 4e 55 4c 4c |l contai|n a NULL|
|00003750| 20 00 00 00 00 84 00 00 | 25 30 00 00 42 48 74 01 | .......|%0..BHt.|
|00003760| df 64 d1 ff bf 93 d1 ff | 20 22 00 00 28 76 61 6c |.d......| "..(val|
|00003770| 75 65 20 6f 66 20 7a 65 | 72 6f 29 20 6c 69 6e 6b |ue of ze|ro) link|
|00003780| 2e 0d 00 00 00 30 00 00 | 05 74 00 00 00 50 c7 06 |.....0..|.t...P..|
|00003790| 5f 0d d1 ff 3f 3c d1 ff | 20 22 00 02 4d 65 73 73 |_...?<..| "..Mess|
|000037a0| 61 67 65 73 20 6d 61 79 | 20 62 65 20 73 65 6e 74 |ages may| be sent|
|000037b0| 20 77 69 74 68 20 6f 72 | 20 77 69 74 68 6f 75 74 | with or| without|
|000037c0| 20 77 61 69 74 69 6e 67 | 20 66 6f 72 20 61 20 72 | waiting| for a r|
|000037d0| 65 73 70 6f 6e 73 65 20 | 66 72 6f 6d 20 74 68 65 |esponse |from the|
|000037e0| 20 72 65 63 65 69 76 65 | 72 2e 20 57 68 65 6e 20 | receive|r. When |
|000037f0| 61 20 74 61 73 6b 20 00 | 00 74 00 00 05 84 00 00 |a task .|.t......|
|00003800| 00 e8 d0 07 1f d5 d0 ff | ff 03 d1 ff 20 22 00 00 |........|.... "..|
|00003810| 77 61 6e 74 73 20 74 6f | 20 73 65 6e 64 20 61 20 |wants to| send a |
|00003820| 6d 65 73 73 61 67 65 20 | 61 6e 64 20 77 61 69 74 |message |and wait|
|00003830| 20 75 6e 74 69 6c 20 74 | 68 65 20 72 65 63 65 69 | until t|he recei|
|00003840| 76 65 72 20 68 61 73 20 | 70 72 6f 63 65 73 73 65 |ver has |processe|
|00003850| 64 20 74 68 65 20 6d 65 | 73 73 61 67 65 2c 20 69 |d the me|ssage, i|
|00003860| 74 20 77 69 6c 6c 20 69 | 6e 63 6c 75 64 65 20 61 |t will i|nclude a|
|00003870| 20 73 65 6d 61 70 68 6f | 72 65 20 00 00 84 00 00 | semapho|re .....|
|00003880| 05 80 00 00 00 8c c6 07 | df 9c d0 ff bf cb d0 ff |........|........|
|00003890| 20 22 00 00 6e 75 6d 62 | 65 72 20 61 73 20 6f 6e | "..numb|er as on|
|000038a0| 65 20 6f 66 20 74 68 65 | 20 61 72 67 75 6d 65 6e |e of the| argumen|
|000038b0| 74 73 20 69 6e 20 74 68 | 65 20 4d 43 58 31 31 20 |ts in th|e MCX11 |
|000038c0| 73 65 6e 64 20 6d 65 73 | 73 61 67 65 20 64 69 72 |send mes|sage dir|
|000038d0| 65 63 74 69 76 65 2e 20 | 54 68 61 74 20 73 65 6d |ective. |That sem|
|000038e0| 61 70 68 6f 72 65 20 69 | 73 20 74 68 65 6e 20 61 |aphore i|s then a|
|000038f0| 73 73 6f 63 69 61 74 65 | 64 20 00 00 00 80 00 00 |ssociate|d ......|
|00003900| 05 84 00 00 00 6c ce 07 | 9f 64 d0 ff 7f 93 d0 ff |.....l..|.d......|
|00003910| 20 22 00 00 77 69 74 68 | 20 74 68 65 20 65 76 65 | "..with| the eve|
|00003920| 6e 74 20 6f 66 20 63 6f | 6d 70 6c 65 74 65 64 20 |nt of co|mpleted |
|00003930| 70 72 6f 63 65 73 73 69 | 6e 67 20 6f 66 20 74 68 |processi|ng of th|
|00003940| 65 20 6d 65 73 73 61 67 | 65 2e 20 4f 6e 63 65 20 |e messag|e. Once |
|00003950| 74 68 65 20 6d 65 73 73 | 61 67 65 20 69 73 20 6c |the mess|age is l|
|00003960| 69 6e 6b 65 64 20 69 6e | 74 6f 20 74 68 65 20 6d |inked in|to the m|
|00003970| 61 69 6c 62 6f 78 20 6f | 66 20 74 68 65 20 00 00 |ailbox o|f the ..|
|00003980| 00 84 00 00 25 78 00 00 | 42 50 c7 06 5f 2c d0 ff |....%x..|BP.._,..|
|00003990| 3f 5b d0 ff 20 22 00 00 | 72 65 63 65 69 76 65 72 |?[.. "..|receiver|
|000039a0| 20 74 61 73 6b 2c 20 74 | 68 65 20 73 65 6e 64 65 | task, t|he sende|
|000039b0| 72 20 69 73 20 70 75 74 | 20 69 6e 74 6f 20 61 20 |r is put| into a |
|000039c0| 57 41 49 54 20 73 74 61 | 74 65 20 6f 6e 20 74 68 |WAIT sta|te on th|
|000039d0| 65 20 6d 65 73 73 61 67 | 65 20 70 72 6f 63 65 73 |e messag|e proces|
|000039e0| 73 69 6e 67 20 63 6f 6d | 70 6c 65 74 65 20 65 76 |sing com|plete ev|
|000039f0| 65 6e 74 2e 0d 00 00 00 | 00 78 00 00 05 78 00 00 |ent.....|.x...x..|
|00003a00| 00 94 0d 07 df d4 cf ff | bf 03 d0 ff 20 22 00 02 |........|.... "..|
|00003a10| 54 68 65 20 72 65 63 65 | 69 76 65 72 20 72 65 6d |The rece|iver rem|
|00003a20| 6f 76 65 73 20 74 68 65 | 20 6d 65 73 73 61 67 65 |oves the| message|
|00003a30| 20 66 72 6f 6d 20 74 68 | 65 20 6d 61 69 6c 62 6f | from th|e mailbo|
|00003a40| 78 20 61 6e 64 20 70 72 | 6f 63 65 73 73 65 73 20 |x and pr|ocesses |
|00003a50| 69 74 20 61 63 63 6f 72 | 64 69 6e 67 20 74 6f 20 |it accor|ding to |
|00003a60| 74 68 65 20 63 6f 6e 74 | 65 6e 74 20 6f 66 20 00 |the cont|ent of .|
|00003a70| 00 78 00 00 05 80 00 00 | 00 0c 95 07 9f 9c cf ff |.x......|........|
|00003a80| 7f cb cf ff 20 22 00 00 | 74 68 65 20 6d 65 73 73 |.... "..|the mess|
|00003a90| 61 67 65 20 62 6f 64 79 | 2e 20 57 68 65 6e 20 74 |age body|. When t|
|00003aa0| 68 65 20 72 65 63 65 69 | 76 65 72 20 6e 6f 20 6c |he recei|ver no l|
|00003ab0| 6f 6e 67 65 72 20 6e 65 | 65 64 73 20 74 68 65 20 |onger ne|eds the |
|00003ac0| 64 61 74 61 20 69 6e 20 | 74 68 65 20 62 6f 64 79 |data in |the body|
|00003ad0| 20 6f 66 20 74 68 65 20 | 6d 65 73 73 61 67 65 2c | of the |message,|
|00003ae0| 20 69 74 20 73 69 67 6e | 61 6c 73 20 74 68 65 20 | it sign|als the |
|00003af0| 00 80 00 00 05 80 00 00 | 00 48 a7 07 5f 64 cf ff |........|.H.._d..|
|00003b00| 3f 93 cf ff 20 22 00 00 | 73 65 6d 61 70 68 6f 72 |?... "..|semaphor|
|00003b10| 65 20 61 73 73 6f 63 69 | 61 74 65 64 20 77 69 74 |e associ|ated wit|
|00003b20| 68 20 74 68 65 20 63 6f | 6d 70 6c 65 74 69 6f 6e |h the co|mpletion|
|00003b30| 20 6f 66 20 6d 65 73 73 | 61 67 65 20 70 72 6f 63 | of mess|age proc|
|00003b40| 65 73 73 69 6e 67 20 6d | 61 6b 69 6e 67 20 74 68 |essing m|aking th|
|00003b50| 65 20 73 65 6e 64 65 72 | 20 74 61 73 6b 20 72 75 |e sender| task ru|
|00003b60| 6e 6e 61 62 6c 65 20 61 | 67 61 69 6e 20 00 00 00 |nnable a|gain ...|
|00003b70| 00 80 00 00 25 50 00 00 | 42 d4 a6 03 1f 2c cf ff |....%P..|B....,..|
|00003b80| ff 5a cf ff 20 22 00 00 | 61 6e 64 2c 20 74 68 65 |.Z.. "..|and, the|
|00003b90| 72 65 62 79 2c 20 61 6c | 6c 6f 77 69 6e 67 20 69 |reby, al|lowing i|
|00003ba0| 74 20 74 6f 20 63 6f 6e | 74 69 6e 75 65 20 69 74 |t to con|tinue it|
|00003bb0| 73 20 6f 70 65 72 61 74 | 69 6f 6e 2e 0d 00 00 00 |s operat|ion.....|
|00003bc0| 00 50 00 00 05 78 00 00 | 00 60 08 07 9f d4 ce ff |.P...x..|.`......|
|00003bd0| 7f 03 cf ff 20 22 00 02 | 49 74 20 73 68 6f 75 6c |.... "..|It shoul|
|00003be0| 64 20 62 65 20 72 65 6d | 65 6d 62 65 72 65 64 20 |d be rem|embered |
|00003bf0| 74 68 61 74 20 74 68 65 | 20 62 6f 64 79 20 6f 66 |that the| body of|
|00003c00| 20 74 68 65 20 6d 65 73 | 73 61 67 65 20 63 61 6e | the mes|sage can|
|00003c10| 20 61 6c 73 6f 20 62 65 | 20 75 73 65 64 20 62 79 | also be| used by|
|00003c20| 20 74 68 65 20 72 65 63 | 65 69 76 65 72 20 74 6f | the rec|eiver to|
|00003c30| 20 73 65 6e 64 20 61 20 | 00 78 00 00 05 88 00 00 | send a |.x......|
|00003c40| 03 98 cf 07 5f 9c ce ff | 3f cb ce ff 20 22 00 00 |...._...|?... "..|
|00003c50| 72 65 73 70 6f 6e 73 65 | 20 62 61 63 6b 20 74 6f |response| back to|
|00003c60| 20 74 68 65 20 73 65 6e | 64 65 72 2e 20 54 68 69 | the sen|der. Thi|
|00003c70| 73 20 69 73 20 61 20 76 | 65 72 79 20 65 66 66 69 |s is a v|ery effi|
|00003c80| 63 69 65 6e 74 20 77 61 | 79 20 6f 66 20 70 61 73 |cient wa|y of pas|
|00003c90| 73 69 6e 67 20 64 61 74 | 61 20 62 69 2d 64 69 72 |sing dat|a bi-dir|
|00003ca0| 65 63 74 69 6f 6e 61 6c | 6c 79 20 62 65 74 77 65 |ectional|ly betwe|
|00003cb0| 65 6e 20 74 77 6f 20 74 | 61 73 6b 73 20 00 00 00 |en two t|asks ...|
|00003cc0| 00 88 00 00 25 30 00 00 | 42 44 78 01 1f 64 ce ff |....%0..|BDx..d..|
|00003cd0| ff 92 ce ff 20 22 00 00 | 77 69 74 68 20 6c 69 74 |.... "..|with lit|
|00003ce0| 74 6c 65 20 6f 76 65 72 | 68 65 61 64 2e 0d 00 00 |tle over|head....|
|00003cf0| 00 30 00 00 05 7c 00 00 | 00 50 e5 06 9f 0c ce ff |.0...|..|.P......|
|00003d00| 7f 3b ce ff 20 22 00 02 | 49 66 20 74 68 65 20 73 |.;.. "..|If the s|
|00003d10| 65 6e 64 69 6e 67 20 74 | 61 73 6b 20 64 6f 65 73 |ending t|ask does|
|00003d20| 20 6e 6f 74 20 77 69 73 | 68 20 74 6f 20 77 61 69 | not wis|h to wai|
|00003d30| 74 20 6f 6e 20 74 68 65 | 20 61 63 74 69 6f 6e 20 |t on the| action |
|00003d40| 6f 66 20 74 68 65 20 72 | 65 63 65 69 76 65 72 20 |of the r|eceiver |
|00003d50| 6f 72 20 69 66 20 74 68 | 65 72 65 20 69 73 20 6e |or if th|ere is n|
|00003d60| 6f 20 72 65 73 70 6f 6e | 73 65 20 00 00 7c 00 00 |o respon|se ..|..|
|00003d70| 05 84 00 00 00 98 c6 07 | 5f d4 cd ff 3f 03 ce ff |........|_...?...|
|00003d80| 20 22 00 00 72 65 71 75 | 69 72 65 64 2c 20 61 20 | "..requ|ired, a |
|00003d90| 6d 65 73 73 61 67 65 20 | 63 61 6e 20 62 65 20 73 |message |can be s|
|00003da0| 65 6e 74 20 77 69 74 68 | 6f 75 74 20 77 61 69 74 |ent with|out wait|
|00003db0| 69 6e 67 20 66 6f 72 20 | 63 6f 6d 70 6c 65 74 69 |ing for |completi|
|00003dc0| 6f 6e 20 6f 66 20 70 72 | 6f 63 65 73 73 69 6e 67 |on of pr|ocessing|
|00003dd0| 2e 20 54 68 69 73 20 6d | 61 6b 65 73 20 69 74 20 |. This m|akes it |
|00003de0| 70 6f 73 73 69 62 6c 65 | 20 66 6f 72 20 61 20 00 |possible| for a .|
|00003df0| 00 84 00 00 05 84 00 00 | 00 00 b3 07 1f 9c cd ff |........|........|
|00003e00| ff ca cd ff 20 22 00 00 | 73 65 6e 64 65 72 20 74 |.... "..|sender t|
|00003e10| 6f 20 73 65 6e 64 20 6d | 75 6c 74 69 70 6c 65 20 |o send m|ultiple |
|00003e20| 6d 65 73 73 61 67 65 73 | 20 74 6f 20 61 20 72 65 |messages| to a re|
|00003e30| 63 65 69 76 65 72 2c 20 | 6f 72 2c 20 73 69 6d 70 |ceiver, |or, simp|
|00003e40| 6c 79 20 64 6f 20 73 6f | 6d 65 74 68 69 6e 67 20 |ly do so|mething |
|00003e50| 65 6c 73 65 20 77 68 69 | 6c 65 20 74 68 65 20 72 |else whi|le the r|
|00003e60| 65 63 65 69 76 65 72 20 | 70 72 6f 63 65 73 73 65 |eceiver |processe|
|00003e70| 73 20 00 00 00 84 00 00 | 05 88 00 00 00 20 de 07 |s ......|..... ..|
|00003e80| df 63 cd ff bf 92 cd ff | 20 22 00 00 74 68 65 20 |.c......| "..the |
|00003e90| 6d 65 73 73 61 67 65 2e | 20 48 6f 77 65 76 65 72 |message.| However|
|00003ea0| 2c 20 65 76 65 6e 20 74 | 68 6f 75 67 68 20 61 20 |, even t|hough a |
|00003eb0| 6d 65 73 73 61 67 65 20 | 69 73 20 73 65 6e 74 20 |message |is sent |
|00003ec0| 77 69 74 68 6f 75 74 20 | 77 61 69 74 69 6e 67 20 |without |waiting |
|00003ed0| 66 6f 72 20 74 68 65 20 | 72 65 73 70 6f 6e 73 65 |for the |response|
|00003ee0| 2c 20 69 74 20 69 73 20 | 73 74 69 6c 6c 20 70 6f |, it is |still po|
|00003ef0| 73 73 69 62 6c 65 20 61 | 74 20 00 00 00 88 00 00 |ssible a|t ......|
|00003f00| 01 10 00 00 42 ec 56 05 | 00 00 00 00 00 10 00 00 |....B.V.|........|
|00003f10| 02 18 00 00 20 06 00 00 | 00 00 00 00 0b 4c 00 00 |.... ...|.....L..|
|00003f20| 00 00 00 00 00 18 00 00 | 25 64 00 00 42 ec 56 05 |........|%d..B.V.|
|00003f30| ce 31 cb ff ae 60 cb ff | 20 22 00 00 61 20 6c 61 |.1...`..| "..a la|
|00003f40| 74 65 72 20 74 69 6d 65 | 20 66 6f 72 20 74 68 65 |ter time| for the|
|00003f50| 20 73 65 6e 64 65 72 20 | 74 6f 20 77 61 69 74 20 | sender |to wait |
|00003f60| 66 6f 72 20 74 68 65 20 | 63 6f 6d 70 6c 65 74 69 |for the |completi|
|00003f70| 6f 6e 20 6f 66 20 70 72 | 6f 63 65 73 73 69 6e 67 |on of pr|ocessing|
|00003f80| 20 65 76 65 6e 74 2e 0d | 00 64 00 00 05 7c 00 00 | event..|.d...|..|
|00003f90| 00 58 fb 06 4e da ca ff | 2e 09 cb ff 20 22 00 02 |.X..N...|.... "..|
|00003fa0| 49 66 20 74 68 65 20 72 | 65 63 65 69 76 65 72 20 |If the r|eceiver |
|00003fb0| 68 61 73 20 63 6f 6d 70 | 6c 65 74 65 64 20 74 68 |has comp|leted th|
|00003fc0| 65 20 75 73 65 20 6f 66 | 20 74 68 65 20 6d 65 73 |e use of| the mes|
|00003fd0| 73 61 67 65 20 62 79 20 | 74 68 65 20 74 69 6d 65 |sage by |the time|
|00003fe0| 20 74 68 65 20 73 65 6e | 64 65 72 20 77 61 69 74 | the sen|der wait|
|00003ff0| 73 20 66 6f 72 20 74 68 | 61 74 20 65 76 65 6e 74 |s for th|at event|
|00004000| 2c 20 00 00 00 7c 00 00 | 05 84 00 00 00 98 c6 07 |, ...|..|........|
|00004010| 0e a2 ca ff ee d0 ca ff | 20 22 00 00 74 68 65 20 |........| "..the |
|00004020| 73 65 6e 64 69 6e 67 20 | 74 61 73 6b 20 63 6f 6e |sending |task con|
|00004030| 74 69 6e 75 65 73 20 6f | 70 65 72 61 74 69 6f 6e |tinues o|peration|
|00004040| 20 77 69 74 68 6f 75 74 | 20 69 6e 74 65 72 72 75 | without| interru|
|00004050| 70 74 69 6f 6e 2e 20 49 | 66 20 74 68 65 20 72 65 |ption. I|f the re|
|00004060| 63 65 69 76 65 72 20 68 | 61 73 20 6e 6f 74 20 79 |ceiver h|as not y|
|00004070| 65 74 20 63 6f 6d 70 6c | 65 74 65 64 20 70 72 6f |et compl|eted pro|
|00004080| 63 65 73 73 69 6e 67 20 | 00 84 00 00 05 84 00 00 |cessing |........|
|00004090| 00 28 a9 07 ce 69 ca ff | ae 98 ca ff 20 22 00 00 |.(...i..|.... "..|
|000040a0| 6f 66 20 74 68 65 20 6d | 65 73 73 61 67 65 2c 20 |of the m|essage, |
|000040b0| 74 68 65 20 73 65 6e 64 | 65 72 20 6d 75 73 74 20 |the send|er must |
|000040c0| 77 61 69 74 20 66 6f 72 | 20 74 68 65 20 65 76 65 |wait for| the eve|
|000040d0| 6e 74 20 74 6f 20 6f 63 | 63 75 72 2e 20 57 68 65 |nt to oc|cur. Whe|
|000040e0| 6e 20 69 74 20 64 6f 65 | 73 20 6f 63 63 75 72 2c |n it doe|s occur,|
|000040f0| 20 74 68 65 20 73 65 6e | 64 65 72 27 73 20 6f 70 | the sen|der's op|
|00004100| 65 72 61 74 69 6f 6e 20 | 69 73 20 00 00 84 00 00 |eration |is .....|
|00004110| 25 24 00 00 42 88 aa 00 | 8e 31 ca ff 6e 60 ca ff |%$..B...|.1..n`..|
|00004120| 20 22 00 00 72 65 73 75 | 6d 65 64 2e 0d 00 00 00 | "..resu|med.....|
|00004130| 00 24 00 00 05 74 00 00 | 00 08 8e 06 0e da c9 ff |.$...t..|........|
|00004140| ee 08 ca ff 20 22 00 02 | 41 20 6d 65 73 73 61 67 |.... "..|A messag|
|00004150| 65 20 69 73 20 61 20 66 | 6f 75 72 2d 65 6c 65 6d |e is a f|our-elem|
|00004160| 65 6e 74 20 73 74 72 75 | 63 74 75 72 65 20 73 65 |ent stru|cture se|
|00004170| 74 20 75 70 20 69 6e 20 | 61 20 63 6f 6e 74 69 67 |t up in |a contig|
|00004180| 75 6f 75 73 20 61 72 65 | 61 20 6f 66 20 52 41 4d |uous are|a of RAM|
|00004190| 2e 20 54 68 65 20 66 69 | 72 73 74 20 74 68 72 65 |. The fi|rst thre|
|000041a0| 65 20 00 00 00 74 00 00 | 05 80 00 00 00 bc 8a 07 |e ...t..|........|
|000041b0| ce a1 c9 ff ae d0 c9 ff | 20 22 00 00 65 6c 65 6d |........| "..elem|
|000041c0| 65 6e 74 73 20 6f 66 20 | 74 68 65 20 6d 65 73 73 |ents of |the mess|
|000041d0| 61 67 65 20 61 72 65 20 | 75 73 65 64 20 62 79 20 |age are |used by |
|000041e0| 4d 43 58 31 31 20 74 6f | 20 63 6f 6e 74 72 6f 6c |MCX11 to| control|
|000041f0| 20 74 68 65 20 74 72 61 | 6e 73 6d 69 73 73 69 6f | the tra|nsmissio|
|00004200| 6e 2e 20 54 68 65 20 75 | 73 65 72 20 6e 65 65 64 |n. The u|ser need|
|00004210| 20 6f 6e 6c 79 20 73 65 | 74 20 75 70 20 74 68 65 | only se|t up the|
|00004220| 20 00 00 00 00 80 00 00 | 25 64 00 00 42 1c a5 05 | .......|%d..B...|
|00004230| 8e 69 c9 ff 6e 98 c9 ff | 20 22 00 00 63 6f 6e 74 |.i..n...| "..cont|
|00004240| 65 6e 74 20 6f 66 20 74 | 68 65 20 6d 65 73 73 61 |ent of t|he messa|
|00004250| 67 65 20 62 6f 64 79 2e | 20 54 68 65 20 66 6f 72 |ge body.| The for|
|00004260| 6d 61 74 20 6f 66 20 61 | 20 4d 43 58 31 31 20 6d |mat of a| MCX11 m|
|00004270| 65 73 73 61 67 65 20 69 | 73 20 61 73 20 66 6f 6c |essage i|s as fol|
|00004280| 6c 6f 77 73 3a 0d 00 00 | 00 64 00 00 25 3c 00 00 |lows:...|.d..%<..|
|00004290| 42 9c b8 02 0e 12 c9 ff | ee 40 c9 ff 20 22 00 02 |B.......|.@.. "..|
|000042a0| 2d 20 4d 61 69 6c 62 6f | 78 20 6c 69 6e 6b 20 28 |- Mailbo|x link (|
|000042b0| 73 75 70 70 6c 69 65 64 | 20 62 79 20 4d 43 58 31 |supplied| by MCX1|
|000042c0| 31 29 0d 00 00 3c 00 00 | 25 48 00 00 42 b0 7f 03 |1)...<..|%H..B...|
|000042d0| 8e ba c8 ff 6e e9 c8 ff | 20 22 00 02 2d 20 54 61 |....n...| "..- Ta|
|000042e0| 73 6b 20 6e 75 6d 62 65 | 72 20 6f 66 20 73 65 6e |sk numbe|r of sen|
|000042f0| 64 65 72 20 28 73 75 70 | 70 6c 69 65 64 20 62 79 |der (sup|plied by|
|00004300| 20 20 4d 43 58 31 31 29 | 0d 00 00 00 00 48 00 00 | MCX11)|.....H..|
|00004310| 25 40 00 00 42 a4 f5 02 | 0e 63 c8 ff ee 91 c8 ff |%@..B...|.c......|
|00004320| 20 22 00 02 2d 20 4d 65 | 73 73 61 67 65 20 73 65 | "..- Me|ssage se|
|00004330| 6d 61 70 68 6f 72 65 20 | 6e 75 6d 62 65 72 20 28 |maphore |number (|
|00004340| 6f 70 74 69 6f 6e 61 6c | 29 0d 00 00 00 40 00 00 |optional|)....@..|
|00004350| 25 3c 00 00 42 6c 91 02 | 8e 0b c8 ff 6e 3a c8 ff |%<..Bl..|....n:..|
|00004360| 20 22 00 02 2d 20 4d 65 | 73 73 61 67 65 20 62 6f | "..- Me|ssage bo|
|00004370| 64 79 20 28 73 75 70 70 | 6c 69 65 64 20 62 79 20 |dy (supp|lied by |
|00004380| 55 73 65 72 29 0d 00 00 | 00 3c 00 00 25 78 00 00 |User)...|.<..%x..|
|00004390| 42 6c d8 06 0e b4 c7 ff | ee e2 c7 ff 20 22 00 02 |Bl......|.... "..|
|000043a0| 54 68 65 20 66 69 72 73 | 74 20 65 6c 65 6d 65 6e |The firs|t elemen|
|000043b0| 74 20 69 6e 20 74 68 65 | 20 6d 65 73 73 61 67 65 |t in the| message|
|000043c0| 20 70 72 6f 76 69 64 65 | 73 20 74 68 65 20 6c 69 | provide|s the li|
|000043d0| 6e 6b 20 74 6f 20 74 68 | 65 20 6e 65 78 74 20 6d |nk to th|e next m|
|000043e0| 65 73 73 61 67 65 2c 20 | 69 66 20 61 6e 79 2c 20 |essage, |if any, |
|000043f0| 69 6e 20 74 68 65 20 6d | 61 69 6c 62 6f 78 2e 0d |in the m|ailbox..|
|00004400| 00 78 00 00 05 7c 00 00 | 00 84 ea 06 8e 5c c7 ff |.x...|..|.....\..|
|00004410| 6e 8b c7 ff 20 22 00 02 | 54 68 65 20 73 65 63 6f |n... "..|The seco|
|00004420| 6e 64 20 65 6c 65 6d 65 | 6e 74 20 69 73 20 74 68 |nd eleme|nt is th|
|00004430| 65 20 74 61 73 6b 20 6e | 75 6d 62 65 72 20 6f 66 |e task n|umber of|
|00004440| 20 74 68 65 20 73 65 6e | 64 65 72 2e 20 54 68 69 | the sen|der. Thi|
|00004450| 73 20 66 69 65 6c 64 20 | 69 73 20 69 6e 63 6c 75 |s field |is inclu|
|00004460| 64 65 64 20 73 6f 20 74 | 68 61 74 20 74 68 65 20 |ded so t|hat the |
|00004470| 72 65 63 65 69 76 65 72 | 20 00 00 00 00 7c 00 00 |receiver| ....|..|
|00004480| 25 60 00 00 42 50 29 05 | 4e 24 c7 ff 2e 53 c7 ff |%`..BP).|N$...S..|
|00004490| 20 22 00 00 74 61 73 6b | 20 63 61 6e 20 73 65 6c | "..task| can sel|
|000044a0| 65 63 74 69 76 65 6c 79 | 20 72 65 63 65 69 76 65 |ectively| receive|
|000044b0| 20 6f 6e 6c 79 20 74 68 | 6f 73 65 20 6d 65 73 73 | only th|ose mess|
|000044c0| 61 67 65 73 20 66 72 6f | 6d 20 61 20 73 70 65 63 |ages fro|m a spec|
|000044d0| 69 66 69 65 64 20 74 61 | 73 6b 2e 0d 00 60 00 00 |ified ta|sk...`..|
|000044e0| 05 74 00 00 00 f0 e7 06 | ce cc c6 ff ae fb c6 ff |.t......|........|
|000044f0| 20 22 00 02 54 68 65 20 | 74 68 69 72 64 20 65 6c | "..The |third el|
|00004500| 65 6d 65 6e 74 20 6f 66 | 20 74 68 65 20 6d 65 73 |ement of| the mes|
|00004510| 73 61 67 65 20 63 6f 6e | 74 61 69 6e 73 20 61 6e |sage con|tains an|
|00004520| 20 6f 70 74 69 6f 6e 61 | 6c 20 6d 65 73 73 61 67 | optiona|l messag|
|00004530| 65 20 73 65 6d 61 70 68 | 6f 72 65 20 6e 75 6d 62 |e semaph|ore numb|
|00004540| 65 72 2e 20 54 79 70 69 | 63 61 6c 6c 79 2c 20 00 |er. Typi|cally, .|
|00004550| 00 74 00 00 05 84 00 00 | 00 70 ca 07 8e 94 c6 ff |.t......|.p......|
|00004560| 6e c3 c6 ff 20 22 00 00 | 77 68 65 6e 20 61 20 73 |n... "..|when a s|
|00004570| 65 6e 64 69 6e 67 20 74 | 61 73 6b 20 77 61 6e 74 |ending t|ask want|
|00004580| 73 20 74 6f 20 73 65 6e | 64 20 61 20 6d 65 73 73 |s to sen|d a mess|
|00004590| 61 67 65 20 61 6e 64 20 | 77 61 69 74 20 75 6e 74 |age and |wait unt|
|000045a0| 69 6c 20 74 68 65 20 72 | 65 63 65 69 76 65 72 20 |il the r|eceiver |
|000045b0| 68 61 73 20 70 72 6f 63 | 65 73 73 65 64 20 74 68 |has proc|essed th|
|000045c0| 65 20 6d 65 73 73 61 67 | 65 2c 20 69 74 20 77 69 |e messag|e, it wi|
|000045d0| 6c 6c 20 00 00 84 00 00 | 05 7c 00 00 00 9c 5f 07 |ll .....|.|...._.|
|000045e0| 4e 5c c6 ff 2e 8b c6 ff | 20 22 00 00 69 6e 63 6c |N\......| "..incl|
|000045f0| 75 64 65 20 61 20 6e 6f | 6e 2d 7a 65 72 6f 20 73 |ude a no|n-zero s|
|00004600| 65 6d 61 70 68 6f 72 65 | 20 6e 75 6d 62 65 72 20 |emaphore| number |
|00004610| 61 73 20 6f 6e 65 20 6f | 66 20 74 68 65 20 63 61 |as one o|f the ca|
|00004620| 6c 6c 69 6e 67 20 61 72 | 67 75 6d 65 6e 74 73 20 |lling ar|guments |
|00004630| 66 6f 72 20 74 68 65 20 | 4d 43 58 31 31 20 64 69 |for the |MCX11 di|
|00004640| 72 65 63 74 69 76 65 2e | 20 54 68 65 20 00 00 00 |rective.| The ...|
|00004650| 00 7c 00 00 05 84 00 00 | 00 c0 a4 07 0e 24 c6 ff |.|......|.....$..|
|00004660| ee 52 c6 ff 20 22 00 00 | 73 65 6e 64 69 6e 67 20 |.R.. "..|sending |
|00004670| 74 61 73 6b 20 77 69 6c | 6c 20 74 68 65 6e 20 73 |task wil|l then s|
|00004680| 75 73 70 65 6e 64 20 65 | 78 65 63 75 74 69 6f 6e |uspend e|xecution|
|00004690| 20 75 6e 74 69 6c 20 74 | 68 65 20 72 65 63 65 69 | until t|he recei|
|000046a0| 76 65 72 20 74 61 73 6b | 20 63 6f 6d 70 6c 65 74 |ver task| complet|
|000046b0| 65 73 20 74 68 65 20 70 | 72 6f 63 65 73 73 69 6e |es the p|rocessin|
|000046c0| 67 20 6f 66 20 74 68 65 | 20 6d 65 73 73 61 67 65 |g of the| message|
|000046d0| 20 00 00 00 00 84 00 00 | 05 80 00 00 00 4c 7c 07 | .......|.....L|.|
|000046e0| ce eb c5 ff ae 1a c6 ff | 20 22 00 00 63 6f 6e 74 |........| "..cont|
|000046f0| 65 6e 74 2e 20 57 68 65 | 6e 20 74 68 65 20 72 65 |ent. Whe|n the re|
|00004700| 63 65 69 76 65 72 20 6e | 6f 20 6c 6f 6e 67 65 72 |ceiver n|o longer|
|00004710| 20 6e 65 65 64 73 20 74 | 68 65 20 64 61 74 61 20 | needs t|he data |
|00004720| 69 6e 20 74 68 65 20 62 | 6f 64 79 20 6f 66 20 74 |in the b|ody of t|
|00004730| 68 65 20 6d 65 73 73 61 | 67 65 2c 20 69 74 20 73 |he messa|ge, it s|
|00004740| 69 67 6e 61 6c 73 20 74 | 68 65 20 6d 65 73 73 61 |ignals t|he messa|
|00004750| 67 65 20 00 00 80 00 00 | 25 58 00 00 42 58 a3 04 |ge .....|%X..BX..|
|00004760| 8e b3 c5 ff 6e e2 c5 ff | 20 22 00 00 73 65 6d 61 |....n...| "..sema|
|00004770| 70 68 6f 72 65 20 74 6f | 20 6e 6f 74 69 66 79 20 |phore to| notify |
|00004780| 74 68 65 20 73 65 6e 64 | 65 72 20 74 68 61 74 20 |the send|er that |
|00004790| 69 74 20 6d 61 79 20 63 | 6f 6e 74 69 6e 75 65 20 |it may c|ontinue |
|000047a0| 70 72 6f 63 65 73 73 69 | 6e 67 2e 0d 00 58 00 00 |processi|ng...X..|
|000047b0| 05 78 00 00 00 f4 0a 07 | 0e 5c c5 ff ee 8a c5 ff |.x......|.\......|
|000047c0| 20 22 00 02 54 68 65 20 | 6c 61 73 74 20 65 6c 65 | "..The |last ele|
|000047d0| 6d 65 6e 74 2c 20 74 68 | 65 20 62 6f 64 79 2c 20 |ment, th|e body, |
|000047e0| 6f 66 20 74 68 65 20 6d | 65 73 73 61 67 65 20 6d |of the m|essage m|
|000047f0| 61 79 20 63 6f 6e 74 61 | 69 6e 77 68 61 74 65 76 |ay conta|inwhatev|
|00004800| 65 72 20 64 61 74 61 20 | 69 73 20 72 65 71 75 69 |er data |is requi|
|00004810| 72 65 64 20 62 79 20 74 | 68 65 20 72 65 63 65 69 |red by t|he recei|
|00004820| 76 65 72 20 00 78 00 00 | a5 80 00 00 42 cc ac 05 |ver .x..|....B...|
|00004830| ce 23 c5 ff ae 52 c5 ff | 20 22 00 00 74 61 73 6b |.#...R..| "..task|
|00004840| 20 61 6e 64 20 69 6e 20 | 77 68 61 74 65 76 65 72 | and in |whatever|
|00004850| 20 66 6f 72 6d 61 74 2e | 20 49 74 20 6d 61 79 20 | format.| It may |
|00004860| 62 65 20 66 69 78 65 64 | 20 6f 72 20 76 61 72 69 |be fixed| or vari|
|00004870| 61 62 6c 65 20 69 6e 20 | 6c 65 6e 67 74 68 20 61 |able in |length a|
|00004880| 73 20 72 65 71 75 69 72 | 65 64 2e 08 0b 4c 00 00 |s requir|ed...L..|
|00004890| 00 00 00 00 0d 07 63 69 | 0c 4d 00 00 0c 4d 00 00 |......ci|.M...M..|
|000048a0| 00 00 00 00 00 80 00 00 | a5 3c 00 00 42 70 04 01 |........|.<..Bp..|
|000048b0| 4e b3 c4 ff 2e e2 c4 ff | c0 21 00 02 33 2e 34 20 |N.......|.!..3.4 |
|000048c0| 51 55 45 55 45 53 08 00 | 0c 4d 00 00 00 00 00 00 |QUEUES..|.M......|
|000048d0| 0d 07 20 70 0b 4e 00 00 | 0b 4e 00 00 00 00 00 00 |.. p.N..|.N......|
|000048e0| 00 3c 00 00 05 78 00 00 | 00 00 f9 06 6e 52 c4 ff |.<...x..|....nR..|
|000048f0| 4e 81 c4 ff 20 22 00 02 | 4d 43 58 31 31 20 73 75 |N... "..|MCX11 su|
|00004900| 70 70 6f 72 74 73 20 66 | 69 72 73 74 2d 69 6e 2d |pports f|irst-in-|
|00004910| 66 69 72 73 74 2d 6f 75 | 74 20 28 46 49 46 4f 29 |first-ou|t (FIFO)|
|00004920| 20 71 75 65 75 65 73 20 | 68 61 76 69 6e 67 20 73 | queues |having s|
|00004930| 69 6e 67 6c 65 20 6f 72 | 20 6d 75 6c 74 69 70 6c |ingle or| multipl|
|00004940| 65 20 62 79 74 65 73 20 | 70 65 72 20 65 6e 74 72 |e bytes |per entr|
|00004950| 79 2e 20 54 68 65 20 00 | 00 78 00 00 05 80 00 00 |y. The .|.x......|
|00004960| 00 dc a0 07 2e 1a c4 ff | 0e 49 c4 ff 20 22 00 00 |........|.I.. "..|
|00004970| 71 75 65 75 65 73 20 63 | 61 6e 20 73 75 70 70 6f |queues c|an suppo|
|00004980| 72 74 20 6d 75 6c 74 69 | 70 6c 65 20 70 72 6f 64 |rt multi|ple prod|
|00004990| 75 63 65 72 2f 73 69 6e | 67 6c 65 20 63 6f 6e 73 |ucer/sin|gle cons|
|000049a0| 75 6d 65 72 20 73 65 72 | 76 69 63 65 20 62 75 74 |umer ser|vice but|
|000049b0| 20 61 72 65 20 75 73 75 | 61 6c 6c 79 20 65 6d 70 | are usu|ally emp|
|000049c0| 6c 6f 79 65 64 20 69 6e | 20 6f 6e 6c 79 20 61 20 |loyed in| only a |
|000049d0| 73 69 6e 67 6c 65 20 00 | 00 80 00 00 05 80 00 00 |single .|........|
|000049e0| 00 88 be 07 ee e1 c3 ff | ce 10 c4 ff 20 22 00 00 |........|.... "..|
|000049f0| 70 72 6f 64 75 63 65 72 | 2f 73 69 6e 67 6c 65 20 |producer|/single |
|00004a00| 63 6f 6e 73 75 6d 65 72 | 20 6d 6f 64 65 2e 20 51 |consumer| mode. Q|
|00004a10| 75 65 75 65 73 20 61 72 | 65 20 72 65 66 65 72 65 |ueues ar|e refere|
|00004a20| 6e 63 65 64 20 76 69 61 | 20 61 20 6e 75 6d 65 72 |nced via| a numer|
|00004a30| 69 63 61 6c 20 69 64 65 | 6e 74 69 66 69 65 72 20 |ical ide|ntifier |
|00004a40| 77 68 69 63 68 20 69 73 | 20 75 6e 69 71 75 65 20 |which is| unique |
|00004a50| 74 6f 20 65 61 63 68 20 | 00 80 00 00 05 78 00 00 |to each |.....x..|
|00004a60| 00 78 56 07 ae a9 c3 ff | 8e d8 c3 ff 20 22 00 00 |.xV.....|.... "..|
|00004a70| 71 75 65 75 65 2e 20 51 | 75 65 75 65 20 6e 75 6d |queue. Q|ueue num|
|00004a80| 62 65 72 73 20 61 72 65 | 20 61 73 73 69 67 6e 65 |bers are| assigne|
|00004a90| 64 20 69 6e 20 74 68 65 | 20 73 79 73 74 65 6d 20 |d in the| system |
|00004aa0| 67 65 6e 65 72 61 74 69 | 6f 6e 20 70 72 6f 63 65 |generati|on proce|
|00004ab0| 64 75 72 65 2e 20 4d 43 | 58 31 31 20 71 75 65 75 |dure. MC|X11 queu|
|00004ac0| 65 73 20 64 69 66 66 65 | 72 20 66 72 6f 6d 20 00 |es diffe|r from .|
|00004ad0| 00 78 00 00 05 84 00 00 | 00 98 8a 07 6e 71 c3 ff |.x......|....nq..|
|00004ae0| 4e a0 c3 ff 20 22 00 00 | 6d 65 73 73 61 67 65 73 |N... "..|messages|
|00004af0| 20 69 6e 20 74 68 61 74 | 20 74 68 65 20 61 63 74 | in that| the act|
|00004b00| 75 61 6c 20 65 6e 74 72 | 79 20 64 61 74 61 20 72 |ual entr|y data r|
|00004b10| 61 74 68 65 72 20 74 68 | 61 6e 20 69 74 73 20 61 |ather th|an its a|
|00004b20| 64 64 72 65 73 73 20 69 | 73 20 65 6e 74 65 72 65 |ddress i|s entere|
|00004b30| 64 20 69 6e 74 6f 20 6f | 72 20 72 65 6d 6f 76 65 |d into o|r remove|
|00004b40| 64 20 66 72 6f 6d 20 74 | 68 65 20 71 75 65 75 65 |d from t|he queue|
|00004b50| 2e 20 00 00 00 84 00 00 | 05 80 00 00 00 f8 69 07 |. ......|......i.|
|00004b60| 2e 39 c3 ff 0e 68 c3 ff | 20 22 00 00 41 6e 6f 74 |.9...h..| "..Anot|
|00004b70| 68 65 72 20 64 69 66 66 | 65 72 65 6e 63 65 20 69 |her diff|erence i|
|00004b80| 73 20 74 68 61 74 20 74 | 68 65 20 71 75 65 75 65 |s that t|he queue|
|00004b90| 20 65 6e 74 72 69 65 73 | 20 72 65 70 72 65 73 65 | entries| represe|
|00004ba0| 6e 74 20 74 68 65 20 63 | 68 72 6f 6e 6f 6c 6f 67 |nt the c|hronolog|
|00004bb0| 69 63 61 6c 20 6f 72 64 | 65 72 20 6f 66 20 70 72 |ical ord|er of pr|
|00004bc0| 6f 63 65 73 73 69 6e 67 | 2e 20 41 6c 73 6f 2c 20 |ocessing|. Also, |
|00004bd0| 74 68 65 20 00 80 00 00 | 05 84 00 00 00 18 c5 07 |the ....|........|
|00004be0| ee 00 c3 ff ce 2f c3 ff | 20 22 00 00 70 72 69 6f |...../..| "..prio|
|00004bf0| 72 69 74 69 65 73 20 6f | 66 20 74 68 65 20 73 65 |rities o|f the se|
|00004c00| 6e 64 65 72 20 6f 72 20 | 72 65 63 65 69 76 65 72 |nder or |receiver|
|00004c10| 20 61 72 65 20 6e 6f 74 | 20 63 6f 6e 73 69 64 65 | are not| conside|
|00004c20| 72 65 64 20 61 73 20 77 | 69 74 68 20 6d 65 73 73 |red as w|ith mess|
|00004c30| 61 67 65 73 2e 20 51 75 | 65 75 65 73 20 61 72 65 |ages. Qu|eues are|
|00004c40| 20 75 73 75 61 6c 6c 79 | 20 75 73 65 64 20 74 6f | usually| used to|
|00004c50| 20 68 61 6e 64 6c 65 20 | 00 84 00 00 05 84 00 00 | handle |........|
|00004c60| 00 9c ad 07 ae c8 c2 ff | 8e f7 c2 ff 20 22 00 00 |........|.... "..|
|00004c70| 64 61 74 61 20 73 75 63 | 68 20 61 73 20 63 68 61 |data suc|h as cha|
|00004c80| 72 61 63 74 65 72 20 73 | 74 72 65 61 6d 20 69 6e |racter s|tream in|
|00004c90| 70 75 74 2f 6f 75 74 70 | 75 74 20 6f 72 20 6f 74 |put/outp|ut or ot|
|00004ca0| 68 65 72 20 64 61 74 61 | 20 62 75 66 66 65 72 69 |her data| bufferi|
|00004cb0| 6e 67 2e 20 51 75 65 75 | 65 73 20 72 65 71 75 69 |ng. Queu|es requi|
|00004cc0| 72 65 20 6d 6f 72 65 20 | 6f 76 65 72 68 65 61 64 |re more |overhead|
|00004cd0| 20 61 73 20 74 68 65 79 | 20 00 00 00 00 84 00 00 | as they| .......|
|00004ce0| 05 84 00 00 00 e4 b6 07 | 6e 90 c2 ff 4e bf c2 ff |........|n...N...|
|00004cf0| 20 22 00 00 6d 6f 76 65 | 20 74 68 65 20 64 61 74 | "..move| the dat|
|00004d00| 61 20 66 72 6f 6d 20 74 | 68 65 20 73 6f 75 72 63 |a from t|he sourc|
|00004d10| 65 20 74 6f 20 74 68 65 | 20 71 75 65 75 65 20 6f |e to the| queue o|
|00004d20| 72 20 76 69 63 65 20 76 | 65 72 73 61 20 62 75 74 |r vice v|ersa but|
|00004d30| 20 74 68 65 79 20 61 6c | 73 6f 20 70 72 6f 76 69 | they al|so provi|
|00004d40| 64 65 20 61 75 74 6f 6d | 61 74 69 63 20 73 79 6e |de autom|atic syn|
|00004d50| 63 68 72 6f 6e 69 7a 61 | 74 69 6f 6e 20 00 00 00 |chroniza|tion ...|
|00004d60| 00 84 00 00 05 7c 00 00 | 00 8c 54 07 2e 58 c2 ff |.....|..|..T..X..|
|00004d70| 0e 87 c2 ff 20 22 00 00 | 62 65 74 77 65 65 6e 20 |.... "..|between |
|00004d80| 74 68 65 20 71 75 65 75 | 65 27 73 20 70 72 6f 64 |the queu|e's prod|
|00004d90| 75 63 65 72 20 61 6e 64 | 20 69 74 73 20 63 6f 6e |ucer and| its con|
|00004da0| 73 75 6d 65 72 2e 20 49 | 74 20 69 73 20 72 65 63 |sumer. I|t is rec|
|00004db0| 6f 6d 6d 65 6e 64 65 64 | 20 74 68 61 74 20 74 68 |ommended| that th|
|00004dc0| 65 79 20 6e 6f 74 20 62 | 65 20 75 73 65 64 20 77 |ey not b|e used w|
|00004dd0| 68 65 72 65 20 68 69 67 | 68 20 00 00 00 7c 00 00 |here hig|h ...|..|
|00004de0| 25 38 00 00 42 40 36 02 | ee 1f c2 ff ce 4e c2 ff |%8..B@6.|.....N..|
|00004df0| 20 22 00 00 74 68 72 6f | 75 67 68 70 75 74 20 72 | "..thro|ughput r|
|00004e00| 61 74 65 73 20 61 72 65 | 20 72 65 71 75 69 72 65 |ates are| require|
|00004e10| 64 2e 20 0d 00 38 00 00 | 05 78 00 00 00 c0 05 07 |d. ..8..|.x......|
|00004e20| 6e c8 c1 ff 4e f7 c1 ff | 20 22 00 02 41 20 71 75 |n...N...| "..A qu|
|00004e30| 65 75 65 20 63 6f 6e 73 | 69 73 74 73 20 6f 66 20 |eue cons|ists of |
|00004e40| 74 77 6f 20 70 61 72 74 | 73 3a 20 74 68 65 20 71 |two part|s: the q|
|00004e50| 75 65 75 65 20 68 65 61 | 64 65 72 20 61 6e 64 20 |ueue hea|der and |
|00004e60| 74 68 65 20 71 75 65 75 | 65 20 62 6f 64 79 2e 20 |the queu|e body. |
|00004e70| 54 68 65 20 71 75 65 75 | 65 20 68 65 61 64 65 72 |The queu|e header|
|00004e80| 20 63 6f 6e 74 61 69 6e | 73 20 00 00 00 78 00 00 | contain|s ...x..|
|00004e90| 05 80 00 00 00 88 a3 07 | 2e 90 c1 ff 0e bf c1 ff |........|........|
|00004ea0| 20 22 00 00 74 68 61 74 | 20 69 6e 66 6f 72 6d 61 | "..that| informa|
|00004eb0| 74 69 6f 6e 20 6e 65 65 | 64 65 64 20 62 79 20 74 |tion nee|ded by t|
|00004ec0| 68 65 20 4d 43 58 31 31 | 20 69 6e 74 65 72 6e 61 |he MCX11| interna|
|00004ed0| 6c 20 72 6f 75 74 69 6e | 65 73 20 74 6f 20 65 6e |l routin|es to en|
|00004ee0| 61 62 6c 65 20 74 68 65 | 6d 20 74 6f 20 6d 6f 76 |able the|m to mov|
|00004ef0| 65 20 64 61 74 61 20 69 | 6e 74 6f 20 61 6e 64 20 |e data i|nto and |
|00004f00| 6f 75 74 20 6f 66 20 74 | 68 65 20 00 00 80 00 00 |out of t|he .....|
|00004f10| 25 74 00 00 42 7c 98 06 | ee 57 c1 ff ce 86 c1 ff |%t..B|..|.W......|
|00004f20| 20 22 00 00 71 75 65 75 | 65 73 20 70 72 6f 70 65 | "..queu|es prope|
|00004f30| 72 6c 79 2e 20 54 68 65 | 20 6f 72 67 61 6e 69 7a |rly. The| organiz|
|00004f40| 61 74 69 6f 6e 20 6f 66 | 20 74 68 65 20 71 75 65 |ation of| the que|
|00004f50| 75 65 20 68 65 61 64 65 | 72 20 63 6f 6e 73 69 73 |ue heade|r consis|
|00004f60| 74 73 20 6f 66 20 74 68 | 65 20 66 6f 6c 6c 6f 77 |ts of th|e follow|
|00004f70| 69 6e 67 20 65 6c 65 6d | 65 6e 74 73 3a 0d 00 00 |ing elem|ents:...|
|00004f80| 00 74 00 00 25 40 00 00 | 42 a0 96 02 6e 00 c1 ff |.t..%@..|B...n...|
|00004f90| 4e 2f c1 ff 20 22 00 02 | 2d 20 57 69 64 74 68 2c |N/.. "..|- Width,|
|00004fa0| 20 71 75 65 75 65 20 65 | 6e 74 72 79 20 73 69 7a | queue e|ntry siz|
|00004fb0| 65 20 28 69 6e 20 62 79 | 74 65 73 29 0d 00 00 00 |e (in by|tes)....|
|00004fc0| 00 40 00 00 25 40 00 00 | 42 74 bc 02 ee a8 c0 ff |.@..%@..|Bt......|
|00004fd0| ce d7 c0 ff 20 22 00 02 | 2d 20 44 65 70 74 68 2c |.... "..|- Depth,|
|00004fe0| 20 6d 61 78 69 6d 75 6d | 20 6c 65 6e 67 74 68 20 | maximum| length |
|00004ff0| 28 69 6e 20 65 6e 74 72 | 69 65 73 29 0d 00 00 00 |(in entr|ies)....|
|00005000| 00 40 00 00 25 44 00 00 | 42 a8 ca 02 6e 51 c0 ff |.@..%D..|B...nQ..|
|00005010| 4e 80 c0 ff 20 22 00 02 | 2d 20 43 75 72 72 65 6e |N... "..|- Curren|
|00005020| 74 20 73 69 7a 65 20 6f | 66 20 74 68 65 20 71 75 |t size o|f the qu|
|00005030| 65 75 65 20 28 69 6e 20 | 65 6e 74 72 69 65 73 29 |eue (in |entries)|
|00005040| 0d 00 00 00 00 44 00 00 | 01 10 00 00 42 58 23 03 |.....D..|....BX#.|
|00005050| 00 00 00 00 00 10 00 00 | 02 18 00 00 4c 07 00 00 |........|....L...|
|00005060| 00 00 00 00 0b 4e 00 00 | 00 00 00 00 00 18 00 00 |.....N..|........|
|00005070| 25 44 00 00 42 58 23 03 | dd 12 be ff bd 41 be ff |%D..BX#.|.....A..|
|00005080| 20 22 00 02 2d 20 50 75 | 74 20 69 6e 64 65 78 20 | "..- Pu|t index |
|00005090| 28 69 6e 20 62 79 74 65 | 73 3b 20 4d 43 58 31 31 |(in byte|s; MCX11|
|000050a0| 20 69 6e 74 65 72 6e 61 | 6c 20 75 73 65 29 0d 00 | interna|l use)..|
|000050b0| 00 44 00 00 25 30 00 00 | 42 d4 cc 01 5d bb bd ff |.D..%0..|B...]...|
|000050c0| 3d ea bd ff 20 22 00 02 | 2d 20 41 64 64 72 65 73 |=... "..|- Addres|
|000050d0| 73 20 6f 66 20 71 75 65 | 75 65 20 62 6f 64 79 0d |s of que|ue body.|
|000050e0| 00 30 00 00 25 3c 00 00 | 42 e8 cf 02 dd 63 bd ff |.0..%<..|B....c..|
|000050f0| bd 92 bd ff 20 22 00 02 | 2d 20 51 75 65 75 65 20 |.... "..|- Queue |
|00005100| 6e 6f 74 20 65 6d 70 74 | 79 20 73 65 6d 61 70 68 |not empt|y semaph|
|00005110| 6f 72 65 20 6e 75 6d 62 | 65 72 0d 00 00 3c 00 00 |ore numb|er...<..|
|00005120| 25 34 00 00 42 00 0a 02 | 5d 0c bd ff 3d 3b bd ff |%4..B...|]...=;..|
|00005130| 20 22 00 02 2d 20 41 63 | 74 69 76 65 20 73 65 6d | "..- Ac|tive sem|
|00005140| 61 70 68 6f 72 65 20 6e | 75 6d 62 65 72 0d 00 00 |aphore n|umber...|
|00005150| 00 34 00 00 05 78 00 00 | 00 2c 03 07 dd b4 bc ff |.4...x..|.,......|
|00005160| bd e3 bc ff 20 22 00 02 | 54 68 65 20 66 69 72 73 |.... "..|The firs|
|00005170| 74 20 74 68 72 65 65 20 | 65 6c 65 6d 65 6e 74 73 |t three |elements|
|00005180| 20 61 72 65 20 64 65 66 | 69 6e 65 64 20 64 75 72 | are def|ined dur|
|00005190| 69 6e 67 20 74 68 65 20 | 73 79 73 74 65 6d 20 67 |ing the |system g|
|000051a0| 65 6e 65 72 61 74 69 6f | 6e 20 70 72 6f 63 65 73 |eneratio|n proces|
|000051b0| 73 2e 20 54 68 65 20 43 | 75 72 72 65 6e 74 20 53 |s. The C|urrent S|
|000051c0| 69 7a 65 20 61 6e 64 20 | 00 78 00 00 05 84 00 00 |ize and |.x......|
|000051d0| 00 00 8c 07 9d 7c bc ff | 7d ab bc ff 20 22 00 00 |.....|..|}... "..|
|000051e0| 74 68 65 20 50 75 74 20 | 49 6e 64 65 78 20 66 69 |the Put |Index fi|
|000051f0| 65 6c 64 73 20 61 72 65 | 20 69 6e 69 74 69 61 6c |elds are| initial|
|00005200| 69 7a 65 64 20 74 6f 20 | 7a 65 72 6f 20 28 65 6d |ized to |zero (em|
|00005210| 70 74 79 29 2e 20 42 6f | 74 68 20 6f 66 20 74 68 |pty). Bo|th of th|
|00005220| 65 73 65 20 66 69 65 6c | 64 73 20 61 72 65 20 6d |ese fiel|ds are m|
|00005230| 61 69 6e 74 61 69 6e 65 | 64 20 69 6e 74 65 72 6e |aintaine|d intern|
|00005240| 61 6c 6c 79 20 62 79 20 | 74 68 65 20 00 84 00 00 |ally by |the ....|
|00005250| 25 68 00 00 42 80 1f 06 | 5d 44 bc ff 3d 73 bc ff |%h..B...|]D..=s..|
|00005260| 20 22 00 00 4d 43 58 31 | 31 20 71 75 65 75 65 20 | "..MCX1|1 queue |
|00005270| 68 61 6e 64 6c 69 6e 67 | 20 72 6f 75 74 69 6e 65 |handling| routine|
|00005280| 73 2e 20 54 68 65 79 20 | 73 68 6f 75 6c 64 20 6e |s. They |should n|
|00005290| 65 76 65 72 20 62 65 20 | 6d 61 6e 69 70 75 6c 61 |ever be |manipula|
|000052a0| 74 65 64 20 62 79 20 61 | 20 75 73 65 72 20 74 61 |ted by a| user ta|
|000052b0| 73 6b 2e 0d 00 68 00 00 | 05 78 00 00 03 60 e1 06 |sk...h..|.x...`..|
|000052c0| dd ec bb ff bd 1b bc ff | 20 22 00 02 53 65 6d 61 |........| "..Sema|
|000052d0| 70 68 6f 72 65 73 20 61 | 72 65 20 75 73 65 64 20 |phores a|re used |
|000052e0| 74 6f 20 73 69 67 6e 61 | 6c 20 69 6e 74 65 72 6e |to signa|l intern|
|000052f0| 61 6c 20 65 76 65 6e 74 | 73 20 73 75 63 68 20 61 |al event|s such a|
|00005300| 73 20 71 75 65 75 65 2d | 6e 6f 74 05 2d 65 6d 70 |s queue-|not.-emp|
|00005310| 74 79 20 6f 72 20 71 75 | 65 75 65 2d 6e 6f 74 2d |ty or qu|eue-not-|
|00005320| 66 75 6c 6c 2e 20 54 68 | 65 20 00 00 00 78 00 00 |full. Th|e ...x..|
|00005330| 05 88 00 00 00 68 e4 07 | 9d b4 bb ff 7d e3 bb ff |.....h..|....}...|
|00005340| 20 22 00 00 73 65 6d 61 | 70 68 6f 72 65 73 20 66 | "..sema|phores f|
|00005350| 6f 72 20 74 68 65 73 65 | 20 65 76 65 6e 74 73 20 |or these| events |
|00005360| 61 72 65 20 61 6c 6c 6f | 63 61 74 65 64 20 61 73 |are allo|cated as|
|00005370| 20 61 20 63 6f 6e 73 65 | 63 75 74 69 76 65 20 70 | a conse|cutive p|
|00005380| 61 69 72 20 64 75 72 69 | 6e 67 20 74 68 65 20 73 |air duri|ng the s|
|00005390| 79 73 74 65 6d 20 69 6e | 69 74 69 61 6c 69 7a 61 |ystem in|itializa|
|000053a0| 74 69 6f 6e 20 70 72 6f | 63 65 73 73 2e 20 54 68 |tion pro|cess. Th|
|000053b0| 65 20 00 00 00 88 00 00 | 05 7c 00 00 00 48 a7 07 |e ......|.|...H..|
|000053c0| 5d 7c bb ff 3d ab bb ff | 20 22 00 00 71 75 65 75 |]|..=...| "..queu|
|000053d0| 65 2d 6e 6f 74 2d 66 75 | 6c 6c 20 73 65 6d 61 70 |e-not-fu|ll semap|
|000053e0| 68 6f 72 65 20 6e 75 6d | 62 65 72 20 69 73 20 65 |hore num|ber is e|
|000053f0| 71 75 61 6c 20 74 6f 20 | 74 68 65 20 6e 75 6d 62 |qual to |the numb|
|00005400| 65 72 20 6f 66 20 74 68 | 65 20 71 75 65 75 65 2d |er of th|e queue-|
|00005410| 6e 6f 74 2d 65 6d 70 74 | 79 20 73 65 6d 61 70 68 |not-empt|y semaph|
|00005420| 6f 72 65 20 70 6c 75 73 | 20 6f 6e 65 2e 20 41 20 |ore plus| one. A |
|00005430| 00 7c 00 00 05 80 00 00 | 00 04 a6 07 1d 44 bb ff |.|......|.....D..|
|00005440| fd 72 bb ff 20 22 00 00 | 71 75 65 75 65 20 63 61 |.r.. "..|queue ca|
|00005450| 6e 20 68 61 76 65 20 61 | 20 73 65 6d 61 70 68 6f |n have a| semapho|
|00005460| 72 65 20 61 63 74 69 76 | 65 20 6f 6e 6c 79 20 66 |re activ|e only f|
|00005470| 6f 72 20 74 68 6f 73 65 | 20 74 77 6f 20 6d 75 74 |or those| two mut|
|00005480| 75 61 6c 6c 79 20 65 78 | 63 6c 75 73 69 76 65 20 |ually ex|clusive |
|00005490| 65 76 65 6e 74 73 2e 20 | 43 6f 6e 73 65 71 75 65 |events. |Conseque|
|000054a0| 6e 74 6c 79 20 6f 6e 6c | 79 20 74 68 65 20 00 00 |ntly onl|y the ..|
|000054b0| 00 80 00 00 25 68 00 00 | 43 e0 9b 05 dd 0b bb ff |....%h..|C.......|
|000054c0| bd 3a bb ff 20 22 00 00 | 71 75 65 75 65 2d 6e 6f |.:.. "..|queue-no|
|000054d0| 74 05 05 05 2d 65 6d 70 | 74 79 20 73 65 6d 61 70 |t...-emp|ty semap|
|000054e0| 68 6f 72 65 20 6e 75 6d | 62 65 72 20 72 65 71 75 |hore num|ber requ|
|000054f0| 69 72 65 73 20 64 65 66 | 69 6e 69 74 69 6f 6e 20 |ires def|inition |
|00005500| 69 6e 20 74 68 65 20 71 | 75 65 75 65 20 68 65 61 |in the q|ueue hea|
|00005510| 64 65 72 2e 0d 00 00 00 | 00 68 00 00 05 74 00 00 |der.....|.h...t..|
|00005520| 00 98 bb 06 5d b4 ba ff | 3d e3 ba ff 20 22 00 02 |....]...|=... "..|
|00005530| 54 68 65 20 61 63 74 69 | 76 65 20 73 65 6d 61 70 |The acti|ve semap|
|00005540| 68 6f 72 65 20 6e 75 6d | 62 65 72 20 66 69 65 6c |hore num|ber fiel|
|00005550| 64 20 69 6e 20 74 68 65 | 20 71 75 65 75 65 20 68 |d in the| queue h|
|00005560| 65 61 64 65 72 20 69 73 | 20 75 73 65 64 20 74 6f |eader is| used to|
|00005570| 20 63 6f 6e 74 61 69 6e | 20 74 68 65 20 6e 75 6d | contain| the num|
|00005580| 62 65 72 20 6f 66 20 74 | 68 65 20 00 00 74 00 00 |ber of t|he ..t..|
|00005590| 05 80 00 00 00 b4 7d 07 | 1d 7c ba ff fd aa ba ff |......}.|.|......|
|000055a0| 20 22 00 00 73 65 6d 61 | 70 68 6f 72 65 20 61 73 | "..sema|phore as|
|000055b0| 73 6f 63 69 61 74 65 64 | 20 77 69 74 68 20 6f 6e |sociated| with on|
|000055c0| 65 20 6f 66 20 74 68 65 | 20 74 77 6f 20 70 6f 73 |e of the| two pos|
|000055d0| 73 69 62 6c 65 20 65 76 | 65 6e 74 73 2e 20 49 66 |sible ev|ents. If|
|000055e0| 20 74 68 65 20 71 75 65 | 75 65 20 69 73 20 65 6d | the que|ue is em|
|000055f0| 70 74 79 20 61 6e 64 20 | 61 20 74 61 73 6b 20 61 |pty and |a task a|
|00005600| 74 74 65 6d 70 74 73 20 | 74 6f 20 00 00 80 00 00 |ttempts |to .....|
|00005610| 05 84 00 00 00 84 c2 07 | dd 43 ba ff bd 72 ba ff |........|.C...r..|
|00005620| 20 22 00 00 72 65 6d 6f | 76 65 20 61 6e 20 65 6e | "..remo|ve an en|
|00005630| 74 72 79 2c 20 74 68 65 | 20 61 63 74 69 76 65 20 |try, the| active |
|00005640| 73 65 6d 61 70 68 6f 72 | 65 20 66 69 65 6c 64 20 |semaphor|e field |
|00005650| 69 6e 20 74 68 65 20 71 | 75 65 75 65 20 68 65 61 |in the q|ueue hea|
|00005660| 64 65 72 20 69 73 20 73 | 65 74 20 74 6f 20 63 6f |der is s|et to co|
|00005670| 6e 74 61 69 6e 20 74 68 | 65 20 6e 75 6d 62 65 72 |ntain th|e number|
|00005680| 20 6f 66 20 74 68 65 20 | 71 75 65 75 65 2d 00 00 | of the |queue-..|
|00005690| 00 84 00 00 05 84 00 00 | 00 04 c4 07 9d 0b ba ff |........|........|
|000056a0| 7d 3a ba ff 20 22 00 00 | 6e 6f 74 2d 65 6d 70 74 |}:.. "..|not-empt|
|000056b0| 79 20 73 65 6d 61 70 68 | 6f 72 65 2e 20 43 6f 6e |y semaph|ore. Con|
|000056c0| 76 65 72 73 65 6c 79 2c | 20 69 66 20 61 20 74 61 |versely,| if a ta|
|000056d0| 73 6b 20 61 74 74 65 6d | 70 74 73 20 74 6f 20 70 |sk attem|pts to p|
|000056e0| 75 74 20 61 6e 20 65 6e | 74 72 79 20 69 6e 74 6f |ut an en|try into|
|000056f0| 20 61 20 71 75 65 75 65 | 20 77 68 69 63 68 20 69 | a queue| which i|
|00005700| 73 20 61 6c 72 65 61 64 | 79 20 66 75 6c 6c 2c 20 |s alread|y full, |
|00005710| 74 68 65 20 00 84 00 00 | 25 70 00 00 43 20 2b 06 |the ....|%p..C +.|
|00005720| 5d d3 b9 ff 3d 02 ba ff | 20 22 00 00 61 63 74 69 |]...=...| "..acti|
|00005730| 76 65 20 73 65 6d 61 70 | 68 6f 72 65 20 66 69 65 |ve semap|hore fie|
|00005740| 6c 64 20 69 73 20 73 65 | 74 20 74 6f 20 63 6f 6e |ld is se|t to con|
|00005750| 74 61 69 6e 20 74 68 65 | 20 6e 75 6d 62 65 72 20 |tain the| number |
|00005760| 6f 66 20 74 68 65 20 71 | 75 65 75 65 2d 6e 6f 74 |of the q|ueue-not|
|00005770| 2d 66 75 6c 6c 20 73 65 | 6d 61 70 68 6f 72 65 2e |-full se|maphore.|
|00005780| 0d 00 00 00 00 70 00 00 | 05 7c 00 00 00 28 1c 07 |.....p..|.|...(..|
|00005790| dd 7b b9 ff bd aa b9 ff | 20 22 00 02 42 79 20 75 |.{......| "..By u|
|000057a0| 73 65 20 6f 66 20 74 68 | 65 73 65 20 73 65 6d 61 |se of th|ese sema|
|000057b0| 70 68 6f 72 65 73 2c 20 | 69 74 20 69 73 20 70 6f |phores, |it is po|
|000057c0| 73 73 69 62 6c 65 20 74 | 6f 20 73 65 6e 64 20 64 |ssible t|o send d|
|000057d0| 61 74 61 20 62 65 74 77 | 65 65 6e 20 74 61 73 6b |ata betw|een task|
|000057e0| 73 20 61 73 79 6e 63 68 | 72 6f 6e 6f 75 73 6c 79 |s asynch|ronously|
|000057f0| 20 62 75 74 20 77 69 74 | 68 6f 75 74 20 00 00 00 | but wit|hout ...|
|00005800| 00 7c 00 00 a5 5c 00 00 | 43 88 b4 02 9d 43 b9 ff |.|...\..|C....C..|
|00005810| 7d 72 b9 ff 20 22 00 00 | 74 68 65 20 77 6f 72 72 |}r.. "..|the worr|
|00005820| 79 20 6f 66 20 6f 76 65 | 72 05 05 05 2d 05 72 75 |y of ove|r...-.ru|
|00005830| 6e 6e 69 6e 67 20 74 68 | 65 20 71 75 65 75 65 2e |nning th|e queue.|
|00005840| 08 4e 00 00 0b 4e 00 00 | 00 00 00 00 0d 07 00 00 |.N...N..|........|
|00005850| 0c 4f 00 00 0c 4f 00 00 | 00 00 00 00 00 5c 00 00 |.O...O..|.....\..|
|00005860| a5 3c 00 00 42 74 f7 00 | 1d d3 b8 ff fd 01 b9 ff |.<..Bt..|........|
|00005870| c0 21 00 02 33 2e 35 20 | 54 49 4d 45 52 53 08 61 |.!..3.5 |TIMERS.a|
|00005880| 0c 4f 00 00 00 00 00 00 | 0d 07 6f 72 0b 50 00 00 |.O......|..or.P..|
|00005890| 0b 50 00 00 00 00 00 00 | 00 3c 00 00 05 78 00 00 |.P......|.<...x..|
|000058a0| 00 20 85 06 3d 72 b8 ff | 1d a1 b8 ff 20 22 00 02 |. ..=r..|.... "..|
|000058b0| 49 6e 20 74 68 65 20 64 | 65 73 63 72 69 70 74 69 |In the d|escripti|
|000058c0| 6f 6e 73 20 6f 66 20 74 | 69 6d 65 20 62 61 73 65 |ons of t|ime base|
|000058d0| 64 20 66 75 6e 63 74 69 | 6f 6e 73 20 74 6f 20 66 |d functi|ons to f|
|000058e0| 6f 6c 6c 6f 77 20 69 6e | 20 74 68 65 20 73 75 63 |ollow in| the suc|
|000058f0| 63 65 65 64 69 6e 67 20 | 73 65 63 74 69 6f 6e 73 |ceeding |sections|
|00005900| 2c 20 69 74 20 77 69 6c | 6c 20 62 65 20 00 00 00 |, it wil|l be ...|
|00005910| 00 78 00 00 05 80 00 00 | 00 e4 c2 07 fd 39 b8 ff |.x......|.....9..|
|00005920| dd 68 b8 ff 20 22 00 f0 | 69 6d 70 6f 72 74 61 6e |.h.. "..|importan|
|00005930| 74 20 74 6f 20 75 6e 64 | 65 72 73 74 61 6e 64 20 |t to und|erstand |
|00005940| 74 68 65 20 63 6f 6e 76 | 65 6e 74 69 6f 6e 73 20 |the conv|entions |
|00005950| 75 73 65 64 20 62 79 20 | 4d 43 58 31 31 2e 20 41 |used by |MCX11. A|
|00005960| 6c 6c 20 74 69 6d 65 72 | 73 20 69 6e 20 4d 43 58 |ll timer|s in MCX|
|00005970| 31 31 20 61 72 65 20 31 | 36 2d 62 69 74 73 20 6c |11 are 1|6-bits l|
|00005980| 6f 6e 67 2e 20 54 68 65 | 20 74 77 6f 20 00 00 00 |ong. The| two ...|
|00005990| 00 80 00 00 05 80 00 00 | 00 d8 a4 07 bd 01 b8 ff |........|........|
|000059a0| 9d 30 b8 ff 20 22 00 f0 | 74 69 6d 65 20 75 6e 69 |.0.. "..|time uni|
|000059b0| 74 73 20 75 73 65 64 20 | 69 6e 74 65 72 6e 61 6c |ts used |internal|
|000059c0| 6c 79 20 62 79 20 4d 43 | 58 31 31 20 61 72 65 20 |ly by MC|X11 are |
|000059d0| 74 69 63 6b 73 20 61 6e | 64 20 74 6f 63 6b 73 2e |ticks an|d tocks.|
|000059e0| 20 41 20 74 69 63 6b 20 | 67 69 76 65 73 20 74 68 | A tick |gives th|
|000059f0| 65 20 61 6d 6f 75 6e 74 | 20 6f 66 20 74 69 6d 65 |e amount| of time|
|00005a00| 20 62 65 74 77 65 65 6e | 20 63 6c 6f 63 6b 20 00 | between| clock .|
|00005a10| 00 80 00 00 05 88 00 00 | 00 80 c6 07 7d c9 b7 ff |........|....}...|
|00005a20| 5d f8 b7 ff 20 22 00 f0 | 67 65 6e 65 72 61 74 65 |]... "..|generate|
|00005a30| 64 20 73 79 73 74 65 6d | 20 69 6e 74 65 72 72 75 |d system| interru|
|00005a40| 70 74 73 2c 20 6f 72 20 | 65 71 75 69 76 61 6c 65 |pts, or |equivale|
|00005a50| 6e 74 6c 79 2c 20 74 68 | 65 20 70 65 72 69 6f 64 |ntly, th|e period|
|00005a60| 20 62 65 74 77 65 65 6e | 20 63 6c 6f 63 6b 20 69 | between| clock i|
|00005a70| 6e 74 65 72 72 75 70 74 | 20 73 65 72 76 69 63 65 |nterrupt| service|
|00005a80| 20 72 65 71 75 65 73 74 | 73 2e 20 41 20 74 6f 63 | request|s. A toc|
|00005a90| 6b 20 69 73 20 00 00 00 | 00 88 00 00 05 84 00 00 |k is ...|........|
|00005aa0| 00 58 d6 07 3d 91 b7 ff | 1d c0 b7 ff 20 22 00 f0 |.X..=...|.... "..|
|00005ab0| 61 6e 20 69 6e 74 65 67 | 72 61 6c 20 6e 75 6d 62 |an integ|ral numb|
|00005ac0| 65 72 20 6f 66 20 74 69 | 63 6b 73 20 61 6e 64 20 |er of ti|cks and |
|00005ad0| 69 73 20 74 68 65 20 74 | 69 6d 65 20 75 6e 69 74 |is the t|ime unit|
|00005ae0| 20 75 73 65 64 20 62 79 | 20 61 6c 6c 20 6f 66 20 | used by| all of |
|00005af0| 74 68 65 20 74 69 6d 65 | 20 64 65 70 65 6e 64 65 |the time| depende|
|00005b00| 6e 74 20 66 75 6e 63 74 | 69 6f 6e 73 20 69 6e 20 |nt funct|ions in |
|00005b10| 4d 43 58 31 31 2e 20 54 | 68 65 20 00 00 84 00 00 |MCX11. T|he .....|
|00005b20| 05 84 00 00 00 78 b0 07 | fd 58 b7 ff dd 87 b7 ff |.....x..|.X......|
|00005b30| 20 22 00 f0 74 69 63 6b | 20 66 72 65 71 75 65 6e | "..tick| frequen|
|00005b40| 63 79 20 6f 66 20 74 68 | 65 20 52 54 49 20 63 6c |cy of th|e RTI cl|
|00005b50| 6f 63 6b 20 69 73 20 73 | 65 74 20 64 75 72 69 6e |ock is s|et durin|
|00005b60| 67 20 74 68 65 20 73 79 | 73 74 65 6d 20 69 6e 69 |g the sy|stem ini|
|00005b70| 74 69 61 6c 69 7a 61 74 | 69 6f 6e 20 70 72 6f 63 |tializat|ion proc|
|00005b80| 65 73 73 20 62 75 74 20 | 77 61 73 20 64 65 74 65 |ess but |was dete|
|00005b90| 72 6d 69 6e 65 64 2c 20 | 61 73 20 77 61 73 20 00 |rmined, |as was .|
|00005ba0| 00 84 00 00 25 70 00 00 | 42 74 a0 06 bd 20 b7 ff |....%p..|Bt... ..|
|00005bb0| 9d 4f b7 ff 20 22 00 f0 | 74 68 65 20 6e 75 6d 62 |.O.. "..|the numb|
|00005bc0| 65 72 20 6f 66 20 74 69 | 63 6b 73 20 70 65 72 20 |er of ti|cks per |
|00005bd0| 74 6f 63 6b 2c 20 62 79 | 20 74 68 65 20 73 79 73 |tock, by| the sys|
|00005be0| 74 65 6d 20 64 65 73 69 | 67 6e 65 72 20 64 75 72 |tem desi|gner dur|
|00005bf0| 69 6e 67 20 4d 43 58 31 | 31 20 73 79 73 74 65 6d |ing MCX1|1 system|
|00005c00| 20 63 6f 6e 66 69 67 75 | 72 61 74 69 6f 6e 2e 0d | configu|ration..|
|00005c10| 00 70 00 00 05 70 00 00 | 00 fc 48 06 3d c9 b6 ff |.p...p..|..H.=...|
|00005c20| 1d f8 b6 ff 20 22 00 f2 | 41 73 20 61 6e 20 65 78 |.... "..|As an ex|
|00005c30| 61 6d 70 6c 65 2c 20 73 | 75 70 70 6f 73 65 20 74 |ample, s|uppose t|
|00005c40| 68 65 20 68 61 72 64 77 | 61 72 65 20 63 6c 6f 63 |he hardw|are cloc|
|00005c50| 6b 20 69 73 20 63 6f 6e | 66 69 67 75 72 65 64 20 |k is con|figured |
|00005c60| 74 6f 20 63 61 75 73 65 | 20 69 6e 74 65 72 72 75 |to cause| interru|
|00005c70| 70 74 73 20 65 76 65 72 | 79 20 32 35 20 00 00 00 |pts ever|y 25 ...|
|00005c80| 00 70 00 00 05 88 00 00 | 00 90 ec 07 fd 90 b6 ff |.p......|........|
|00005c90| dd bf b6 ff 20 22 00 f0 | 6d 69 6c 6c 69 73 65 63 |.... "..|millisec|
|00005ca0| 6f 6e 64 73 20 61 6e 64 | 20 74 68 61 74 20 30 2e |onds and| that 0.|
|00005cb0| 32 35 20 73 65 63 6f 6e | 64 73 20 28 32 35 30 20 |25 secon|ds (250 |
|00005cc0| 6d 69 6c 6c 69 73 65 63 | 6f 6e 64 73 29 20 69 73 |millisec|onds) is|
|00005cd0| 20 74 68 65 20 74 69 6d | 65 20 6d 6f 73 74 20 63 | the tim|e most c|
|00005ce0| 6f 6e 76 65 6e 69 65 6e | 74 20 69 6e 74 65 72 76 |onvenien|t interv|
|00005cf0| 61 6c 20 66 6f 72 20 74 | 69 6d 69 6e 67 20 65 76 |al for t|iming ev|
|00005d00| 65 6e 74 73 20 00 00 00 | 00 88 00 00 05 88 00 00 |ents ...|........|
|00005d10| 00 bc cf 07 bd 58 b6 ff | 9d 87 b6 ff 20 22 00 f0 |.....X..|.... "..|
|00005d20| 69 6e 20 74 68 65 20 61 | 70 70 6c 69 63 61 74 69 |in the a|pplicati|
|00005d30| 6f 6e 2e 20 49 6e 20 6f | 72 64 65 72 20 74 6f 20 |on. In o|rder to |
|00005d40| 64 65 74 65 72 6d 69 6e | 65 20 74 68 65 20 6e 75 |determin|e the nu|
|00005d50| 6d 62 65 72 20 6f 66 20 | 74 69 63 6b 73 20 70 65 |mber of |ticks pe|
|00005d60| 72 20 74 6f 63 6b 2c 20 | 73 69 6d 70 6c 79 20 64 |r tock, |simply d|
|00005d70| 69 76 69 64 65 20 74 68 | 65 20 64 65 73 69 72 65 |ivide th|e desire|
|00005d80| 64 20 64 75 72 61 74 69 | 6f 6e 20 6f 66 20 00 00 |d durati|on of ..|
|00005d90| 00 88 00 00 25 74 00 00 | 42 7c 6b 06 7d 20 b6 ff |....%t..|B|k.} ..|
|00005da0| 5d 4f b6 ff 20 22 00 f0 | 74 68 65 20 74 6f 63 6b |]O.. "..|the tock|
|00005db0| 20 28 32 35 30 20 6d 73 | 29 20 62 79 20 74 68 65 | (250 ms|) by the|
|00005dc0| 20 64 75 72 61 74 69 6f | 6e 20 6f 66 20 61 20 74 | duratio|n of a t|
|00005dd0| 69 63 6b 20 28 32 35 20 | 6d 73 29 2e 20 54 68 75 |ick (25 |ms). Thu|
|00005de0| 73 2c 20 69 6e 20 74 68 | 69 73 20 63 61 73 65 2c |s, in th|is case,|
|00005df0| 20 31 20 74 6f 63 6b 20 | 3d 20 31 30 20 74 69 63 | 1 tock |= 10 tic|
|00005e00| 6b 73 2e 0d 00 74 00 00 | 05 74 00 00 00 30 d8 06 |ks...t..|.t...0..|
|00005e10| fd c8 b5 ff dd f7 b5 ff | 20 22 00 f2 54 69 6d 65 |........| "..Time|
|00005e20| 72 20 76 61 6c 75 65 73 | 20 61 72 65 20 64 65 66 |r values| are def|
|00005e30| 69 6e 65 64 20 61 73 20 | 74 68 65 20 6e 75 6d 62 |ined as |the numb|
|00005e40| 65 72 20 6f 66 20 63 6c | 6f 63 6b 20 74 6f 63 6b |er of cl|ock tock|
|00005e50| 73 20 72 65 71 75 69 72 | 65 64 20 74 6f 20 66 6f |s requir|ed to fo|
|00005e60| 72 6d 20 74 68 65 20 6e | 65 65 64 65 64 20 61 6d |rm the n|eeded am|
|00005e70| 6f 75 6e 74 20 6f 66 20 | 00 74 00 00 05 8c 00 00 |ount of |.t......|
|00005e80| 00 a4 c6 07 bd 90 b5 ff | 9d bf b5 ff 20 22 00 f0 |........|.... "..|
|00005e90| 74 69 6d 65 2e 20 49 66 | 20 61 20 74 69 6d 65 72 |time. If| a timer|
|00005ea0| 20 76 61 6c 75 65 20 69 | 73 20 70 6f 73 69 74 69 | value i|s positi|
|00005eb0| 76 65 2c 20 69 74 20 69 | 73 20 75 73 65 64 20 6f |ve, it i|s used o|
|00005ec0| 6e 6c 79 20 6f 6e 63 65 | 20 28 6f 6e 65 2d 73 68 |nly once| (one-sh|
|00005ed0| 6f 74 20 74 69 6d 65 72 | 29 2e 20 48 6f 77 65 76 |ot timer|). Howev|
|00005ee0| 65 72 2c 20 69 66 20 74 | 68 65 20 76 61 6c 75 65 |er, if t|he value|
|00005ef0| 20 69 73 20 6e 65 67 61 | 74 69 76 65 2c 20 69 74 | is nega|tive, it|
|00005f00| 20 00 00 00 00 8c 00 00 | 05 84 00 00 00 38 9c 07 | .......|.....8..|
|00005f10| 7d 58 b5 ff 5d 87 b5 ff | 20 22 00 f0 69 73 20 75 |}X..]...| "..is u|
|00005f20| 73 65 64 20 61 73 20 61 | 20 63 79 63 6c 69 63 20 |sed as a| cyclic |
|00005f30| 74 69 6d 65 72 20 68 61 | 76 69 6e 67 20 61 20 70 |timer ha|ving a p|
|00005f40| 65 72 69 6f 64 20 65 71 | 75 61 6c 20 74 6f 20 74 |eriod eq|ual to t|
|00005f50| 68 65 20 32 27 73 20 63 | 6f 6d 70 6c 65 6d 65 6e |he 2's c|omplemen|
|00005f60| 74 20 76 61 6c 75 65 2e | 20 46 6f 72 20 65 78 61 |t value.| For exa|
|00005f70| 6d 70 6c 65 2c 20 69 66 | 20 61 20 63 6c 6f 63 6b |mple, if| a clock|
|00005f80| 20 74 6f 63 6b 20 00 00 | 00 84 00 00 05 84 00 00 | tock ..|........|
|00005f90| 00 38 ab 07 3d 20 b5 ff | 1d 4f b5 ff 20 22 00 00 |.8..= ..|.O.. "..|
|00005fa0| 65 71 75 61 6c 73 20 32 | 35 30 20 6d 69 6c 6c 69 |equals 2|50 milli|
|00005fb0| 73 65 63 6f 6e 64 73 2c | 20 61 20 74 69 6d 65 72 |seconds,| a timer|
|00005fc0| 20 76 61 6c 75 65 20 6f | 66 20 32 30 20 77 6f 75 | value o|f 20 wou|
|00005fd0| 6c 64 20 70 72 6f 64 75 | 63 65 20 61 20 6f 6e 63 |ld produ|ce a onc|
|00005fe0| 65 2d 6f 6e 6c 79 20 70 | 65 72 69 6f 64 20 6f 66 |e-only p|eriod of|
|00005ff0| 20 35 20 73 65 63 6f 6e | 64 73 2e 20 49 66 20 74 | 5 secon|ds. If t|
|00006000| 68 65 20 74 69 6d 65 72 | 20 00 00 00 00 84 00 00 |he timer| .......|
|00006010| 25 5c 00 00 42 7c 67 04 | fd e7 b4 ff dd 16 b5 ff |%\..B|g.|........|
|00006020| 20 22 00 00 77 65 72 65 | 20 2d 32 30 2c 20 74 68 | "..were| -20, th|
|00006030| 65 20 70 65 72 69 6f 64 | 20 69 73 20 73 74 69 6c |e period| is stil|
|00006040| 6c 20 35 20 73 65 63 6f | 6e 64 73 20 62 75 74 20 |l 5 seco|nds but |
|00006050| 74 68 65 20 74 69 6d 65 | 72 20 69 73 20 63 79 63 |the time|r is cyc|
|00006060| 6c 69 63 2e 0d 00 00 00 | 00 5c 00 00 05 78 00 00 |lic.....|.\...x..|
|00006070| 00 1c 1c 07 7d 90 b4 ff | 5d bf b4 ff 20 22 00 02 |....}...|]... "..|
|00006080| 41 6c 6c 20 74 69 6d 65 | 64 20 65 76 65 6e 74 20 |All time|d event |
|00006090| 6f 70 65 72 61 74 69 6f | 6e 73 20 61 6e 64 20 64 |operatio|ns and d|
|000060a0| 61 74 61 20 73 74 72 75 | 63 74 75 72 65 73 20 61 |ata stru|ctures a|
|000060b0| 72 65 20 68 61 6e 64 6c | 65 64 20 62 79 20 4d 43 |re handl|ed by MC|
|000060c0| 58 31 31 2e 20 41 20 74 | 61 73 6b 20 73 68 6f 75 |X11. A t|ask shou|
|000060d0| 6c 64 20 6e 6f 74 20 61 | 74 74 65 6d 70 74 20 00 |ld not a|ttempt .|
|000060e0| 00 78 00 00 a5 68 00 00 | 42 64 ac 04 3d 58 b4 ff |.x...h..|Bd..=X..|
|000060f0| 1d 87 b4 ff 20 22 00 00 | 74 6f 20 6d 61 6e 69 70 |.... "..|to manip|
|00006100| 75 6c 61 74 65 20 61 6e | 79 20 6f 66 20 74 68 65 |ulate an|y of the|
|00006110| 20 74 69 6d 65 72 20 72 | 65 6c 61 74 65 64 20 63 | timer r|elated c|
|00006120| 6f 6e 74 72 6f 6c 20 6f | 72 20 64 61 74 61 20 73 |ontrol o|r data s|
|00006130| 74 72 75 63 74 75 72 65 | 73 2e 08 6f 0b 50 00 00 |tructure|s..o.P..|
|00006140| 00 00 00 00 0d 00 00 00 | 00 68 00 00 25 1c 00 00 |........|.h..%...|
|00006150| 42 00 00 00 cd 0e b4 ff | 7d 45 b4 ff d0 27 00 02 |B.......|}E...'..|
|00006160| 0d 00 00 00 00 1c 00 00 | 06 00 00 00 79 56 34 12 |........|....yV4.|
+--------+-------------------------+-------------------------+--------+--------+