home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / CLIPPER / MISC / MAILBOX.ZIP / MPTSK.TEX / node6_ct.html < prev    next >
LaTeX Document  |  1988-06-27  |  4.0 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: node6_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 49 6e | 74 65 72 6e 61 6c 20 26 |ts of In|ternal &|
|000000b0| 61 6d 70 3b 20 45 78 74 | 65 72 6e 61 6c 20 53 79 |amp; Ext|ernal Sy|
|000000c0| 6e 63 68 72 6f 6e 69 7a | 61 74 69 6f 6e 3c 2f 54 |nchroniz|ation</T|
|000000d0| 49 54 4c 45 3e 0a 0a 3c | 4d 45 54 41 20 48 54 54 |ITLE>..<|META HTT|
|000000e0| 50 2d 45 51 55 49 56 3d | 22 43 6f 6e 74 65 6e 74 |P-EQUIV=|"Content|
|000000f0| 2d 54 79 70 65 22 20 43 | 4f 4e 54 45 4e 54 3d 22 |-Type" C|ONTENT="|
|00000100| 74 65 78 74 2f 68 74 6d | 6c 3b 20 63 68 61 72 73 |text/htm|l; chars|
|00000110| 65 74 3d 75 74 66 2d 38 | 22 3e 0a 3c 4d 45 54 41 |et=utf-8|">.<META|
|00000120| 20 4e 41 4d 45 3d 22 76 | 69 65 77 70 6f 72 74 22 | NAME="v|iewport"|
|00000130| 20 43 4f 4e 54 45 4e 54 | 3d 22 77 69 64 74 68 3d | CONTENT|="width=|
|00000140| 64 65 76 69 63 65 2d 77 | 69 64 74 68 2c 20 69 6e |device-w|idth, in|
|00000150| 69 74 69 61 6c 2d 73 63 | 61 6c 65 3d 31 2e 30 22 |itial-sc|ale=1.0"|
|00000160| 3e 0a 3c 4d 45 54 41 20 | 4e 41 4d 45 3d 22 47 65 |>.<META |NAME="Ge|
|00000170| 6e 65 72 61 74 6f 72 22 | 20 43 4f 4e 54 45 4e 54 |nerator"| CONTENT|
|00000180| 3d 22 4c 61 54 65 58 32 | 48 54 4d 4c 20 76 32 30 |="LaTeX2|HTML v20|
|00000190| 32 32 22 3e 0a 0a 3c 4c | 49 4e 4b 20 52 45 4c 3d |22">..<L|INK REL=|
|000001a0| 22 53 54 59 4c 45 53 48 | 45 45 54 22 20 48 52 45 |"STYLESH|EET" HRE|
|000001b0| 46 3d 22 4d 50 54 53 4b | 2e 63 73 73 22 3e 0a 0a |F="MPTSK|.css">..|
|000001c0| 3c 4c 49 4e 4b 20 52 45 | 4c 3d 22 6e 65 78 74 22 |<LINK RE|L="next"|
|000001d0| 20 48 52 45 46 3d 22 6e | 6f 64 65 37 5f 6d 6e 2e | HREF="n|ode7_mn.|
|000001e0| 68 74 6d 6c 22 3e 0a 3c | 4c 49 4e 4b 20 52 45 4c |html">.<|LINK REL|
|000001f0| 3d 22 70 72 65 76 69 6f | 75 73 22 20 48 52 45 46 |="previo|us" HREF|
|00000200| 3d 22 6e 6f 64 65 35 5f | 6d 6e 2e 68 74 6d 6c 22 |="node5_|mn.html"|
|00000210| 3e 0a 3c 4c 49 4e 4b 20 | 52 45 4c 3d 22 75 70 22 |>.<LINK |REL="up"|
|00000220| 20 48 52 45 46 3d 22 6e | 6f 64 65 33 5f 6d 6e 2e | HREF="n|ode3_mn.|
|00000230| 68 74 6d 6c 22 3e 0a 3c | 4c 49 4e 4b 20 52 45 4c |html">.<|LINK REL|
|00000240| 3d 22 6e 65 78 74 22 20 | 48 52 45 46 3d 22 6e 6f |="next" |HREF="no|
|00000250| 64 65 37 5f 6d 6e 2e 68 | 74 6d 6c 22 3e 0a 3c 2f |de7_mn.h|tml">.</|
|00000260| 48 45 41 44 3e 0a 20 0a | 3c 42 4f 44 59 20 62 67 |HEAD>. .|<BODY bg|
|00000270| 63 6f 6c 6f 72 3d 22 23 | 66 66 66 66 66 66 22 20 |color="#|ffffff" |
|00000280| 74 65 78 74 3d 22 23 30 | 30 30 30 30 30 22 20 6c |text="#0|00000" l|
|00000290| 69 6e 6b 3d 22 23 39 39 | 34 34 45 45 22 20 76 6c |ink="#99|44EE" vl|
|000002a0| 69 6e 6b 3d 22 23 30 30 | 30 30 66 66 22 20 61 6c |ink="#00|00ff" al|
|000002b0| 69 6e 6b 3d 22 23 30 30 | 66 66 30 30 22 3e 0a 0a |ink="#00|ff00">..|
|000002c0| 3c 48 32 3e 3c 41 20 49 | 44 3d 22 53 45 43 54 49 |<H2><A I|D="SECTI|
|000002d0| 4f 4e 30 30 30 33 33 30 | 30 30 30 30 30 30 30 30 |ON000330|00000000|
|000002e0| 30 30 30 30 30 30 22 3e | 0a 49 6e 74 65 72 6e 61 |000000">|.Interna|
|000002f0| 6c 20 26 61 6d 70 3b 20 | 45 78 74 65 72 6e 61 6c |l &amp; |External|
|00000300| 20 53 79 6e 63 68 72 6f | 6e 69 7a 61 74 69 6f 6e | Synchro|nization|
|00000310| 3c 2f 41 3e 0a 3c 2f 48 | 32 3e 0a 0a 3c 50 3e 0a |</A>.</H|2>..<P>.|
|00000320| 49 66 20 63 6f 6e 63 75 | 72 72 65 6e 74 20 70 72 |If concu|rrent pr|
|00000330| 6f 63 65 73 73 65 73 20 | 61 72 65 20 67 6f 69 6e |ocesses |are goin|
|00000340| 67 20 74 6f 20 63 6f 6e | 73 74 72 75 63 74 69 76 |g to con|structiv|
|00000350| 65 6c 79 20 69 6e 74 65 | 72 61 63 74 2c 20 74 68 |ely inte|ract, th|
|00000360| 65 79 0d 0a 6d 75 73 74 | 20 62 65 20 61 62 6c 65 |ey..must| be able|
|00000370| 20 74 6f 20 73 79 6e 63 | 68 72 6f 6e 69 7a 65 20 | to sync|hronize |
|00000380| 77 69 74 68 20 65 61 63 | 68 20 6f 74 68 65 72 2e |with eac|h other.|
|00000390| 20 20 50 72 6f 63 65 73 | 73 20 73 79 6e 63 68 72 | Proces|s synchr|
|000003a0| 6f 6e 69 7a 61 74 69 6f | 6e 0d 0a 74 61 6b 65 73 |onizatio|n..takes|
|000003b0| 20 70 6c 61 63 65 20 6f | 6e 20 74 77 6f 20 6c 65 | place o|n two le|
|000003c0| 76 65 6c 73 3a 20 69 6e | 74 65 72 6e 61 6c 6c 79 |vels: in|ternally|
|000003d0| 20 28 62 65 74 77 65 65 | 6e 20 70 72 6f 63 65 73 | (betwee|n proces|
|000003e0| 73 6f 72 73 29 20 75 73 | 69 6e 67 20 3c 42 3e 0d |sors) us|ing <B>.|
|000003f0| 0a 73 65 6d 61 70 68 6f | 72 65 73 3c 2f 42 3e 20 |.semapho|res</B> |
|00000400| 61 6e 64 20 65 78 74 65 | 72 6e 61 6c 6c 79 20 28 |and exte|rnally (|
|00000410| 62 65 74 77 65 65 6e 20 | 61 20 70 72 6f 63 65 73 |between |a proces|
|00000420| 73 6f 72 20 61 6e 64 20 | 65 78 74 65 72 6e 61 6c |sor and |external|
|00000430| 0d 0a 68 61 72 64 77 61 | 72 65 29 20 75 73 69 6e |..hardwa|re) usin|
|00000440| 67 20 3c 42 3e 69 6e 74 | 65 72 72 75 70 74 73 3c |g <B>int|errupts<|
|00000450| 2f 42 3e 20 6f 72 20 3c | 42 3e 70 6f 6c 6c 69 6e |/B> or <|B>pollin|
|00000460| 67 3c 2f 42 3e 2e 0a 0a | 3c 50 3e 0a 41 20 73 65 |g</B>...|<P>.A se|
|00000470| 6d 61 70 68 6f 72 65 20 | 69 73 20 61 20 70 72 6f |maphore |is a pro|
|00000480| 63 65 73 73 6f 72 20 73 | 79 6e 63 68 72 6f 6e 69 |cessor s|ynchroni|
|00000490| 7a 61 74 69 6f 6e 20 64 | 65 76 69 63 65 20 75 73 |zation d|evice us|
|000004a0| 65 64 20 66 6f 72 20 6c | 69 6d 69 74 69 6e 67 0d |ed for l|imiting.|
|000004b0| 0a 74 68 65 20 6e 75 6d | 62 65 72 20 6f 66 20 70 |.the num|ber of p|
|000004c0| 72 6f 63 65 73 73 6f 72 | 73 20 77 68 69 63 68 20 |rocessor|s which |
|000004d0| 61 63 63 65 73 73 20 63 | 65 72 74 61 69 6e 20 64 |access c|ertain d|
|000004e0| 61 74 61 20 73 69 6d 75 | 6c 74 61 6e 65 6f 75 73 |ata simu|ltaneous|
|000004f0| 6c 79 2e 0d 0a 4e 6f 72 | 6d 61 6c 6c 79 20 6f 6e |ly...Nor|mally on|
|00000500| 6c 79 20 6f 6e 65 20 70 | 72 6f 63 65 73 73 6f 72 |ly one p|rocessor|
|00000510| 20 69 73 20 61 6c 6c 6f | 77 65 64 20 74 6f 20 61 | is allo|wed to a|
|00000520| 63 63 65 73 73 20 74 68 | 65 20 64 61 74 61 20 61 |ccess th|e data a|
|00000530| 74 20 61 6e 79 20 67 69 | 76 65 6e 0d 0a 74 69 6d |t any gi|ven..tim|
|00000540| 65 2e 20 20 54 68 65 20 | 73 65 6d 61 70 68 6f 72 |e. The |semaphor|
|00000550| 65 20 69 73 20 69 6d 70 | 6c 65 6d 65 6e 74 65 64 |e is imp|lemented|
|00000560| 20 61 73 20 61 20 6d 75 | 74 75 61 6c 6c 79 20 61 | as a mu|tually a|
|00000570| 67 72 65 65 64 20 75 70 | 6f 6e 20 62 69 74 20 69 |greed up|on bit i|
|00000580| 6e 0d 0a 74 68 65 20 63 | 6f 6d 70 75 74 65 72 27 |n..the c|omputer'|
|00000590| 73 20 6d 65 6d 6f 72 79 | 2e 20 20 57 68 65 6e 20 |s memory|. When |
|000005a0| 61 20 70 72 6f 63 65 73 | 73 6f 72 20 77 61 6e 74 |a proces|sor want|
|000005b0| 73 20 74 6f 20 3c 42 3e | 63 6c 61 69 6d 3c 2f 42 |s to <B>|claim</B|
|000005c0| 3e 20 6f 72 20 3c 42 3e | 0d 0a 77 61 69 74 20 66 |> or <B>|..wait f|
|000005d0| 6f 72 3c 2f 42 3e 20 74 | 68 65 20 73 65 6d 61 70 |or</B> t|he semap|
|000005e0| 68 6f 72 65 2c 20 69 74 | 20 62 6f 74 68 20 74 65 |hore, it| both te|
|000005f0| 73 74 73 20 61 6e 64 20 | 73 65 74 73 20 74 68 65 |sts and |sets the|
|00000600| 20 62 69 74 20 69 6e 20 | 6f 6e 65 20 3c 42 3e 0d | bit in |one <B>.|
|00000610| 0a 61 74 6f 6d 69 63 3c | 2f 42 3e 20 6f 70 65 72 |.atomic<|/B> oper|
|00000620| 61 74 69 6f 6e 2c 20 75 | 73 75 61 6c 6c 79 20 69 |ation, u|sually i|
|00000630| 6d 70 6c 65 6d 65 6e 74 | 65 64 20 61 73 20 61 20 |mplement|ed as a |
|00000640| 73 69 6e 67 6c 65 20 6d | 61 63 68 69 6e 65 20 69 |single m|achine i|
|00000650| 6e 73 74 72 75 63 74 69 | 6f 6e 0d 0a 73 6f 20 74 |nstructi|on..so t|
|00000660| 68 61 74 20 69 74 20 63 | 61 6e 27 74 20 62 65 20 |hat it c|an't be |
|00000670| 69 6e 74 65 72 72 75 70 | 74 65 64 3c 41 20 4e 41 |interrup|ted<A NA|
|00000680| 4d 45 3d 22 74 65 78 32 | 68 74 6d 6c 35 22 20 48 |ME="tex2|html5" H|
|00000690| 52 45 46 3d 22 66 6f 6f | 74 6e 6f 64 65 5f 6d 6e |REF="foo|tnode_mn|
|000006a0| 2e 68 74 6d 6c 23 66 6f | 6f 74 34 32 22 20 54 41 |.html#fo|ot42" TA|
|000006b0| 52 47 45 54 3d 22 66 6f | 6f 74 65 72 22 3e 3c 53 |RGET="fo|oter"><S|
|000006c0| 55 50 3e 34 3c 2f 53 55 | 50 3e 3c 2f 41 3e 2e 20 |UP>4</SU|P></A>. |
|000006d0| 20 49 66 20 28 61 6e 64 | 20 6f 6e 6c 79 20 69 66 | If (and| only if|
|000006e0| 0d 0a 74 68 65 20 62 69 | 74 29 20 77 61 73 20 61 |..the bi|t) was a|
|000006f0| 6c 72 65 61 64 79 20 73 | 65 74 2c 20 74 68 65 6e |lready s|et, then|
|00000700| 20 74 68 65 20 70 72 6f | 63 65 73 73 6f 72 20 77 | the pro|cessor w|
|00000710| 61 69 74 73 20 75 6e 74 | 69 6c 20 69 74 20 69 73 |aits unt|il it is|
|00000720| 0d 0a 63 6c 65 61 72 65 | 64 2e 20 20 28 54 68 65 |..cleare|d. (The|
|00000730| 20 62 69 74 20 73 69 67 | 6e 69 66 69 65 73 20 74 | bit sig|nifies t|
|00000740| 68 61 74 20 74 68 65 20 | 64 61 74 61 20 74 68 65 |hat the |data the|
|00000750| 20 73 65 6d 61 70 68 6f | 72 65 20 72 65 70 72 65 | semapho|re repre|
|00000760| 73 65 6e 74 73 20 69 73 | 0d 0a 69 6e 20 75 73 65 |sents is|..in use|
|00000770| 2e 29 20 20 4f 75 74 20 | 6f 66 20 63 6f 75 72 74 |.) Out |of court|
|00000780| 65 73 79 2c 20 61 20 70 | 72 6f 63 65 73 73 6f 72 |esy, a p|rocessor|
|00000790| 20 6d 75 73 74 20 6c 69 | 6b 65 77 69 73 65 20 63 | must li|kewise c|
|000007a0| 6c 65 61 72 20 74 68 65 | 20 62 69 74 0d 0a 77 68 |lear the| bit..wh|
|000007b0| 65 6e 20 69 74 20 69 73 | 20 74 68 72 6f 75 67 68 |en it is| through|
|000007c0| 2c 20 74 6f 20 3c 42 3e | 72 65 6c 65 61 73 65 3c |, to <B>|release<|
|000007d0| 2f 42 3e 20 74 68 65 20 | 73 65 6d 61 70 68 6f 72 |/B> the |semaphor|
|000007e0| 65 20 61 6e 64 20 3c 42 | 3e 73 69 67 6e 61 6c 3c |e and <B|>signal<|
|000007f0| 2f 42 3e 0d 0a 61 6e 79 | 20 77 61 69 74 69 6e 67 |/B>..any| waiting|
|00000800| 20 70 72 6f 63 65 73 73 | 6f 72 73 2e 0a 0a 3c 50 | process|ors...<P|
|00000810| 3e 0a 53 65 6d 61 70 68 | 6f 72 65 73 20 70 72 6f |>.Semaph|ores pro|
|00000820| 76 69 64 65 20 74 68 65 | 20 6e 65 63 65 73 73 61 |vide the| necessa|
|00000830| 72 79 20 70 72 6f 63 65 | 73 73 6f 72 20 73 79 6e |ry proce|ssor syn|
|00000840| 63 68 72 6f 6e 69 7a 61 | 74 69 6f 6e 20 62 75 74 |chroniza|tion but|
|00000850| 20 61 72 65 0d 0a 66 61 | 69 72 6c 79 20 70 72 69 | are..fa|irly pri|
|00000860| 6d 69 74 69 76 65 2e 20 | 20 57 69 74 68 20 74 68 |mitive. | With th|
|00000870| 65 6d 2c 20 68 69 67 68 | 65 72 2d 6c 65 76 65 6c |em, high|er-level|
|00000880| 20 63 6f 6e 74 72 6f 6c | 20 73 74 72 75 63 74 75 | control| structu|
|00000890| 72 65 73 20 62 65 0d 0a | 62 75 69 6c 74 2e 20 20 |res be..|built. |
|000008a0| 54 68 65 20 3c 42 3e 6d | 6f 6e 69 74 6f 72 3c 2f |The <B>m|onitor</|
|000008b0| 42 3e 2c 20 66 6f 72 20 | 65 78 61 6d 70 6c 65 2c |B>, for |example,|
|000008c0| 20 6d 6f 6e 69 74 6f 72 | 73 20 64 61 74 61 20 62 | monitor|s data b|
|000008d0| 79 20 6c 69 6d 69 74 69 | 6e 67 20 69 74 73 0d 0a |y limiti|ng its..|
|000008e0| 61 63 63 65 73 73 20 74 | 6f 20 61 20 73 65 74 20 |access t|o a set |
|000008f0| 6f 66 20 70 72 6f 63 65 | 64 75 72 65 73 2c 20 6f |of proce|dures, o|
|00000900| 6e 6c 79 20 6f 6e 65 20 | 6f 66 20 77 68 69 63 68 |nly one |of which|
|00000910| 20 63 61 6e 20 72 75 6e | 20 61 74 20 61 6e 79 20 | can run| at any |
|00000920| 67 69 76 65 6e 0d 0a 74 | 69 6d 65 2e 0a 0a 3c 50 |given..t|ime...<P|
|00000930| 3e 0a 49 6e 74 65 72 72 | 75 70 74 73 20 61 6e 64 |>.Interr|upts and|
|00000940| 20 70 6f 6c 6c 69 6e 67 | 2c 20 6f 6e 20 74 68 65 | polling|, on the|
|00000950| 20 6f 74 68 65 72 20 68 | 61 6e 64 2c 20 61 6c 6c | other h|and, all|
|00000960| 6f 77 20 61 20 70 72 6f | 63 65 73 73 6f 72 20 74 |ow a pro|cessor t|
|00000970| 6f 0d 0a 73 79 6e 63 68 | 72 6f 6e 69 7a 65 20 69 |o..synch|ronize i|
|00000980| 74 73 65 6c 66 20 77 69 | 74 68 20 69 74 73 20 65 |tself wi|th its e|
|00000990| 78 74 65 72 6e 61 6c 20 | 68 61 72 64 77 61 72 65 |xternal |hardware|
|000009a0| 20 64 65 76 69 63 65 73 | 2e 20 20 54 6f 20 73 79 | devices|. To sy|
|000009b0| 6e 63 68 72 6f 6e 69 7a | 65 2c 0d 0a 61 20 70 72 |nchroniz|e,..a pr|
|000009c0| 6f 63 65 73 73 6f 72 20 | 6d 61 79 20 70 6f 6c 6c |ocessor |may poll|
|000009d0| 20 69 74 73 20 64 65 76 | 69 63 65 73 2c 20 77 61 | its dev|ices, wa|
|000009e0| 69 74 69 6e 67 20 66 6f | 72 20 74 68 65 6d 20 74 |iting fo|r them t|
|000009f0| 6f 20 72 65 61 63 68 20 | 61 20 63 65 72 74 61 69 |o reach |a certai|
|00000a00| 6e 0d 0a 73 74 61 74 65 | 20 28 61 73 20 60 60 72 |n..state| (as ``r|
|00000a10| 65 61 64 79 20 74 6f 20 | 72 65 63 65 69 76 65 20 |eady to |receive |
|00000a20| 64 61 74 61 27 27 29 2e | 20 20 54 68 65 20 61 64 |data'').| The ad|
|00000a30| 76 61 6e 74 61 67 65 20 | 6f 66 20 70 6f 6c 6c 69 |vantage |of polli|
|00000a40| 6e 67 20 69 73 0d 0a 74 | 68 61 74 20 74 68 65 0d |ng is..t|hat the.|
|00000a50| 0a 70 72 6f 63 65 73 73 | 6f 72 20 6d 61 79 20 77 |.process|or may w|
|00000a60| 61 69 74 20 66 6f 72 20 | 61 6e 79 20 73 65 74 20 |ait for |any set |
|00000a70| 6f 66 20 63 6f 6e 64 69 | 74 69 6f 6e 73 20 6f 66 |of condi|tions of|
|00000a80| 20 69 74 73 20 63 68 6f | 6f 73 69 6e 67 2e 20 20 | its cho|osing. |
|00000a90| 54 68 65 0d 0a 64 69 73 | 61 64 76 61 6e 74 61 67 |The..dis|advantag|
|00000aa0| 65 2c 20 6f 66 20 63 6f | 75 72 73 65 2c 20 69 73 |e, of co|urse, is|
|00000ab0| 20 74 68 65 20 70 72 6f | 63 65 73 73 6f 72 20 6d | the pro|cessor m|
|00000ac0| 61 79 20 77 61 73 74 65 | 20 61 20 6c 6f 74 20 6f |ay waste| a lot o|
|00000ad0| 66 20 74 69 6d 65 0d 0a | 70 6f 6c 6c 69 6e 67 2c |f time..|polling,|
|00000ae0| 20 61 6e 64 20 6d 75 73 | 74 20 72 65 6d 65 6d 62 | and mus|t rememb|
|00000af0| 65 72 20 74 6f 20 70 6f | 6c 6c 20 61 6d 69 64 20 |er to po|ll amid |
|00000b00| 69 73 20 72 65 67 75 6c | 61 72 20 70 72 6f 63 65 |is regul|ar proce|
|00000b10| 73 73 69 6e 67 2e 20 20 | 46 6f 72 0d 0a 74 68 69 |ssing. |For..thi|
|00000b20| 73 20 72 65 61 73 6f 6e | 2c 20 6d 6f 73 74 20 70 |s reason|, most p|
|00000b30| 72 6f 63 65 73 73 6f 72 | 73 20 68 61 76 65 20 62 |rocessor|s have b|
|00000b40| 75 69 6c 74 20 69 6e 74 | 6f 20 74 68 65 6d 20 63 |uilt int|o them c|
|00000b50| 69 72 63 75 69 74 72 79 | 20 66 6f 72 0d 0a 61 75 |ircuitry| for..au|
|00000b60| 74 6f 6d 61 74 69 63 61 | 6c 6c 79 20 70 6f 6c 6c |tomatica|lly poll|
|00000b70| 69 6e 67 20 61 20 73 65 | 74 20 6f 66 20 68 61 72 |ing a se|t of har|
|00000b80| 64 77 61 72 65 20 69 6e | 74 65 72 72 75 70 74 73 |dware in|terrupts|
|00000b90| 20 62 65 74 77 65 65 6e | 20 65 61 63 68 20 6f 66 | between| each of|
|00000ba0| 0d 0a 74 68 65 69 72 20 | 69 6e 73 74 72 75 63 74 |..their |instruct|
|00000bb0| 69 6f 6e 73 2e 20 20 57 | 68 65 6e 20 61 6e 20 69 |ions. W|hen an i|
|00000bc0| 6e 74 65 72 72 75 70 74 | 20 69 73 20 73 69 67 6e |nterrupt| is sign|
|00000bd0| 61 6c 65 64 2c 20 74 68 | 65 20 63 75 72 72 65 6e |aled, th|e curren|
|00000be0| 74 0d 0a 70 72 6f 63 65 | 73 73 20 69 73 20 3c 45 |t..proce|ss is <E|
|00000bf0| 4d 3e 69 6e 74 65 72 72 | 75 70 74 65 64 3c 2f 45 |M>interr|upted</E|
|00000c00| 4d 3e 20 61 6e 64 20 61 | 6e 20 3c 42 3e 69 6e 74 |M> and a|n <B>int|
|00000c10| 65 72 72 75 70 74 20 68 | 61 6e 64 6c 65 72 3c 2f |errupt h|andler</|
|00000c20| 42 3e 20 72 6f 75 74 69 | 6e 65 0d 0a 69 73 20 72 |B> routi|ne..is r|
|00000c30| 75 6e 20 74 6f 20 68 61 | 6e 64 6c 65 20 74 68 65 |un to ha|ndle the|
|00000c40| 20 69 6e 74 65 72 72 75 | 70 74 2e 20 20 43 6f 6d | interru|pt. Com|
|00000c50| 70 6c 69 63 61 74 69 6f | 6e 73 20 73 65 74 20 69 |plicatio|ns set i|
|00000c60| 6e 20 77 68 65 6e 20 74 | 68 65 20 0d 0a 69 6e 74 |n when t|he ..int|
|00000c70| 65 72 72 75 70 74 20 68 | 61 6e 64 6c 65 72 20 69 |errupt h|andler i|
|00000c80| 74 73 65 6c 66 20 69 73 | 20 69 6e 74 65 72 72 75 |tself is| interru|
|00000c90| 70 74 65 64 2c 20 61 6e | 64 20 6d 6f 73 74 20 70 |pted, an|d most p|
|00000ca0| 72 6f 63 65 73 73 6f 72 | 73 20 61 6c 6c 6f 77 0d |rocessor|s allow.|
|00000cb0| 0a 69 6e 74 65 72 72 75 | 70 74 73 20 74 6f 20 62 |.interru|pts to b|
|00000cc0| 65 20 64 69 73 61 62 6c | 65 64 20 6f 72 20 70 72 |e disabl|ed or pr|
|00000cd0| 69 6f 72 69 74 69 7a 65 | 64 2e 0a 0a 3c 50 3e 0a |ioritize|d...<P>.|
|00000ce0| 0a 3c 44 49 56 20 63 6c | 61 73 73 3d 22 43 45 4e |.<DIV cl|ass="CEN|
|00000cf0| 54 45 52 22 3e 3c 41 20 | 49 44 3d 22 34 39 22 3e |TER"><A |ID="49">|
|00000d00| 3c 2f 41 3e 0a 3c 54 41 | 42 4c 45 3e 0a 3c 43 41 |</A>.<TA|BLE>.<CA|
|00000d10| 50 54 49 4f 4e 20 63 6c | 61 73 73 3d 22 42 4f 54 |PTION cl|ass="BOT|
|00000d20| 54 4f 4d 22 3e 3c 53 54 | 52 4f 4e 47 3e 46 69 67 |TOM"><ST|RONG>Fig|
|00000d30| 75 72 65 3a 3c 2f 53 54 | 52 4f 4e 47 3e 0a 49 6e |ure:</ST|RONG>.In|
|00000d40| 74 65 72 6e 61 6c 20 61 | 6e 64 20 45 78 74 65 72 |ternal a|nd Exter|
|00000d50| 6e 61 6c 20 50 72 6f 63 | 65 73 73 6f 72 20 53 79 |nal Proc|essor Sy|
|00000d60| 6e 63 72 6f 6e 69 7a 61 | 74 69 6f 6e 20 44 65 76 |ncroniza|tion Dev|
|00000d70| 69 63 65 73 3c 2f 43 41 | 50 54 49 4f 4e 3e 0a 3c |ices</CA|PTION>.<|
|00000d80| 54 52 3e 3c 54 44 3e 3c | 49 4d 47 0a 20 53 54 59 |TR><TD><|IMG. STY|
|00000d90| 4c 45 3d 22 68 65 69 67 | 68 74 3a 20 33 31 34 2e |LE="heig|ht: 314.|
|00000da0| 30 30 65 78 3b 20 22 20 | 53 52 43 3d 22 69 6d 67 |00ex; " |SRC="img|
|00000db0| 32 2e 70 6e 67 22 0a 20 | 41 4c 54 3d 22 5c 62 65 |2.png". |ALT="\be|
|00000dc0| 67 69 6e 7b 66 69 67 75 | 72 65 7d 0a 5c 62 65 67 |gin{figu|re}.\beg|
|00000dd0| 69 6e 7b 76 65 72 62 61 | 74 69 6d 7d 0a 45 58 54 |in{verba|tim}.EXT|
|00000de0| 45 52 4e 41 4c 20 48 41 | 52 44 57 41 52 45 0a 2f |ERNAL HA|RDWARE./|
|00000df0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 2d 2d 2d |========|=====---|
|00000e00| 2d 2d 2d 2e 2e 2e 0a 2e | 2e 2e 3d 3d 3d 3d 3d 3d |---.....|..======|
|00000e10| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000e20| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000e30| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 2f 5c 65 |========|=====/\e|
|00000e40| 6e 64 7b 76 65 72 62 61 | 74 69 6d 7d 0a 5c 65 6e |nd{verba|tim}.\en|
|00000e50| 64 7b 66 69 67 75 72 65 | 7d 22 3e 3c 2f 54 44 3e |d{figure|}"></TD>|
|00000e60| 3c 2f 54 52 3e 0a 3c 2f | 54 41 42 4c 45 3e 0a 3c |</TR>.</|TABLE>.<|
|00000e70| 2f 44 49 56 3e 0a 0a 3c | 50 3e 0a 41 73 20 73 65 |/DIV>..<|P>.As se|
|00000e80| 6d 61 70 68 6f 72 65 73 | 20 61 72 65 20 73 79 73 |maphores| are sys|
|00000e90| 74 65 6d 61 74 69 63 61 | 6c 6c 79 20 63 6c 61 69 |tematica|lly clai|
|00000ea0| 6d 65 64 20 61 6e 64 20 | 72 65 6c 65 61 73 65 64 |med and |released|
|00000eb0| 2c 20 73 6f 20 61 72 65 | 0d 0a 69 6e 74 65 72 72 |, so are|..interr|
|00000ec0| 75 70 74 73 20 64 69 73 | 61 62 6c 65 64 20 61 6e |upts dis|abled an|
|00000ed0| 64 20 65 6e 61 62 6c 65 | 64 2e 20 20 57 68 65 6e |d enable|d. When|
|00000ee0| 20 61 63 63 65 73 73 69 | 6e 67 20 64 61 74 61 2c | accessi|ng data,|
|00000ef0| 20 61 20 70 72 6f 63 65 | 73 73 20 6d 75 73 74 0d | a proce|ss must.|
|00000f00| 0a 64 69 73 61 62 6c 65 | 20 61 6c 6c 20 69 6e 74 |.disable| all int|
|00000f10| 65 72 72 75 70 74 73 20 | 77 68 69 63 68 20 6d 61 |errupts |which ma|
|00000f20| 79 20 61 6c 73 6f 20 6d | 6f 64 69 66 79 20 74 68 |y also m|odify th|
|00000f30| 65 20 64 61 74 61 2e 20 | 20 46 6f 72 20 74 68 69 |e data. | For thi|
|00000f40| 73 0d 0a 72 65 61 73 6f | 6e 2c 20 79 6f 75 27 6c |s..reaso|n, you'l|
|00000f50| 6c 20 74 79 70 69 63 61 | 6c 6c 79 2c 20 79 6f 75 |l typica|lly, you|
|00000f60| 27 6c 6c 20 74 79 70 69 | 63 61 6c 6c 79 20 68 65 |'ll typi|cally he|
|00000f70| 61 72 20 74 68 65 20 62 | 75 7a 7a 20 77 6f 72 64 |ar the b|uzz word|
|00000f80| 73 3a 0d 0a 3c 42 3e 6e | 6f 6e 2d 70 72 65 2d 65 |s:..<B>n|on-pre-e|
|00000f90| 6d 70 74 69 76 65 3c 2f | 42 3e 20 63 6f 64 65 20 |mptive</|B> code |
|00000fa0| 28 6e 6f 74 20 69 6e 74 | 65 72 72 75 70 74 61 62 |(not int|erruptab|
|00000fb0| 6c 65 20 77 68 69 6c 65 | 20 65 78 65 63 75 74 69 |le while| executi|
|00000fc0| 6e 67 29 20 61 6e 64 0d | 0a 3c 42 3e 6e 6f 6e 2d |ng) and.|.<B>non-|
|00000fd0| 72 65 2d 65 6e 74 72 61 | 6e 74 3c 2f 42 3e 20 66 |re-entra|nt</B> f|
|00000fe0| 75 6e 63 74 69 6f 6e 73 | 20 28 6e 6f 74 20 72 65 |unctions| (not re|
|00000ff0| 63 61 6c 6c 61 62 6c 65 | 20 77 68 69 6c 65 20 65 |callable| while e|
|00001000| 76 61 6c 75 61 74 69 6e | 67 29 2e 0a 0a 3c 50 3e |valuatin|g)...<P>|
|00001010| 0a 0a 3c 48 52 3e 0a 0a | 3c 2f 42 4f 44 59 3e 0a |..<HR>..|</BODY>.|
|00001020| 3c 2f 48 54 4d 4c 3e 0a | |</HTML>.| |
+--------+-------------------------+-------------------------+--------+--------+