-
Notifications
You must be signed in to change notification settings - Fork 13
/
Resource.html
79 lines (70 loc) · 2.19 KB
/
Resource.html
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<html>
<head>
<link href="style.css" rel="stylesheet" type="text/css"/>
<title>
Resources
</title>
</head>
<body>
<h1>
Resources
</h1>
<div style="text-align:center">
<p>
<img
src="https://upload.wikimedia.org/wikipedia/commons/thumb/f/fc/Laurentius_de_Voltolina_001.jpg/290px-Laurentius_de_Voltolina_001.jpg">
</p>
</div>
<p>
A resource is anything that must be acquired, used and released over the course of time. Resources are of two types:
<ul>
<li>
Preemptable: It is the type of resource which can be taken away from the process owning it with no ill effects
</li>
<li>
Nonpreemptable: It is the type of resource that cannot be taken away from its current owner without potentially causing failure.
</ul>
</p>
<p>
<br/>
In general deadlocks involve nonpreemptable resources. Potential deadlocks that involve preemptable resources can usually be resolved by reallocating the resources
from one process to another. <br/>
Sequence of events required to use a resource:
<ul>
<ul>
<li> Request the resource </li>
<li> Use the Resource </li>
<li> Release the resource </li>
</ul>
</ul>
</p>
<h3>
Resource Acquisition
</h3>
<h2>
Source Code
</h2>
<ul>
<li>
<a
href="https://github.com/gcallah/utils/blob/master/LectureTempl.html">
HTML
</a>
</ul>
<h2>
External Links
</h2>
<ul>
<li>
<a href="https://en.wikipedia.org/wiki/Lecture">
Lectures
</a>
</ul>
<h2>
Homework
</h2>
<ol>
<li>Study lectures!
</ol>
</body>
</html>