The words you are searching are inside this book. To get more targeted content, please make full-text search by clicking here.

Microsoft Word - 1_AktivitiTutorial DFC2063

Discover the best professional documents and content resources in AnyFlip Document Base.
Search
Published by adrianaalia0404, 2022-12-13 10:10:36

Microsoft Word - 1_AktivitiTutorial DFC2063

Microsoft Word - 1_AktivitiTutorial DFC2063

DEPARTMENT OF INFORMATION AND COMMUNICATION TECHNOLOGY
COURSE WORK ASSESSMENT

CODE & COURSE : DFC10103 – OPERATING SYSTEM

PROGRAMME : DDT

TUTORIAL ACTIVITY : 4 (2.3.1 – 2.3.3)
CLO
: CLO 1 – explain the operating system environment, the
DURATION concept of memory, process and file management in

operating system. (C2, PLO1)

: 2 HOURS

TOPIC 2: MEMORY AND PROCESS MANAGEMENT

Instruction(s): Answer all questions.

Activity 4A

Activity Outcome: Describe the definition of Deadlock.

1. For a computer science example, consider two processes A and B that each want to print a
file currently on tape.
a. A has obtained ownership of the printer and will release it after printing one file.
b. B has obtained ownership of the tape drive and will release it after reading one file.
c. A tries to get ownership of the tape drive, but is told to wait for B to release it.
d. B tries to get ownership of the printer, but is told to wait for A to release the printer.
e. Draw the deadlock of two processes A and B.

2. Bingo! You already draw a deadlock diagram!

29 
 


3. Now, from the research of the Internet, write the simple and easy to understand the
definition of deadlock.
______________________________________________________________________
______________________________________________________________________
_____________________________________________________________________

Activity 4B

Activity Outcome: Describe four Deadlock Conditions

1. There are FOUR (4) Deadlock Conditions. Complete the following table with appropriate
answer to differentiate between each of them.

Deadlock Description Examples
Conditions

Mutual Exclusion

Hold and Wait

Circular Wait

No Pre-emption

30 
 


Activity 4C

Activity Outcome: Identify methods of Handling Deadlock

1. From research on the Internet, describe the methods to handle the deadlock when
occurs.

Deadlock Handling Description

Prevention and
avoidance of
deadlock

Allow deadlock,
detect deadlock and
recover deadlock

Ignore deadlock 31 
 


Click to View FlipBook Version