FIGURE 4 - PowerPoint PPT Presentation

1 / 28
About This Presentation
Title:

FIGURE 4

Description:

9/15/09. CHAPTER 4. 1. CIS 630. OPERATING SYSTEMS. CHAPTER 4. Morty ... wold = head(TQ)- wakeup; if (wnew wold) Set_Timer(tdel); insert(TQ, (p, tn, wnew) ... – PowerPoint PPT presentation

Number of Views:53
Avg rating:3.0/5.0
Slides: 29
Provided by: kwes5
Category:
Tags: figure | wold

less

Transcript and Presenter's Notes

Title: FIGURE 4


1
CIS 630 OPERATING SYSTEMS
CHAPTER 4 Morty Kwestel 2003
2
CHAPTER 4
  • Kernel
  • Queues
  • Resources
  • Implementation
  • Threads
  • Implementation

3
CHAPTER 4
  • Processes
  • Descriptors
  • Operations
  • Synchronization
  • Semaphores
  • Monitors
  • Clocks

4
CHAPTER 4
  • Communication
  • Message passing
  • Interrupts

5
FIGURE 4-1
? O/S Process for Login
?Parent
?Child
?Grandchild
Process Creation hierarchy
6
FIGURE 4-3(a)
Priority Queue
7
FIGURE 4-3(b c)
8
FIGURE 4-4
Threads within a Process
9
FIGURE 4-5
Structure of PCB
10
FIGURE 4-6
Process Status changes
11
Request
Request(resource) if (Free(resource)) Allo
cate(resource, self) else Block(self,
resource) Scheduler()
12
Release
Release(resource) Deallocate(resource,
self) if(process_blocked_on(resource,
process)) Allocate(resource, process)
Unblock((process, resource)
Scheduler()
13
Test Set
TS(R, X) R X // TEST R holds previous
value of X. X 0 // SET value of X is
always reset to 0. R is a CPU Register. X
is a location in Memory that will hold a Boolean
value.
14
Semaphore
wait(s) signal(s) if (s 1)
s s 0 else busy wait
15
Semaphore / TS
wait(s) do TS(R, s) while (!R) // busy
wait if R 0. signal(s)s 1
//where s X.
16
Monitor
wait(mutex) //body of procedure if(urgen
t_count) signal(urgent) else signal(mutex
)
17
Wait Condition
cond_count if (urgent_count)
signal(urgent) else signal(mutex) wait(cond
_X) cond_count--
18
Signal Condition
if (cond_count) urgent_count
signal(cond_X) wait(urgent)
urgent_count--
19
Timer
int delay_sem 0   Delay(tdel) Set_T
imer(tdel) wait(delay_sem) Time-Out()
signal(delay_sem)
20
Functions
tn Create_LTimer()   Destroy_Timer(tn)
Set_Timer(tn, tdel)
21
FIGURE 4-8
?Priority based
Insert
Timer Queue Absolute differences
22
Set Timer
Set_Ltimer(tn, tdel) wnew Get_Time()
tdel wold head(TQ)-gtwakeup if (wnew
lt wold) Set_Timer(tdel)
insert(TQ, (p, tn, wnew))
23
FIGURE 4-9
Timer Queue Relative difference
24
FIGURE 4-10a
m holds address of buffer
Send/Receive buffers Copying
25
FIGURE 4-10b
Send/Receive buffers Copying
26
FIGURE 4-10c
Send/Receive buffers Copying
27
FIGURE 4-11a
Basic interrupt
28
FIGURE 4-11b
Monitor interrupt
Write a Comment
User Comments (0)
About PowerShow.com