Solutions to assignment no.2
Operating Systems and Architecture
COS3721
Semesters 2021
Computer Science Department,
School of Computing
This tutorial letter contains important information
about your module.
, Question 1
1.1 yes. When applying the four deadlock conditions a deadlock can still occur.
1.2
a. safe state<T4, T0, T1, T2, T3>
b. safe state <T2, T3, T4, T0, T1>
c. The state is unsafe as there is no need that is less than or equal to the available(work).
d. safe state <T3, T4, T0, T1, T2>
Question 2
2.1
a. Required relocation of the entire program space.
b. without requiring relocation of the programs address space.
2.2
a. page number = 20, offset = 725
b. page number = 118, offset = 525
c. page number = 237, offset = 12
d. page number = 16093, offset = 83
e. page number = 26614, offset = 451
2.3
a. 220 entries.
2. 217 entries or 128K entries.
Operating Systems and Architecture
COS3721
Semesters 2021
Computer Science Department,
School of Computing
This tutorial letter contains important information
about your module.
, Question 1
1.1 yes. When applying the four deadlock conditions a deadlock can still occur.
1.2
a. safe state<T4, T0, T1, T2, T3>
b. safe state <T2, T3, T4, T0, T1>
c. The state is unsafe as there is no need that is less than or equal to the available(work).
d. safe state <T3, T4, T0, T1, T2>
Question 2
2.1
a. Required relocation of the entire program space.
b. without requiring relocation of the programs address space.
2.2
a. page number = 20, offset = 725
b. page number = 118, offset = 525
c. page number = 237, offset = 12
d. page number = 16093, offset = 83
e. page number = 26614, offset = 451
2.3
a. 220 entries.
2. 217 entries or 128K entries.