SVEN CASES OF DEADLOCKS / DEADLOCK MODELING AND MULTIPROCESSING CONFIGURATIONS

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/21

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

22 Terms

1
New cards

Deadlock

occur in operating systems when two or more processes are unable to proceed because each is waiting for the other to release resources. Here are seven specific cases of deadlocks:

2
New cards

Case 1: Deadlocks on File Request

When jobs request and hold files during execution, deadlocks can occur. Other programs requiring these files are put on hold until the deadlock is resolved.

3
New cards

Case 2: Deadlocks in Database

Deadlocks can arise when multiple processes lock database records.

4
New cards

Case 3: Deadlocks in Dedicated Device Allocation

Occurs when limited dedicated devices (e.g., printers, plotters) are allocated.

5
New cards

Case 4: Deadlocks in Multiple Device Allocation

Happens when several processes request and hold multiple devices, preventing each other from proceeding.

6
New cards

Case 5: Deadlocks in Spooling

In systems where devices like printers are spooled with temporary disk storage, deadlocks can arise if the spooling mechanism interferes with job requirements.

7
New cards

Case 6: Deadlocks in Network

A congested network can lead to deadlocks if protocols to control message flow are absent.

8
New cards

Case 7: Deadlocks in Disk Sharing

Deadlocks can occur when multiple processes access different areas of the same disk without control mechanisms.

9
New cards

Deadlock Modeling

is a method used to represent and analyze deadlocks in operating systems using directed graphs

10
New cards

HOLT

A computer scientist/programmer demonstrated how the four necessary conditions for deadlock can be modeled using directed graphs.

11
New cards

Resource Allocation Graphs

The ______________ help in visualizing deadlocks.

12
New cards

CIRCLES

Processes are represented as

13
New cards

SQUARES

Resources are represented as

14
New cards

An arc from a resource (square) to a process (circle)

indicates that the resource has been allocated to the process.

15
New cards

An arc from a process (circle) to a resource (square)

indicates that the process is requesting the resource and is in a waiting state.

16
New cards

FIGURE A

Holding a Resource

17
New cards

FIGURE B

Requesting a Resource

18
New cards

FIGURE C

Deadlock

19
New cards
  1. Master/Slave Multiprocessing Configuration

  2. Loosely Coupled Multiprocessing Configuration

  3. Symmetric Multiprocessing (SMP) Configuration

3 Typical Multiprocessing Configurations

20
New cards

Master/Slave Multiprocessing Configuration

  • Asymmetric architecture.

  • Master processor controls all system operations, including process management, 1/0 operations, and memory management.

  • Slave processors execute tasks assigned by the master but cannot control system resources independently.

21
New cards

Loosely Coupled Multiprocessing Configuration

  • Each processor has its own CPU, memory, and 1/0 devices.

  • Each processor runs an independent operating system.

  • Processors communicate and cooperate through interconnection networks.

  • Global tables track jobs allocated to each processor.

22
New cards

Symmetric Multiprocessing (SMP) Configuration

  • Decentralized processor scheduling

  • Single copy of the OS manages all processors.

  • Global process table stored in shared memory.

  • Each processor uses the same scheduling algorithm to select tasks.