Final Flashcards
What does STS stand for
Short term scheduler
What does STS users care about
- Response Time
- Turnaround time
- Predictability
- Deadlines
What does STS systems care about
- Throughput
- CPU Utilization
- Fairness
- Priority
- Balancing Resources
What are two ways that STS processes decisions
– pre-emptive: a running process may be interrupted and moved from running to ready (timeslice interrupt)
– non pre-emptive: once a process is running, it continues until done, or blocked (for I/O
or OS service)
What polices can STS operate under
- First come, first served (FIFO)
- Round Robin
- Virtual Round Robin
- Shortest job first
- Shortest remaining time
What are the three types of message passing
- Blocking send, blocking recieve (good for tight sync)
- Non-Blocking send, blocking receive (generally most useful), good for client/server interactions
- Non-blocking send, non-blocking receive
What are two ways we identify sender and recevier in messaging?
Direct Addressing: Targeted, must know them.
Indirect addressing: Mailboxes, use common data structure
New class of scheduling for urgent processing
Real time scheduling. Usually these urgent processes are responding to events in the real world
Name the 7 layers in OSI
7 Application 6 Presentation 5 Session 4 Transport 3 Network 2 Data Link 1 Physical
What communicates on each layer of the OSI model?
Application: web applications Presentation: http Session: 80 Transport: TCP Network: IP/packets Data Link: Ethernet/frames Physical: Cat5
Real Time Scheduling must indicate timeliness, must have at least one of these
Deadlines:
Start time
End time
(rare it’s both)
Two types of real time scheduling deadlines
Hard real-time (must)
Soft real-time (should)
Real time system scheduling must by
preemptive and priority based
Real time scheduling must work in the following model for scheduling
Real time operating systems
What is deadlock
2 processes each waiting for the other to release a resource
-May be hardware or software
Why does deadlock occur?
Problem occurs when processes follow a request → use → release model of resource utilization
What is deadlock versus starvation
-Deadlock refers to the situation when
processes are stuck in circular waiting for the
resources.
-Starvation occurs when a process waits for
a resource indefinitely.
-Deadlock implies starvation but starvation
does not imply deadlock.
What are the conditions for deadlock
- Mutual exclusion (one process may use resource at a time)
- Hold and wait: (process hold allocated resources while waiting)
- No Pre-emption (no resource may be forcible taken)
- Circular wait (a closed chain of process where one holds what the other needs)