-
Notifications
You must be signed in to change notification settings - Fork 0
/
threadSlidesSchema.xml
59 lines (50 loc) · 2.16 KB
/
threadSlidesSchema.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?xml version="1.0" encoding="UTF-8"?>
<!-- A SAMPLE set of slides -->
<slideshow
title="Slides on Java Multithreading"
date="February 1, 2005"
author="Lixin Tao"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="slideshow.xsd"
>
<!-- PROCESSING INSTRUCTION -->
<?my.presentation.Program QUERY="exec, tech, all"?>
<slide type="all">
<slide-title>Overview</slide-title>
<item>Why <em>Multithreading</em> is great</item>
<item><em>Windows</em> and <em>Unix</em> support multithreads</item>
<item><em>Java</em> supports multithread programming</item>
<item>For more information, please visit
<link target="http://java.sun.com"><b>Java</b> Home</link> and
<br/> <link target="http://www.boarland.com"/>
</item>
</slide>
<slide type="exec">
<slide-title>Why Multithreading is Important?</slide-title>
<item>CPU switching among threads is more efficient
<list type="ordered">
<item>Process generation is slow</item>
<item>Process context switching is slow</item>
<item>Thread is also called light process</item>
</list>
</item>
<item>Serving multiple clients concurrently</item>
<item>More reponsive user interface</item>
</slide>
<slide type="tech">
<slide-title>How does it Work</slide-title>
<item>All threads can run concurrently</item>
<item>CPU number < thread number</item>
<item>Thread synchronization</item>
<item><diagram><![CDATA[Thread State Diagram:
start [finish]
(New thread) -------> (Run) --------> (terminated)
/ | \
_________/ | \_________
| | |
wait | time|out | [CPU available]
| \/ |
(blocked)---->(Ready)--------->
]]></diagram></item>
</slide>
</slideshow>