Home
Explore
Exams
Search for anything
Search for anything
Login
Get started
Home
cps 590 chapt 6
Studied by 0 people
0.0
(0)
Add a rating
View linked note
Learn
A personalized and smart learning plan
Practice Test
Take a test on your terms and definitions
Spaced Repetition
Scientifically backed study method
Matching Game
How quick can you match all your cards?
Flashcards
Study terms and definitions
1 / 28
There's no tags or description
Looks like no one added any tags here yet for you.
29 Terms
View all (29)
Star these 29
1
Deadlock
A permanent blocking of a set of processes that either compete for system resources or communicate with each other.
New cards
2
Necessary Conditions for Deadlock
The four necessary conditions are: Mutual Exclusion, Hold and Wait, No Preemption, Circular Wait.
New cards
3
Resource Categories
Two categories: Reusable Resources (not depleted) and Consumable Resources (created and destroyed by processes).
New cards
4
Resource Allocation Graph
A directed graph that shows resource allocation and requests between processes and resources.
New cards
5
Deadlock Prevention
Methods to prevent deadlock by eliminating one of the necessary conditions.
New cards
6
Deadlock Avoidance
Dynamically analyzes resource requests to keep the system in a safe state.
New cards
7
Banker’s Algorithm
A deadlock avoidance strategy that simulates resource allocation before granting requests.
New cards
8
Safe State
A system state where at least one sequence of resource allocations allows all processes to complete without deadlock.
New cards
9
Deadlock Detection
Periodically checks for cycles in the resource allocation graph to find deadlocked processes.
New cards
10
Recovery from Deadlock
Main strategies include aborting deadlocked processes, rolling back processes, preempting resources, or killing processes incrementally.
New cards
11
Starvation
A process is indefinitely delayed due to other processes always being given priority for resources.
New cards
12
Dining Philosophers Problem
Illustrates issues of mutual exclusion, deadlock, and starvation in concurrent systems.
New cards
13
UNIX Concurrency Mechanisms
Includes pipes, messages, shared memory, signals, and semaphores for interprocess communication (IPC).
New cards
14
Real-Time Signals in Linux
RT signals differ by priority order, queuing, and can pass values alongside signals.
New cards
15
Spinlocks
Locks that cause a thread to wait in a loop while checking availability; effective for short critical sections.
New cards
16
Atomic Operations
Operations executed without interruption, crucial for preventing race conditions.
New cards
17
Memory Barriers
Instructions that enforce the order of memory operations for correct synchronization.
New cards
18
RCU (Read-Copy-Update)
A synchronization mechanism allowing multiple readers and one writer to access shared data concurrently.
New cards
19
Priority Inversion
When a lower-priority process holds a resource needed by a higher-priority process, causing the latter to wait.
New cards
20
Deadlock vs. Livelock
Deadlock: permanently blocked processes; Livelock: processes constantly changing states without progress.
New cards
21
Deadlock Prevention: No Preemption
Allow resources to be forcibly taken from a process to avoid deadlock.
New cards
22
Deadlock Prevention: Circular Wait
Impose a linear ordering of resource requests to prevent circular wait.
New cards
23
Deadlock Detection Algorithm
Steps to identify deadlocked processes by marking unmarked processes and checking resource availability.
New cards
24
Deadlock Recovery: Process Termination
Approaches include aborting all deadlocked processes or doing so incrementally.
New cards
25
Deadlock Recovery: Resource Preemption
Forcibly taking resources from processes to break deadlocks.
New cards
26
Deadlock in Real-World Systems
Example includes traffic deadlocks at intersections; solutions involve traffic management rules.
New cards
27
Deadlock in Databases
Handled by periodic checks for cycles in the wait-for graph and rolling back transactions to recover.
New cards
28
Deadlock in Distributed Systems
Challenges include lacking global state information and communication delays impacting detection.
New cards
29
Summary of Chapter 6
Key takeaways include deadlock definitions, necessary conditions, strategies, and real-world implications.
New cards