


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



CS414: Operating Systems
CS414: Operating Systems
Sun Tues Thurs (^) Fri
30 1
Deadlock Memory management PA#5 out
Memory management Virtual memory
No class – marty at conference
Virtual memory 6 8
13 15
(^20 ) protection, security PA#6 due, PA#7 out 27 29
protection, security
4
protection, security
File systems
File sys, I/O sys
File sys I/O sys 9 No class – marty at conference I/O sys,Mass-storage PA#5 due, PA#6 out
No class – Thanksgiving
14
Final exam 10:00-noon
6
Wrap-up PA#7 due
protection, security
protection, security 30
CS414: Operating Systems
1. What is the efficiency of the Virtual Machine as
compared to the physical machine on the test program?
2. What is the complexity of your algorithm? O(1)? O(n)?
Worse than O(n)?
3. What is the (measured) overhead of your approach?
What’s your experimental design to determine this measured overhead?
4. What is the accuracy of your approach /
implementation?
CS414: Operating Systems
CS414: Operating Systems
A directed edge from a thread to a resource Ti Rj indicates that Ti has requested that resource, but has not yet acquired it. A directed edge from a resource to a thread Rj Ti indicates that the OS has allocated Rj to Ti.
CS414: Operating Systems
safe
deadlock unsafe
CS414: Operating Systems
Max need
In use Could want
CS414: Operating Systems
Max need
In use Could want
CS414: Operating Systems
Deadlock Detection
Using a Resource Allocation Graph
A RA graph is reduced by thread Ti (where Ti is not blocked) by removing all edges to and from Ti. A RA graph is irreducible if it cannot be reduced by any thread A RA graph is completely reducible if there exists a sequence of reductions that deletes all edges
CS414: Operating Systems
T 1 T 3 R 2 T 4
R 1 T 2
T 1 T 3 R 2 T 4
T 1 T 3 R 2 T 4
T 1 T 3 R 2 T 4
T 1 T 3 R 2 T 4
R 1 T 2
R 1 T 2 R 1 T 2
R 1 T 2
reduction by T
reduction by T
reduction by T
by T
reduction
CS414: Operating Systems
CS414: Operating Systems
CS414: Operating Systems
CS414: Operating Systems
CS414: Operating Systems
executable starts out on disk
CS414: Operating Systems
Mapping the Address Space to Primary Memory
CS414: Operating Systems
CS414: Operating Systems