home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / CLIPPER / MISC / MAILBOX.ZIP / MPTSK.TEX / node13_ct.html / node13_ct_ct.html < prev    next >
LaTeX Document  |  1988-06-27  |  6.6 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: LaTeX Document (document/latex).

You can browse this item here: node13_ct_ct.html

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert LaTeX Document (document/latex) magic Supported
90% dexvert Hypertext Markup Language File (text/html) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file HTML document text default (weak)
99% file LaTeX document text default
98% file exported SGML document text default
97% file exported SGML document, ASCII text, with CRLF, LF line terminators default
80% TrID HyperText Markup Language with DOCTYPE default
19% TrID HyperText Markup Language default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/281 LaTeX (Subdocument) default
100% gt2 HTML (Hyper Text Markup Language) Datei default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime text/html default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3c 21 44 4f 43 54 59 50 | 45 20 48 54 4d 4c 20 50 |<!DOCTYP|E HTML P|
|00000010| 55 42 4c 49 43 20 22 2d | 2f 2f 57 33 43 2f 2f 44 |UBLIC "-|//W3C//D|
|00000020| 54 44 20 48 54 4d 4c 20 | 33 2e 32 20 46 69 6e 61 |TD HTML |3.2 Fina|
|00000030| 6c 2f 2f 65 6e 22 3e 0a | 0a 3c 21 2d 2d 43 6f 6e |l//en">.|.<!--Con|
|00000040| 76 65 72 74 65 64 20 77 | 69 74 68 20 4c 61 54 65 |verted w|ith LaTe|
|00000050| 58 32 48 54 4d 4c 20 32 | 30 32 32 20 28 52 65 6c |X2HTML 2|022 (Rel|
|00000060| 65 61 73 65 64 20 4a 61 | 6e 75 61 72 79 20 31 2c |eased Ja|nuary 1,|
|00000070| 20 32 30 32 32 29 20 2d | 2d 3e 0a 3c 48 54 4d 4c | 2022) -|->.<HTML|
|00000080| 20 6c 61 6e 67 3d 22 65 | 6e 22 3e 0a 3c 48 45 41 | lang="e|n">.<HEA|
|00000090| 44 3e 0a 3c 54 49 54 4c | 45 3e 43 6f 6e 74 65 6e |D>.<TITL|E>Conten|
|000000a0| 74 73 20 6f 66 20 6e 6f | 64 65 31 33 5f 63 74 3c |ts of no|de13_ct<|
|000000b0| 2f 54 49 54 4c 45 3e 0a | 0a 3c 4d 45 54 41 20 48 |/TITLE>.|.<META H|
|000000c0| 54 54 50 2d 45 51 55 49 | 56 3d 22 43 6f 6e 74 65 |TTP-EQUI|V="Conte|
|000000d0| 6e 74 2d 54 79 70 65 22 | 20 43 4f 4e 54 45 4e 54 |nt-Type"| CONTENT|
|000000e0| 3d 22 74 65 78 74 2f 68 | 74 6d 6c 3b 20 63 68 61 |="text/h|tml; cha|
|000000f0| 72 73 65 74 3d 75 74 66 | 2d 38 22 3e 0a 3c 4d 45 |rset=utf|-8">.<ME|
|00000100| 54 41 20 4e 41 4d 45 3d | 22 76 69 65 77 70 6f 72 |TA NAME=|"viewpor|
|00000110| 74 22 20 43 4f 4e 54 45 | 4e 54 3d 22 77 69 64 74 |t" CONTE|NT="widt|
|00000120| 68 3d 64 65 76 69 63 65 | 2d 77 69 64 74 68 2c 20 |h=device|-width, |
|00000130| 69 6e 69 74 69 61 6c 2d | 73 63 61 6c 65 3d 31 2e |initial-|scale=1.|
|00000140| 30 22 3e 0a 3c 4d 45 54 | 41 20 4e 41 4d 45 3d 22 |0">.<MET|A NAME="|
|00000150| 47 65 6e 65 72 61 74 6f | 72 22 20 43 4f 4e 54 45 |Generato|r" CONTE|
|00000160| 4e 54 3d 22 4c 61 54 65 | 58 32 48 54 4d 4c 20 76 |NT="LaTe|X2HTML v|
|00000170| 32 30 32 32 22 3e 0a 0a | 3c 4c 49 4e 4b 20 52 45 |2022">..|<LINK RE|
|00000180| 4c 3d 22 53 54 59 4c 45 | 53 48 45 45 54 22 20 48 |L="STYLE|SHEET" H|
|00000190| 52 45 46 3d 22 6e 6f 64 | 65 31 33 5f 63 74 2e 63 |REF="nod|e13_ct.c|
|000001a0| 73 73 22 3e 0a 0a 3c 2f | 48 45 41 44 3e 0a 20 0a |ss">..</|HEAD>. .|
|000001b0| 3c 42 4f 44 59 20 62 67 | 63 6f 6c 6f 72 3d 22 23 |<BODY bg|color="#|
|000001c0| 66 66 66 66 66 66 22 20 | 74 65 78 74 3d 22 23 30 |ffffff" |text="#0|
|000001d0| 30 30 30 30 30 22 20 6c | 69 6e 6b 3d 22 23 39 39 |00000" l|ink="#99|
|000001e0| 34 34 45 45 22 20 76 6c | 69 6e 6b 3d 22 23 30 30 |44EE" vl|ink="#00|
|000001f0| 30 30 66 66 22 20 61 6c | 69 6e 6b 3d 22 23 30 30 |00ff" al|ink="#00|
|00000200| 66 66 30 30 22 3e 0a 0a | 26 6c 74 3b 21 44 4f 43 |ff00">..|&lt;!DOC|
|00000210| 54 59 50 45 20 48 54 4d | 4c 20 50 55 42 4c 49 43 |TYPE HTM|L PUBLIC|
|00000220| 20 22 2d 2f 2f 57 33 43 | 2f 2f 44 54 44 20 48 54 | "-//W3C|//DTD HT|
|00000230| 4d 4c 20 33 2e 32 20 46 | 69 6e 61 6c 2f 2f 65 6e |ML 3.2 F|inal//en|
|00000240| 22 26 67 74 3b 0a 0a 3c | 50 3e 0a 26 6c 74 3b 21 |"&gt;..<|P>.&lt;!|
|00000250| 26 6e 64 61 73 68 3b 43 | 6f 6e 76 65 72 74 65 64 |&ndash;C|onverted|
|00000260| 20 77 69 74 68 20 4c 61 | 54 65 58 32 48 54 4d 4c | with La|TeX2HTML|
|00000270| 20 32 30 32 32 20 28 52 | 65 6c 65 61 73 65 64 20 | 2022 (R|eleased |
|00000280| 4a 61 6e 75 61 72 79 20 | 31 2c 20 32 30 32 32 29 |January |1, 2022)|
|00000290| 20 26 6e 64 61 73 68 3b | 26 67 74 3b 0a 26 6c 74 | &ndash;|&gt;.&lt|
|000002a0| 3b 48 54 4d 4c 20 6c 61 | 6e 67 3d 22 65 6e 22 26 |;HTML la|ng="en"&|
|000002b0| 67 74 3b 0a 26 6c 74 3b | 48 45 41 44 26 67 74 3b |gt;.&lt;|HEAD&gt;|
|000002c0| 0a 26 6c 74 3b 54 49 54 | 4c 45 26 67 74 3b 43 6f |.&lt;TIT|LE&gt;Co|
|000002d0| 6e 74 65 6e 74 73 20 6f | 66 20 4d 50 54 53 4b 3a |ntents o|f MPTSK:|
|000002e0| 20 54 68 65 20 54 61 73 | 6b 20 4f 72 67 61 6e 69 | The Tas|k Organi|
|000002f0| 7a 61 74 69 6f 6e 20 4c | 61 79 65 72 26 6c 74 3b |zation L|ayer&lt;|
|00000300| 2f 54 49 54 4c 45 26 67 | 74 3b 0a 0a 3c 50 3e 0a |/TITLE&g|t;..<P>.|
|00000310| 26 6c 74 3b 4d 45 54 41 | 20 48 54 54 50 2d 45 51 |&lt;META| HTTP-EQ|
|00000320| 55 49 56 3d 22 43 6f 6e | 74 65 6e 74 2d 54 79 70 |UIV="Con|tent-Typ|
|00000330| 65 22 20 43 4f 4e 54 45 | 4e 54 3d 22 74 65 78 74 |e" CONTE|NT="text|
|00000340| 2f 68 74 6d 6c 3b 20 63 | 68 61 72 73 65 74 3d 75 |/html; c|harset=u|
|00000350| 74 66 2d 38 22 26 67 74 | 3b 0a 26 6c 74 3b 4d 45 |tf-8"&gt|;.&lt;ME|
|00000360| 54 41 20 4e 41 4d 45 3d | 22 76 69 65 77 70 6f 72 |TA NAME=|"viewpor|
|00000370| 74 22 20 43 4f 4e 54 45 | 4e 54 3d 22 77 69 64 74 |t" CONTE|NT="widt|
|00000380| 68 3d 64 65 76 69 63 65 | 2d 77 69 64 74 68 2c 20 |h=device|-width, |
|00000390| 69 6e 69 74 69 61 6c 2d | 73 63 61 6c 65 3d 31 2e |initial-|scale=1.|
|000003a0| 30 22 26 67 74 3b 0a 26 | 6c 74 3b 4d 45 54 41 20 |0"&gt;.&|lt;META |
|000003b0| 4e 41 4d 45 3d 22 47 65 | 6e 65 72 61 74 6f 72 22 |NAME="Ge|nerator"|
|000003c0| 20 43 4f 4e 54 45 4e 54 | 3d 22 4c 61 54 65 58 32 | CONTENT|="LaTeX2|
|000003d0| 48 54 4d 4c 20 76 32 30 | 32 32 22 26 67 74 3b 0a |HTML v20|22"&gt;.|
|000003e0| 0a 3c 50 3e 0a 26 6c 74 | 3b 4c 49 4e 4b 20 52 45 |.<P>.&lt|;LINK RE|
|000003f0| 4c 3d 22 53 54 59 4c 45 | 53 48 45 45 54 22 20 48 |L="STYLE|SHEET" H|
|00000400| 52 45 46 3d 22 4d 50 54 | 53 4b 2e 63 73 73 22 26 |REF="MPT|SK.css"&|
|00000410| 67 74 3b 0a 0a 3c 50 3e | 0a 26 6c 74 3b 4c 49 4e |gt;..<P>|.&lt;LIN|
|00000420| 4b 20 52 45 4c 3d 22 6e | 65 78 74 22 20 48 52 45 |K REL="n|ext" HRE|
|00000430| 46 3d 22 6e 6f 64 65 31 | 34 5f 6d 6e 2e 68 74 6d |F="node1|4_mn.htm|
|00000440| 6c 22 26 67 74 3b 0a 26 | 6c 74 3b 4c 49 4e 4b 20 |l"&gt;.&|lt;LINK |
|00000450| 52 45 4c 3d 22 70 72 65 | 76 69 6f 75 73 22 20 48 |REL="pre|vious" H|
|00000460| 52 45 46 3d 22 6e 6f 64 | 65 31 32 5f 6d 6e 2e 68 |REF="nod|e12_mn.h|
|00000470| 74 6d 6c 22 26 67 74 3b | 0a 26 6c 74 3b 4c 49 4e |tml"&gt;|.&lt;LIN|
|00000480| 4b 20 52 45 4c 3d 22 75 | 70 22 20 48 52 45 46 3d |K REL="u|p" HREF=|
|00000490| 22 6e 6f 64 65 39 5f 6d | 6e 2e 68 74 6d 6c 22 26 |"node9_m|n.html"&|
|000004a0| 67 74 3b 0a 26 6c 74 3b | 4c 49 4e 4b 20 52 45 4c |gt;.&lt;|LINK REL|
|000004b0| 3d 22 6e 65 78 74 22 20 | 48 52 45 46 3d 22 6e 6f |="next" |HREF="no|
|000004c0| 64 65 31 34 5f 6d 6e 2e | 68 74 6d 6c 22 26 67 74 |de14_mn.|html"&gt|
|000004d0| 3b 0a 26 6c 74 3b 2f 48 | 45 41 44 26 67 74 3b 0a |;.&lt;/H|EAD&gt;.|
|000004e0| 0a 3c 50 3e 0a 26 6c 74 | 3b 42 4f 44 59 20 62 67 |.<P>.&lt|;BODY bg|
|000004f0| 63 6f 6c 6f 72 3d 22 23 | 66 66 66 66 66 66 22 20 |color="#|ffffff" |
|00000500| 74 65 78 74 3d 22 23 30 | 30 30 30 30 30 22 20 6c |text="#0|00000" l|
|00000510| 69 6e 6b 3d 22 23 39 39 | 34 34 45 45 22 20 76 6c |ink="#99|44EE" vl|
|00000520| 69 6e 6b 3d 22 23 30 30 | 30 30 66 66 22 20 61 6c |ink="#00|00ff" al|
|00000530| 69 6e 6b 3d 22 23 30 30 | 66 66 30 30 22 26 67 74 |ink="#00|ff00"&gt|
|00000540| 3b 0a 0a 3c 50 3e 0a 26 | 6c 74 3b 48 32 26 67 74 |;..<P>.&|lt;H2&gt|
|00000550| 3b 26 6c 74 3b 41 20 49 | 44 3d 22 53 45 43 54 49 |;&lt;A I|D="SECTI|
|00000560| 4f 4e 30 30 30 34 34 30 | 30 30 30 30 30 30 30 30 |ON000440|00000000|
|00000570| 30 30 30 30 30 30 22 26 | 67 74 3b 0a 4d 50 54 53 |000000"&|gt;.MPTS|
|00000580| 4b 3a 20 20 54 68 65 20 | 54 61 73 6b 20 4f 72 67 |K: The |Task Org|
|00000590| 61 6e 69 7a 61 74 69 6f | 6e 20 4c 61 79 65 72 26 |anizatio|n Layer&|
|000005a0| 6c 74 3b 2f 41 26 67 74 | 3b 0a 26 6c 74 3b 2f 48 |lt;/A&gt|;.&lt;/H|
|000005b0| 32 26 67 74 3b 0a 0a 3c | 50 3e 0a 26 6c 74 3b 50 |2&gt;..<|P>.&lt;P|
|000005c0| 26 67 74 3b 0a 49 74 20 | 69 73 20 6e 69 63 65 20 |&gt;.It |is nice |
|000005d0| 74 6f 20 62 65 20 61 62 | 6c 65 20 74 6f 20 73 77 |to be ab|le to sw|
|000005e0| 69 74 63 68 20 63 6f 6e | 74 65 78 74 73 20 77 68 |itch con|texts wh|
|000005f0| 65 6e 65 76 65 72 20 77 | 65 20 63 68 6f 6f 73 65 |enever w|e choose|
|00000600| 2c 20 62 75 74 20 77 65 | 0d 0a 6d 61 79 20 64 65 |, but we|..may de|
|00000610| 73 69 72 65 20 6d 6f 72 | 65 2e 20 20 53 75 70 70 |sire mor|e. Supp|
|00000620| 6f 73 65 2c 20 66 6f 72 | 20 69 6e 73 74 61 6e 63 |ose, for| instanc|
|00000630| 65 2c 20 77 65 20 67 65 | 74 20 74 6f 20 61 20 70 |e, we ge|t to a p|
|00000640| 6f 69 6e 74 20 69 6e 20 | 6f 75 72 0d 0a 70 72 6f |oint in |our..pro|
|00000650| 67 72 61 6d 20 77 68 65 | 72 65 20 77 65 20 6d 75 |gram whe|re we mu|
|00000660| 73 74 20 77 61 69 74 20 | 66 6f 72 2c 20 73 61 79 |st wait |for, say|
|00000670| 2c 20 6b 65 79 62 6f 61 | 72 64 20 69 6e 70 75 74 |, keyboa|rd input|
|00000680| 2e 20 20 57 68 69 63 68 | 20 74 68 72 65 61 64 20 |. Which| thread |
|00000690| 64 6f 0d 0a 77 65 20 73 | 77 69 74 63 68 20 74 6f |do..we s|witch to|
|000006a0| 3f 20 20 4f 72 20 73 75 | 70 70 6f 73 65 20 77 65 |? Or su|ppose we|
|000006b0| 20 77 61 6e 74 20 74 6f | 20 73 65 6e 64 20 61 20 | want to| send a |
|000006c0| 6d 65 73 73 61 67 65 20 | 74 6f 20 61 6e 6f 74 68 |message |to anoth|
|000006d0| 65 72 0d 0a 74 68 72 65 | 61 64 2c 20 73 61 79 2c |er..thre|ad, say,|
|000006e0| 20 74 65 6c 6c 69 6e 67 | 20 74 68 65 20 74 68 72 | telling| the thr|
|000006f0| 65 61 64 20 69 74 27 73 | 20 70 72 69 6e 74 6f 75 |ead it's| printou|
|00000700| 74 20 68 61 73 20 66 69 | 6e 69 73 68 65 64 3f 20 |t has fi|nished? |
|00000710| 20 48 6f 77 20 64 6f 0d | 0a 77 65 20 70 61 73 73 | How do.|.we pass|
|00000720| 20 74 68 65 20 74 68 72 | 65 61 64 20 74 68 65 20 | the thr|ead the |
|00000730| 6d 65 73 73 61 67 65 3f | 20 20 57 68 61 74 20 69 |message?| What i|
|00000740| 66 20 74 68 65 20 74 68 | 72 65 61 64 20 69 73 20 |f the th|read is |
|00000750| 62 75 73 79 3f 0a 0a 3c | 50 3e 0a 26 6c 74 3b 50 |busy?..<|P>.&lt;P|
|00000760| 26 67 74 3b 0a 54 68 65 | 20 4d 50 54 53 4b 20 63 |&gt;.The| MPTSK c|
|00000770| 6c 75 73 74 65 72 20 61 | 6e 73 77 65 72 73 20 74 |luster a|nswers t|
|00000780| 68 65 73 65 20 71 75 65 | 73 74 69 6f 6e 73 20 62 |hese que|stions b|
|00000790| 79 20 70 72 6f 76 69 64 | 69 6e 67 20 61 0d 0a 67 |y provid|ing a..g|
|000007a0| 65 6e 65 72 61 6c 2d 70 | 75 72 70 6f 73 65 2c 20 |eneral-p|urpose, |
|000007b0| 69 6e 74 65 67 72 61 74 | 65 64 20 73 63 68 65 64 |integrat|ed sched|
|000007c0| 75 6c 65 72 20 61 6e 64 | 20 6d 65 73 73 61 67 65 |uler and| message|
|000007d0| 20 70 61 73 73 69 6e 67 | 20 73 79 73 74 65 6d 0d | passing| system.|
|000007e0| 0a 62 61 73 65 64 20 6f | 6e 20 6d 61 69 6c 62 6f |.based o|n mailbo|
|000007f0| 78 65 73 20 28 66 72 6f | 6d 20 77 68 69 63 68 20 |xes (fro|m which |
|00000800| 74 68 65 20 70 61 63 6b | 61 67 65 20 67 65 74 73 |the pack|age gets|
|00000810| 20 69 74 73 20 6e 61 6d | 65 29 2e 0d 0a 45 73 73 | its nam|e)...Ess|
|00000820| 65 6e 74 69 61 6c 6c 79 | 2c 20 4d 50 54 53 4b 20 |entially|, MPTSK |
|00000830| 6f 72 67 61 6e 69 7a 65 | 73 20 74 68 72 65 61 64 |organize|s thread|
|00000840| 73 20 69 6e 74 6f 20 61 | 20 70 6f 77 65 72 66 75 |s into a| powerfu|
|00000850| 6c 20 28 6d 75 6c 74 69 | 29 74 61 73 6b 0d 0a 66 |l (multi|)task..f|
|00000860| 6f 72 63 65 21 0a 0a 3c | 50 3e 0a 26 6c 74 3b 50 |orce!..<|P>.&lt;P|
|00000870| 26 67 74 3b 0a 54 68 65 | 20 4d 50 54 53 4b 20 63 |&gt;.The| MPTSK c|
|00000880| 6c 75 73 74 65 72 20 69 | 6e 74 72 6f 64 75 63 65 |luster i|ntroduce|
|00000890| 73 20 74 68 72 65 65 20 | 6e 65 77 20 64 61 74 61 |s three |new data|
|000008a0| 74 79 70 65 73 3a 20 74 | 61 73 6b 73 20 28 4d 50 |types: t|asks (MP|
|000008b0| 54 53 4b 29 2c 0d 0a 6d | 65 73 73 61 67 65 73 20 |TSK),..m|essages |
|000008c0| 28 4d 50 4d 53 47 29 2c | 20 61 6e 64 20 6d 61 69 |(MPMSG),| and mai|
|000008d0| 6c 62 6f 78 65 73 20 20 | 28 4d 50 42 4f 58 29 2e |lboxes |(MPBOX).|
|000008e0| 0a 0a 3c 50 3e 0a 26 6c | 74 3b 50 26 67 74 3b 0a |..<P>.&l|t;P&gt;.|
|000008f0| 54 61 73 6b 73 20 65 73 | 73 65 6e 74 69 61 6c 6c |Tasks es|sentiall|
|00000900| 79 20 65 6e 68 61 6e 63 | 65 64 20 74 68 72 65 61 |y enhanc|ed threa|
|00000910| 64 73 2e 20 20 54 68 65 | 79 20 61 72 65 20 61 75 |ds. The|y are au|
|00000920| 74 6f 6d 61 74 69 63 61 | 6c 6c 79 20 73 63 68 65 |tomatica|lly sche|
|00000930| 64 75 6c 65 64 0d 0a 61 | 6e 64 20 6e 65 65 64 20 |duled..a|nd need |
|00000940| 6e 6f 74 20 62 65 20 65 | 78 70 6c 69 63 69 74 6c |not be e|xplicitl|
|00000950| 79 20 73 77 69 74 63 68 | 65 64 20 62 65 74 77 65 |y switch|ed betwe|
|00000960| 65 6e 2e 20 20 54 68 65 | 79 20 63 61 6e 20 61 6c |en. The|y can al|
|00000970| 73 6f 20 73 65 6e 64 20 | 61 6e 64 0d 0a 72 65 63 |so send |and..rec|
|00000980| 65 69 76 65 20 6d 65 73 | 73 61 67 65 73 2e 2e 2e |eive mes|sages...|
|00000990| 0a 0a 3c 50 3e 0a 26 6c | 74 3b 50 26 67 74 3b 0a |..<P>.&l|t;P&gt;.|
|000009a0| 4d 65 73 73 61 67 65 73 | 20 63 61 6e 20 62 65 20 |Messages| can be |
|000009b0| 61 6e 79 20 72 65 63 6f | 72 64 74 79 70 65 20 66 |any reco|rdtype f|
|000009c0| 6f 72 20 6d 61 78 69 6d | 75 6d 20 66 6c 65 78 69 |or maxim|um flexi|
|000009d0| 62 69 6c 69 74 79 2e 20 | 20 54 68 65 0d 0a 73 74 |bility. | The..st|
|000009e0| 72 75 63 74 75 72 65 20 | 6e 65 65 64 20 6f 6e 6c |ructure |need onl|
|000009f0| 79 20 62 65 67 69 6e 20 | 77 69 74 68 20 61 6e 20 |y begin |with an |
|00000a00| 4d 50 4d 53 47 20 66 69 | 65 6c 64 20 28 66 6f 72 |MPMSG fi|eld (for|
|00000a10| 20 69 6e 74 65 72 6e 61 | 6c 20 6d 65 73 73 61 67 | interna|l messag|
|00000a20| 65 0d 0a 6d 61 6e 61 67 | 65 6d 65 6e 74 20 70 75 |e..manag|ement pu|
|00000a30| 72 70 6f 73 65 73 29 2e | 20 20 49 6e 64 65 65 64 |rposes).| Indeed|
|00000a40| 2c 20 65 76 65 6e 20 74 | 61 73 6b 73 20 61 6e 64 |, even t|asks and|
|00000a50| 20 6d 61 69 6c 62 6f 78 | 65 73 20 61 72 65 20 74 | mailbox|es are t|
|00000a60| 72 65 61 74 65 64 0d 0a | 61 73 20 6d 65 73 73 61 |reated..|as messa|
|00000a70| 67 65 73 2e 2e 2e 0a 0a | 3c 50 3e 0a 26 6c 74 3b |ges.....|<P>.&lt;|
|00000a80| 50 26 67 74 3b 0a 4d 61 | 69 6c 62 6f 78 65 73 20 |P&gt;.Ma|ilboxes |
|00000a90| 61 72 65 20 74 68 65 20 | 74 68 69 6e 67 20 77 68 |are the |thing wh|
|00000aa0| 69 63 68 20 74 69 65 73 | 20 74 61 73 6b 73 20 61 |ich ties| tasks a|
|00000ab0| 6e 64 20 6d 65 73 73 61 | 67 65 73 20 74 6f 67 65 |nd messa|ges toge|
|00000ac0| 74 68 65 72 2c 20 61 6e | 64 0d 0a 6d 61 6b 65 73 |ther, an|d..makes|
|00000ad0| 20 4d 61 69 6c 62 6f 78 | 20 4d 75 6c 74 69 74 61 | Mailbox| Multita|
|00000ae0| 73 6b 69 6e 67 20 77 6f | 72 6b 2e 20 20 41 20 68 |sking wo|rk. A h|
|00000af0| 79 62 72 69 64 20 6f 66 | 20 74 68 65 20 71 75 65 |ybrid of| the que|
|00000b00| 75 65 20 64 61 74 61 0d | 0a 73 74 72 75 63 74 75 |ue data.|.structu|
|00000b10| 72 65 2c 20 61 20 6d 61 | 69 6c 62 6f 78 20 26 6c |re, a ma|ilbox &l|
|00000b20| 74 3b 45 4d 26 67 74 3b | 65 69 74 68 65 72 26 6c |t;EM&gt;|either&l|
|00000b30| 74 3b 2f 45 4d 26 67 74 | 3b 20 63 6f 6e 74 61 69 |t;/EM&gt|; contai|
|00000b40| 6e 73 20 61 20 6c 69 73 | 74 20 6f 66 20 6d 65 73 |ns a lis|t of mes|
|00000b50| 73 61 67 65 73 20 26 6c | 74 3b 45 4d 26 67 74 3b |sages &l|t;EM&gt;|
|00000b60| 0d 0a 6f 72 26 6c 74 3b | 2f 45 4d 26 67 74 3b 20 |..or&lt;|/EM&gt; |
|00000b70| 61 20 6c 69 73 74 20 6f | 66 20 74 61 73 6b 73 20 |a list o|f tasks |
|00000b80| 28 77 61 69 74 69 6e 67 | 20 66 6f 72 20 6d 65 73 |(waiting| for mes|
|00000b90| 73 61 67 65 73 29 2e 20 | 20 28 53 65 65 20 66 69 |sages). | (See fi|
|00000ba0| 67 75 72 65 29 0a 0a 3c | 50 3e 0a 26 6c 74 3b 50 |gure)..<|P>.&lt;P|
|00000bb0| 26 67 74 3b 0a 0a 3c 50 | 3e 0a 26 6c 74 3b 44 49 |&gt;..<P|>.&lt;DI|
|00000bc0| 56 20 63 6c 61 73 73 3d | 22 43 45 4e 54 45 52 22 |V class=|"CENTER"|
|00000bd0| 26 67 74 3b 26 6c 74 3b | 41 20 49 44 3d 22 31 32 |&gt;&lt;|A ID="12|
|00000be0| 30 22 26 67 74 3b 26 6c | 74 3b 2f 41 26 67 74 3b |0"&gt;&l|t;/A&gt;|
|00000bf0| 0a 26 6c 74 3b 54 41 42 | 4c 45 26 67 74 3b 0a 26 |.&lt;TAB|LE&gt;.&|
|00000c00| 6c 74 3b 43 41 50 54 49 | 4f 4e 20 63 6c 61 73 73 |lt;CAPTI|ON class|
|00000c10| 3d 22 42 4f 54 54 4f 4d | 22 26 67 74 3b 26 6c 74 |="BOTTOM|"&gt;&lt|
|00000c20| 3b 53 54 52 4f 4e 47 26 | 67 74 3b 46 69 67 75 72 |;STRONG&|gt;Figur|
|00000c30| 65 3a 26 6c 74 3b 2f 53 | 54 52 4f 4e 47 26 67 74 |e:&lt;/S|TRONG&gt|
|00000c40| 3b 0a 4d 50 54 53 4b 3a | 20 20 4d 61 69 6c 62 6f |;.MPTSK:| Mailbo|
|00000c50| 78 20 60 60 4d 65 73 73 | 61 67 65 20 42 61 6e 6b |x ``Mess|age Bank|
|00000c60| 27 27 20 49 6c 6c 75 73 | 74 72 61 74 69 6f 6e 26 |'' Illus|tration&|
|00000c70| 6c 74 3b 2f 43 41 50 54 | 49 4f 4e 26 67 74 3b 0a |lt;/CAPT|ION&gt;.|
|00000c80| 26 6c 74 3b 54 52 26 67 | 74 3b 26 6c 74 3b 54 44 |&lt;TR&g|t;&lt;TD|
|00000c90| 26 67 74 3b 26 6c 74 3b | 49 4d 47 0a 20 53 54 59 |&gt;&lt;|IMG. STY|
|00000ca0| 4c 45 3d 22 68 65 69 67 | 68 74 3a 20 33 31 34 2e |LE="heig|ht: 314.|
|00000cb0| 30 30 65 78 3b 20 22 20 | 53 52 43 3d 22 69 6d 67 |00ex; " |SRC="img|
|00000cc0| 37 2e 70 6e 67 22 0a 20 | 41 4c 54 3d 22 0a 3c 44 |7.png". |ALT=".<D|
|00000cd0| 49 56 20 63 6c 61 73 73 | 3d 22 43 45 4e 54 45 52 |IV class|="CENTER|
|00000ce0| 22 3e 0a 3c 49 4d 47 0a | 20 53 54 59 4c 45 3d 22 |">.<IMG.| STYLE="|
|00000cf0| 22 20 53 52 43 3d 22 69 | 6d 67 31 2e 70 6e 67 22 |" SRC="i|mg1.png"|
|00000d00| 0a 20 41 4c 54 3d 22 5c | 62 65 67 69 6e 7b 66 69 |. ALT="\|begin{fi|
|00000d10| 67 75 72 65 7d 5c 62 65 | 67 69 6e 7b 76 65 72 62 |gure}\be|gin{verb|
|00000d20| 61 74 69 6d 7d 4d 65 73 | 73 61 67 65 73 20 4d 61 |atim}Mes|sages Ma|
|00000d30| 69 6c 62 6f 78 20 54 61 | 73 6b 73 0a 2d 2d 2d 2d |ilbox Ta|sks.----|
|00000d40| 2d 2d 2d 2d 20 2d 2d 2d | 2d 2d 2d 2e 2e 2e 0a 2e |---- ---|---.....|
|00000d50| 2e 2e 61 20 74 2e 2e 2e | 0a 2e 2e 2e 2e 72 65 20 |..a t...|.....re |
|00000d60| 28 74 6f 20 63 6f 6e 74 | 72 6f 6c 20 6d 75 6c 74 |(to cont|rol mult|
|00000d70| 69 70 72 6f 63 65 73 73 | 6f 72 20 61 63 63 65 73 |iprocess|or acces|
|00000d80| 73 20 74 6f 20 74 68 65 | 20 6d 61 69 6c 62 6f 78 |s to the| mailbox|
|00000d90| 29 5c 65 6e 64 7b 76 65 | 72 62 61 74 69 6d 7d 0a |)\end{ve|rbatim}.|
|00000da0| 5c 65 6e 64 7b 66 69 67 | 75 72 65 7d 22 3e 0a 3c |\end{fig|ure}">.<|
|00000db0| 2f 44 49 56 3e 22 26 67 | 74 3b 26 6c 74 3b 2f 54 |/DIV>"&g|t;&lt;/T|
|00000dc0| 44 26 67 74 3b 26 6c 74 | 3b 2f 54 52 26 67 74 3b |D&gt;&lt|;/TR&gt;|
|00000dd0| 0a 26 6c 74 3b 2f 54 41 | 42 4c 45 26 67 74 3b 0a |.&lt;/TA|BLE&gt;.|
|00000de0| 26 6c 74 3b 2f 44 49 56 | 26 67 74 3b 0a 0a 3c 50 |&lt;/DIV|&gt;..<P|
|00000df0| 3e 0a 26 6c 74 3b 50 26 | 67 74 3b 0a 41 6e 20 61 |>.&lt;P&|gt;.An a|
|00000e00| 70 70 61 72 65 6e 74 20 | 64 69 73 61 64 76 61 6e |pparent |disadvan|
|00000e10| 74 61 67 65 20 6f 66 20 | 4d 61 69 6c 62 6f 78 20 |tage of |Mailbox |
|00000e20| 4d 75 6c 74 69 74 61 73 | 6b 69 6e 67 20 69 73 20 |Multitas|king is |
|00000e30| 74 68 61 74 20 69 74 20 | 64 6f 65 73 20 6e 6f 74 |that it |does not|
|00000e40| 0d 0a 63 6f 6d 65 20 77 | 69 74 68 20 66 75 6e 63 |..come w|ith func|
|00000e50| 74 69 6f 6e 73 20 74 6f | 20 61 6c 6c 6f 77 20 6f |tions to| allow o|
|00000e60| 6e 65 20 74 61 73 6b 20 | 74 6f 20 66 6f 72 63 65 |ne task |to force|
|00000e70| 20 61 6e 6f 74 68 65 72 | 20 74 6f 20 73 74 6f 70 | another| to stop|
|00000e80| 20 6f 72 0d 0a 73 75 73 | 70 65 6e 64 2c 20 61 20 | or..sus|pend, a |
|00000e90| 66 65 61 74 75 72 65 20 | 63 6f 6d 6d 6f 6e 20 69 |feature |common i|
|00000ea0| 6e 20 6f 74 68 65 72 20 | 6d 75 6c 74 69 74 61 73 |n other |multitas|
|00000eb0| 6b 65 72 73 2e 20 20 42 | 75 74 20 74 68 69 73 20 |kers. B|ut this |
|00000ec0| 69 73 20 20 62 65 63 61 | 75 73 65 0d 0a 4d 61 69 |is beca|use..Mai|
|00000ed0| 6c 62 6f 78 20 68 61 73 | 20 62 65 65 6e 20 64 65 |lbox has| been de|
|00000ee0| 73 69 67 6e 65 64 20 74 | 6f 20 61 6c 73 6f 20 77 |signed t|o also w|
|00000ef0| 6f 72 6b 20 69 6e 20 6d | 75 6c 74 69 70 72 6f 63 |ork in m|ultiproc|
|00000f00| 65 73 73 6f 72 0d 0a 65 | 6e 76 69 72 6f 6e 6d 65 |essor..e|nvironme|
|00000f10| 6e 74 73 2c 20 77 68 65 | 72 65 20 74 68 65 20 73 |nts, whe|re the s|
|00000f20| 63 68 65 64 75 6c 65 72 | 20 63 61 6e 6e 6f 74 20 |cheduler| cannot |
|00000f30| 61 75 74 6f 6d 61 74 69 | 63 61 6c 6c 79 20 61 73 |automati|cally as|
|00000f40| 73 75 6d 65 20 74 68 65 | 20 6f 74 68 65 72 0d 0a |sume the| other..|
|00000f50| 74 61 73 6b 73 20 61 72 | 65 20 73 75 73 70 65 6e |tasks ar|e suspen|
|00000f60| 64 65 64 20 77 68 69 6c | 65 20 69 74 20 65 78 65 |ded whil|e it exe|
|00000f70| 63 75 74 65 73 20 61 20 | 74 61 73 6b 2e 20 20 54 |cutes a |task. T|
|00000f80| 68 6f 75 67 68 20 49 20 | 64 6f 20 6e 6f 74 20 68 |hough I |do not h|
|00000f90| 61 76 65 0d 0a 61 20 6d | 75 6c 74 69 70 72 6f 63 |ave..a m|ultiproc|
|00000fa0| 65 73 73 6f 72 20 6d 61 | 63 68 69 6e 65 20 61 74 |essor ma|chine at|
|00000fb0| 20 6d 79 20 64 69 73 70 | 6f 73 61 6c 2c 20 49 20 | my disp|osal, I |
|00000fc0| 64 65 73 69 67 6e 65 64 | 20 4d 61 69 6c 62 6f 78 |designed| Mailbox|
|00000fd0| 20 74 6f 20 74 61 6b 65 | 0d 0a 61 64 76 61 6e 74 | to take|..advant|
|00000fe0| 61 67 65 20 6f 66 20 6d | 75 6c 74 69 70 72 6f 63 |age of m|ultiproc|
|00000ff0| 65 73 73 69 6e 67 20 65 | 6e 76 69 72 6f 6e 6d 65 |essing e|nvironme|
|00001000| 6e 74 73 20 73 68 6f 75 | 6c 64 20 74 68 65 79 20 |nts shou|ld they |
|00001010| 62 65 63 6f 6d 65 0d 0a | 61 76 61 69 6c 61 62 6c |become..|availabl|
|00001020| 65 2c 20 61 6e 64 20 74 | 6f 20 62 65 74 74 65 72 |e, and t|o better|
|00001030| 20 75 6e 64 65 72 73 74 | 61 6e 64 20 69 73 73 75 | underst|and issu|
|00001040| 65 73 20 69 6e 76 6f 6c | 76 65 64 20 69 6e 20 72 |es invol|ved in r|
|00001050| 65 61 6c 0d 0a 63 6f 6e | 63 75 72 72 65 6e 74 20 |eal..con|current |
|00001060| 65 6e 76 69 72 6f 6e 6d | 65 6e 74 73 2e 0a 0a 3c |environm|ents...<|
|00001070| 50 3e 0a 26 6c 74 3b 50 | 26 67 74 3b 0a 41 63 74 |P>.&lt;P|&gt;.Act|
|00001080| 75 61 6c 6c 79 2c 20 4d | 61 69 6c 62 6f 78 20 69 |ually, M|ailbox i|
|00001090| 73 20 65 61 73 69 6c 79 | 20 65 78 74 65 6e 64 65 |s easily| extende|
|000010a0| 64 20 74 6f 20 73 75 70 | 70 6f 72 74 20 73 6f 70 |d to sup|port sop|
|000010b0| 68 69 73 74 69 63 61 74 | 65 64 20 74 61 73 6b 0d |histicat|ed task.|
|000010c0| 0a 63 6f 6e 74 72 6f 6c | 20 6f 70 65 72 61 74 69 |.control| operati|
|000010d0| 6f 6e 73 20 64 75 65 20 | 74 6f 20 61 6e 6f 74 68 |ons due |to anoth|
|000010e0| 65 72 20 66 65 61 74 75 | 72 65 2c 20 69 74 73 20 |er featu|re, its |
|000010f0| 75 6e 69 66 6f 72 6d 69 | 74 79 2e 0d 0a 45 76 65 |uniformi|ty...Eve|
|00001100| 72 79 74 68 69 6e 67 2c | 20 65 76 65 6e 20 73 63 |rything,| even sc|
|00001110| 68 65 64 75 6c 69 6e 67 | 2c 20 77 6f 72 6b 73 20 |heduling|, works |
|00001120| 62 79 20 73 65 6e 64 69 | 6e 67 20 61 6e 64 20 72 |by sendi|ng and r|
|00001130| 65 63 65 69 76 69 6e 67 | 20 6d 65 73 73 61 67 65 |eceiving| message|
|00001140| 73 2e 0d 0a 4d 6f 72 65 | 20 73 6f 70 68 69 73 74 |s...More| sophist|
|00001150| 69 63 61 74 65 64 20 6f | 70 65 72 61 74 69 6f 6e |icated o|peration|
|00001160| 73 20 66 6f 6c 6c 6f 77 | 20 6c 6f 67 69 63 61 6c |s follow| logical|
|00001170| 6c 79 20 61 6e 64 20 64 | 6f 20 6e 6f 74 20 6e 65 |ly and d|o not ne|
|00001180| 65 64 20 74 6f 20 62 65 | 0d 0a 74 61 69 6c 6f 72 |ed to be|..tailor|
|00001190| 65 64 2e 20 20 46 6f 72 | 20 65 78 61 6d 70 6c 65 |ed. For| example|
|000011a0| 2c 20 74 6f 20 26 6c 74 | 3b 42 26 67 74 3b 79 69 |, to &lt|;B&gt;yi|
|000011b0| 65 6c 64 26 6c 74 3b 2f | 42 26 67 74 3b 20 74 68 |eld&lt;/|B&gt; th|
|000011c0| 65 20 63 75 72 72 65 6e | 74 20 74 61 73 6b 20 73 |e curren|t task s|
|000011d0| 6f 20 6f 74 68 65 72 0d | 0a 74 61 73 6b 73 20 63 |o other.|.tasks c|
|000011e0| 61 6e 20 72 75 6e 20 28 | 75 73 65 66 75 6c 20 77 |an run (|useful w|
|000011f0| 68 65 6e 20 70 6f 6c 6c | 69 6e 67 20 73 6f 6d 65 |hen poll|ing some|
|00001200| 20 63 6f 6e 64 69 74 69 | 6f 6e 29 2c 20 74 68 65 | conditi|on), the|
|00001210| 20 74 61 73 6b 20 6d 65 | 72 65 6c 79 0d 0a 61 74 | task me|rely..at|
|00001220| 74 65 6d 70 74 73 20 74 | 6f 20 60 60 72 65 63 65 |tempts t|o ``rece|
|00001230| 69 76 65 27 27 20 61 20 | 70 72 6f 63 65 73 73 6f |ive'' a |processo|
|00001240| 72 20 60 60 72 65 73 6f | 75 72 63 65 27 27 20 66 |r ``reso|urce'' f|
|00001250| 72 6f 6d 20 69 74 73 20 | 73 63 68 65 64 75 6c 65 |rom its |schedule|
|00001260| 0d 0a 6d 61 69 6c 62 6f | 78 2e 20 20 49 74 20 69 |..mailbo|x. It i|
|00001270| 73 20 61 6c 73 6f 20 70 | 6f 73 73 69 62 6c 65 20 |s also p|ossible |
|00001280| 66 6f 72 20 61 20 74 61 | 73 6b 20 74 6f 20 73 70 |for a ta|sk to sp|
|00001290| 65 63 69 66 79 20 77 68 | 69 63 68 20 74 61 73 6b |ecify wh|ich task|
|000012a0| 73 0d 0a 28 77 68 69 63 | 68 20 73 63 68 65 64 75 |s..(whic|h schedu|
|000012b0| 6c 65 20 6c 69 73 74 29 | 20 69 74 20 77 61 6e 74 |le list)| it want|
|000012c0| 73 20 74 6f 20 79 69 65 | 6c 64 20 74 6f 2e 20 20 |s to yie|ld to. |
|000012d0| 54 68 75 73 2c 20 77 68 | 65 6e 20 6f 70 74 69 6d |Thus, wh|en optim|
|000012e0| 69 7a 69 6e 67 0d 0a 70 | 65 72 66 6f 72 6d 61 6e |izing..p|erforman|
|000012f0| 63 65 2c 20 61 20 74 61 | 73 6b 20 63 61 6e 20 69 |ce, a ta|sk can i|
|00001300| 6d 70 6c 65 6d 65 6e 74 | 20 69 74 73 20 6f 77 6e |mplement| its own|
|00001310| 20 73 63 68 65 64 75 6c | 65 72 20 61 6e 64 20 60 | schedul|er and `|
|00001320| 60 62 72 65 61 6b 27 27 | 20 74 68 65 0d 0a 73 74 |`break''| the..st|
|00001330| 72 69 63 74 20 70 72 69 | 6f 72 69 74 79 20 73 63 |rict pri|ority sc|
|00001340| 68 65 64 75 6c 69 6e 67 | 2e 20 20 4f 72 2c 20 66 |heduling|. Or, f|
|00001350| 6f 72 20 6d 6f 64 75 6c | 61 72 20 70 72 6f 67 72 |or modul|ar progr|
|00001360| 61 6d 6d 69 6e 67 2c 20 | 61 20 74 61 73 6b 20 63 |amming, |a task c|
|00001370| 61 6e 0d 0a 64 75 70 6c | 69 63 61 74 65 20 69 74 |an..dupl|icate it|
|00001380| 3a 20 20 61 20 74 61 73 | 6b 20 63 61 6e 20 6d 75 |: a tas|k can mu|
|00001390| 6c 74 69 74 61 73 6b 20 | 69 74 73 65 6c 66 21 0a |ltitask |itself!.|
|000013a0| 0a 3c 50 3e 0a 26 6c 74 | 3b 50 26 67 74 3b 0a 45 |.<P>.&lt|;P&gt;.E|
|000013b0| 76 65 6e 20 74 68 65 20 | 73 65 6e 64 20 61 6e 64 |ven the |send and|
|000013c0| 20 72 65 63 65 69 76 65 | 20 60 60 70 72 69 6d 69 | receive| ``primi|
|000013d0| 74 69 76 65 73 27 27 20 | 61 72 65 20 73 70 65 63 |tives'' |are spec|
|000013e0| 69 61 6c 20 69 6e 73 74 | 61 6e 63 65 73 20 6f 66 |ial inst|ances of|
|000013f0| 20 61 0d 0a 67 65 6e 65 | 72 61 6c 20 26 6c 74 3b | a..gene|ral &lt;|
|00001400| 21 26 6e 64 61 73 68 3b | 20 4d 41 54 48 0a 20 3c |!&ndash;| MATH. <|
|00001410| 21 2d 2d 20 4d 41 54 48 | 0a 20 24 6d 70 74 73 6b |!-- MATH|. $mptsk|
|00001420| 5c 5f 78 66 65 72 28 29 | 24 0a 20 2d 2d 3e 0a 3c |\_xfer()|$. -->.<|
|00001430| 49 3e 6d 70 74 73 6b 3c | 2f 49 3e 3c 49 4d 47 0a |I>mptsk<|/I><IMG.|
|00001440| 20 53 54 59 4c 45 3d 22 | 68 65 69 67 68 74 3a 20 | STYLE="|height: |
|00001450| 31 39 36 2e 32 35 65 78 | 3b 20 76 65 72 74 69 63 |196.25ex|; vertic|
|00001460| 61 6c 2d 61 6c 69 67 6e | 3a 20 2d 30 2e 35 37 65 |al-align|: -0.57e|
|00001470| 78 3b 20 22 20 53 52 43 | 3d 22 69 6d 67 32 2e 70 |x; " SRC|="img2.p|
|00001480| 6e 67 22 0a 20 41 4c 54 | 3d 22 24 5c 5f 78 66 65 |ng". ALT|="$\_xfe|
|00001490| 72 24 22 3e 28 29 0a 20 | 26 6e 64 61 73 68 3b 26 |r$">(). |&ndash;&|
|000014a0| 67 74 3b 0a 26 6c 74 3b | 49 26 67 74 3b 6d 70 74 |gt;.&lt;|I&gt;mpt|
|000014b0| 73 6b 26 6c 74 3b 2f 49 | 26 67 74 3b 26 6c 74 3b |sk&lt;/I|&gt;&lt;|
|000014c0| 49 4d 47 0a 20 53 54 59 | 4c 45 3d 22 68 65 69 67 |IMG. STY|LE="heig|
|000014d0| 68 74 3a 20 31 33 33 2e | 31 36 65 78 3b 20 76 65 |ht: 133.|16ex; ve|
|000014e0| 72 74 69 63 61 6c 2d 61 | 6c 69 67 6e 3a 20 33 39 |rtical-a|lign: 39|
|000014f0| 2e 31 31 65 78 3b 20 22 | 20 53 52 43 3d 22 69 6d |.11ex; "| SRC="im|
|00001500| 67 31 30 2e 70 6e 67 22 | 0a 20 41 4c 54 3d 22 3c |g10.png"|. ALT="<|
|00001510| 49 4d 47 0a 20 53 54 59 | 4c 45 3d 22 68 65 69 67 |IMG. STY|LE="heig|
|00001520| 68 74 3a 20 31 39 36 2e | 32 35 65 78 3b 20 76 65 |ht: 196.|25ex; ve|
|00001530| 72 74 69 63 61 6c 2d 61 | 6c 69 67 6e 3a 20 2d 30 |rtical-a|lign: -0|
|00001540| 2e 35 37 65 78 3b 20 22 | 20 53 52 43 3d 22 69 6d |.57ex; "| SRC="im|
|00001550| 67 32 2e 70 6e 67 22 0a | 20 41 4c 54 3d 22 24 5c |g2.png".| ALT="$\|
|00001560| 5f 78 66 65 72 24 22 3e | 22 26 67 74 3b 28 29 20 |_xfer$">|"&gt;() |
|00001570| 66 75 6e 63 74 69 6f 6e | 2c 20 77 69 74 68 20 66 |function|, with f|
|00001580| 6c 65 78 69 62 69 6c 69 | 74 79 20 61 6b 69 6e 20 |lexibili|ty akin |
|00001590| 74 6f 20 74 68 65 0d 0a | 26 6c 74 3b 21 26 6e 64 |to the..|&lt;!&nd|
|000015a0| 61 73 68 3b 20 4d 41 54 | 48 0a 20 3c 21 2d 2d 20 |ash; MAT|H. <!-- |
|000015b0| 4d 41 54 48 0a 20 24 6d | 70 74 68 64 5c 5f 73 77 |MATH. $m|pthd\_sw|
|000015c0| 69 74 63 68 28 29 24 0a | 20 2d 2d 3e 0a 3c 49 3e |itch()$.| -->.<I>|
|000015d0| 6d 70 74 68 64 3c 2f 49 | 3e 3c 49 4d 47 0a 20 53 |mpthd</I|><IMG. S|
|000015e0| 54 59 4c 45 3d 22 68 65 | 69 67 68 74 3a 20 32 2e |TYLE="he|ight: 2.|
|000015f0| 31 37 65 78 3b 20 76 65 | 72 74 69 63 61 6c 2d 61 |17ex; ve|rtical-a|
|00001600| 6c 69 67 6e 3a 20 31 37 | 37 2e 31 33 65 78 3b 20 |lign: 17|7.13ex; |
|00001610| 22 20 53 52 43 3d 22 69 | 6d 67 33 2e 70 6e 67 22 |" SRC="i|mg3.png"|
|00001620| 0a 20 41 4c 54 3d 22 24 | 5c 5f 73 77 69 74 63 68 |. ALT="$|\_switch|
|00001630| 24 22 3e 28 29 0a 20 26 | 6e 64 61 73 68 3b 26 67 |$">(). &|ndash;&g|
|00001640| 74 3b 0a 26 6c 74 3b 49 | 26 67 74 3b 6d 70 74 68 |t;.&lt;I|&gt;mpth|
|00001650| 64 26 6c 74 3b 2f 49 26 | 67 74 3b 26 6c 74 3b 49 |d&lt;/I&|gt;&lt;I|
|00001660| 4d 47 0a 20 53 54 59 4c | 45 3d 22 68 65 69 67 68 |MG. STYL|E="heigh|
|00001670| 74 3a 20 32 35 2e 33 39 | 65 78 3b 20 76 65 72 74 |t: 25.39|ex; vert|
|00001680| 69 63 61 6c 2d 61 6c 69 | 67 6e 3a 20 31 35 31 2e |ical-ali|gn: 151.|
|00001690| 34 30 65 78 3b 20 22 20 | 53 52 43 3d 22 69 6d 67 |40ex; " |SRC="img|
|000016a0| 34 2e 70 6e 67 22 0a 20 | 41 4c 54 3d 22 3c 49 4d |4.png". |ALT="<IM|
|000016b0| 47 0a 20 53 54 59 4c 45 | 3d 22 68 65 69 67 68 74 |G. STYLE|="height|
|000016c0| 3a 20 32 2e 31 37 65 78 | 3b 20 76 65 72 74 69 63 |: 2.17ex|; vertic|
|000016d0| 61 6c 2d 61 6c 69 67 6e | 3a 20 31 37 37 2e 31 33 |al-align|: 177.13|
|000016e0| 65 78 3b 20 22 20 53 52 | 43 3d 22 69 6d 67 33 2e |ex; " SR|C="img3.|
|000016f0| 70 6e 67 22 0a 20 41 4c | 54 3d 22 24 5c 5f 73 77 |png". AL|T="$\_sw|
|00001700| 69 74 63 68 24 22 3e 22 | 26 67 74 3b 28 29 2e 20 |itch$">"|&gt;(). |
|00001710| 20 42 65 63 61 75 73 65 | 20 61 6c 6c 20 74 61 73 | Because| all tas|
|00001720| 6b 20 73 77 69 74 63 68 | 69 6e 67 20 61 6e 64 20 |k switch|ing and |
|00001730| 6d 65 73 73 61 67 65 20 | 70 61 73 73 69 6e 67 20 |message |passing |
|00001740| 69 73 0d 0a 74 68 72 6f | 75 67 68 20 61 20 73 69 |is..thro|ugh a si|
|00001750| 6e 67 6c 65 20 66 75 6e | 63 74 69 6f 6e 20 69 6e |ngle fun|ction in|
|00001760| 74 65 72 66 61 63 65 2c | 20 61 6e 79 20 73 6f 72 |terface,| any sor|
|00001770| 74 20 6f 66 20 6d 65 73 | 73 61 67 65 20 6d 6f 6e |t of mes|sage mon|
|00001780| 69 74 6f 72 69 6e 67 2c | 0d 0a 70 65 72 66 6f 72 |itoring,|..perfor|
|00001790| 6d 61 6e 63 65 20 6d 6f | 6e 69 74 6f 72 69 6e 67 |mance mo|nitoring|
|000017a0| 2c 20 6f 72 20 74 61 73 | 6b 20 63 6f 6e 74 72 6f |, or tas|k contro|
|000017b0| 6c 20 69 73 20 70 6f 73 | 73 69 62 6c 65 2c 20 73 |l is pos|sible, s|
|000017c0| 69 6d 70 6c 79 20 62 79 | 0d 0a 70 61 74 63 68 69 |imply by|..patchi|
|000017d0| 6e 67 20 74 68 65 20 64 | 65 73 69 72 65 64 20 63 |ng the d|esired c|
|000017e0| 6f 64 65 20 69 6e 74 6f | 20 74 68 69 73 20 66 75 |ode into| this fu|
|000017f0| 6e 63 74 69 6f 6e 2e 20 | 20 41 73 20 77 65 20 77 |nction. | As we w|
|00001800| 69 6c 6c 20 73 65 65 20 | 6d 6f 72 65 20 6f 66 0d |ill see |more of.|
|00001810| 0a 69 6e 20 74 68 65 20 | 6e 65 78 74 20 73 75 62 |.in the |next sub|
|00001820| 73 65 63 74 69 6f 6e 2c | 20 69 6e 73 74 65 61 64 |section,| instead|
|00001830| 20 6f 66 20 62 65 69 6e | 67 20 62 69 67 20 61 6e | of bein|g big an|
|00001840| 64 20 63 6f 6d 70 6c 69 | 63 61 74 65 64 20 77 69 |d compli|cated wi|
|00001850| 74 68 20 65 76 65 72 79 | 0d 0a 70 6f 73 73 69 62 |th every|..possib|
|00001860| 6c 65 20 66 65 61 74 75 | 72 65 2c 20 4d 61 69 6c |le featu|re, Mail|
|00001870| 62 6f 78 20 69 73 20 73 | 69 6d 70 6c 65 2c 20 73 |box is s|imple, s|
|00001880| 6f 20 74 68 65 20 70 72 | 6f 67 72 61 6d 6d 65 72 |o the pr|ogrammer|
|00001890| 20 63 61 6e 20 71 75 69 | 63 6b 6c 79 0d 0a 74 61 | can qui|ckly..ta|
|000018a0| 69 6c 6f 72 20 68 65 72 | 20 6f 77 6e 2e 0a 0a 3c |ilor her| own...<|
|000018b0| 50 3e 0a 26 6c 74 3b 50 | 26 67 74 3b 0a 49 6e 20 |P>.&lt;P|&gt;.In |
|000018c0| 73 68 6f 72 74 2c 20 74 | 68 65 20 4d 50 54 53 4b |short, t|he MPTSK|
|000018d0| 20 69 6d 70 6c 65 6d 65 | 6e 74 73 20 70 72 69 6f | impleme|nts prio|
|000018e0| 72 69 74 69 7a 65 64 20 | 6d 75 6c 74 69 70 72 6f |ritized |multipro|
|000018f0| 63 65 73 73 6f 72 20 73 | 63 68 65 64 75 6c 69 6e |cessor s|chedulin|
|00001900| 67 0d 0a 61 6e 64 20 73 | 69 6d 70 6c 65 20 60 60 |g..and s|imple ``|
|00001910| 6d 61 69 6c 62 6f 78 27 | 27 20 6d 65 73 73 61 67 |mailbox'|' messag|
|00001920| 65 2d 70 61 73 73 69 6e | 67 2c 20 62 61 73 65 64 |e-passin|g, based|
|00001930| 20 6f 6e 20 74 68 72 65 | 61 64 73 2e 20 20 49 74 | on thre|ads. It|
|00001940| 0d 0a 69 6e 74 72 6f 64 | 75 63 65 73 20 74 68 65 |..introd|uces the|
|00001950| 20 6d 65 73 73 61 67 65 | 2c 20 74 61 73 6b 2c 20 | message|, task, |
|00001960| 61 6e 64 20 6d 61 69 6c | 62 6f 78 20 64 61 74 61 |and mail|box data|
|00001970| 74 79 70 65 73 20 61 6e | 64 20 61 20 73 69 6d 70 |types an|d a simp|
|00001980| 6c 65 20 73 65 74 20 6f | 66 0d 0a 6f 70 65 72 61 |le set o|f..opera|
|00001990| 74 69 6f 6e 73 2c 20 77 | 69 74 68 20 77 68 69 63 |tions, w|ith whic|
|000019a0| 68 20 6d 61 6e 79 20 73 | 6f 70 68 69 73 74 69 63 |h many s|ophistic|
|000019b0| 61 74 65 64 20 73 63 68 | 65 64 75 6c 69 6e 67 2c |ated sch|eduling,|
|000019c0| 20 63 6f 6d 6d 75 6e 69 | 63 61 74 69 6f 6e 2c 0d | communi|cation,.|
|000019d0| 0a 61 6e 64 20 6d 6f 6e | 69 74 6f 72 69 6e 67 20 |.and mon|itoring |
|000019e0| 65 6e 76 69 72 6f 6e 6d | 65 6e 74 73 20 63 61 6e |environm|ents can|
|000019f0| 20 62 65 20 65 61 73 69 | 6c 79 20 62 75 69 6c 74 | be easi|ly built|
|00001a00| 2e 0a 0a 3c 50 3e 0a 26 | 6c 74 3b 50 26 67 74 3b |...<P>.&|lt;P&gt;|
|00001a10| 0a 0a 3c 50 3e 0a 26 6c | 74 3b 48 52 26 67 74 3b |..<P>.&l|t;HR&gt;|
|00001a20| 0a 0a 3c 50 3e 0a 26 6c | 74 3b 2f 42 4f 44 59 26 |..<P>.&l|t;/BODY&|
|00001a30| 67 74 3b 0a 26 6c 74 3b | 2f 48 54 4d 4c 26 67 74 |gt;.&lt;|/HTML&gt|
|00001a40| 3b 0a 0a 3c 48 52 3e 0a | 0a 3c 2f 42 4f 44 59 3e |;..<HR>.|.</BODY>|
|00001a50| 0a 3c 2f 48 54 4d 4c 3e | 0a |.</HTML>|. |
+--------+-------------------------+-------------------------+--------+--------+