1 <!DOCTYPE HTML PUBLIC
"-//IETF//DTD HTML 2.0//EN">
4 <TITLE>80386 Programmer's Reference Manual -- Chapter
07</TITLE>
8 <B>up:
</B> <A HREF=
"toc.htm">
9 Table of Contents
</A><BR>
11 <A HREF=
"s06_05.htm">6.5 Combining Page and Segment Protection
</A><BR>
12 <B>next:
</B> <A HREF=
"s07_01.htm">7.1 Task State Segment
</A>
16 <H1>Chapter
7 Multitasking
</H1>
18 To provide efficient, protected multitasking, the
80386 employs several
19 special data structures. It does not, however, use special instructions to
20 control multitasking; instead, it interprets ordinary control-transfer
21 instructions differently when they refer to the special data structures. The
22 registers and data structures that support multitasking are:
24 <LI>Task state segment
25 <LI>Task state segment descriptor
27 <LI>Task gate descriptor
29 With these structures the
80386 can rapidly switch execution from one task
30 to another, saving the context of the original task so that the task can be
31 restarted later. In addition to the simple task switch, the
80386 offers two
32 other task-management features:
34 <LI>Interrupts and exceptions can cause task switches (if needed in the
35 system design). The processor not only switches automatically to the
36 task that handles the interrupt or exception, but it automatically
37 switches back to the interrupted task when the interrupt or exception
38 has been serviced. Interrupt tasks may interrupt lower-priority
39 interrupt tasks to any depth.
41 <LI>With each switch to another task, the
80386 can also switch to
42 another LDT and to another page directory. Thus each task can have a
43 different logical-to-linear mapping and a different linear-to-physical
44 mapping. This is yet another protection feature, because tasks can be
45 isolated and prevented from interfering with one another.
48 <A HREF=
"s07_01.htm">7.1 Task State Segment
</A><BR>
49 <A HREF=
"s07_02.htm">7.2 TSS Descriptor
</A><BR>
50 <A HREF=
"s07_03.htm">7.3 Task Register
</A><BR>
51 <A HREF=
"s07_04.htm">7.4 Task Gate Descriptor
</A><BR>
52 <A HREF=
"s07_05.htm">7.5 Task Switching
</A><BR>
53 <A HREF=
"s07_06.htm">7.6 Task Linking
</A><BR>
54 <A HREF=
"s07_07.htm">7.7 Task Address Space
</A>
58 <B>up:
</B> <A HREF=
"toc.htm">
59 Table of Contents
</A><BR>
61 <A HREF=
"s06_05.htm">6.5 Combining Page and Segment Protection
</A><BR>
62 <B>next:
</B> <A HREF=
"s07_01.htm">7.1 Task State Segment
</A>