Cst206 Scheme 1
Cst206 Scheme 1
Total Pages: 9
APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY
Scheme for Valuation/Answer Key
Scheme of evaluation (marks in brackets) and answers of problems/key
FOURTH SEMESTER B.TECH DEGREE(R,S) EXAMINATION JUNE 2022(2019
Scheme)
Course Code: CST206
Course Name: OPERATING SYSTEMS
Max. Marks: 100 Duration: 3 Hours
PART A
(Answer all questions; each question carries 3 marks) Marks
1 Bootstrap loader, located in ROM, can perform various tasks – run diagnostics to 3
determine the state of the system, initializes all aspects of the system, locate the
kernel in memory, loads it into memory and starts its execution.
2 Using dual mode of operations – user mode and kernel mode 3
3 3 child processes will be created and hence together with parent, it will print 3
Forked 4 times.
4 Blocking send. Non blocking send, Blocking receive, Non blocking receive 3
5 When several processes access and manipulate the same data concurrently and the 3
outcome of the execution depends on the particular order in which the access
takes place, is called a race condition.
Race condition definition/explanation- 1.5 marks
Example - 1.5 marks
6 Process termination , Resource preemption 3
Listing - 1 mark
explanation - 2 marks
7 If you know at compile time where the process will reside in memory, then 3
absolute code can be generated at compile time - compile time binding
If it is not known at compile time where the process will reside in memory, then
the compiler must generate relocatable code. In this case, final binding is delayed
until load time. - load time binding.
1.5 marks each
8 Logical memory size = 256 * 4KB = 2^20 B. Logical address has 20 bits.
Page 1 of 9
02000CST206062206
diagram - 1 mark
explanation - 2 marks
Note : As Directory structure is not mentioned explicitly in the syllabus, full credit
may be given if attempted
PART B
(Answer one full question from each module, each question carries 14 marks)
Module -1
11 a) System call explanation – 3 marks 7
Explaining system calls using APIs and system call interface – 4 marks
b) Micro-kernel architecture – diagram – 2 marks 7
Explanation – 4 marks
Communication – through message passing – 1 mark
12 a) Functions of OS – Process Management, Memory Management, Storage 12
Management, Protection and security
Each 3 marks
b) Increased throughput, Economy of scale, Increased reliability 2
Page 2 of 9
02000CST206062206
Module -2
13 a) Context switching explanation - 3 marks 6
Diagram and explanation – 3 marks
P0 0 4 3
P1 2 5 2
P2 3 1 1
P3 4 3 4
Page 3 of 9
02000CST206062206
Page 4 of 9
02000CST206062206
Diagram - 2 marks
Explanation - 3 marks
Module -3
15 a) Critical section - 1.5 marks 6
3 conditions and explanations - 4.5 marks
b) Deadlock detection - with cycle (single instance, multiple instance cases.) - 4 8
marks
Deadlock avoidance - draw claim edges and describe cycles (single instance case)
- 4 marks
Page 5 of 9
02000CST206062206
16 a) 5
Pseudocode - 3 marks
Deadlock and starvation possible with this code; - explanation 2 marks
b) 9
Page 6 of 9
02000CST206062206
Note : More than one safe sequence are there. Mark can be given to any safe
sequence.
<P0, P2, P3, P1, P4> is a safe sequence. Hence request can be granted.
Executing Resource request Algorithm and then checking for safe state : 5 marks
Module -4
Page 7 of 9
02000CST206062206
17 a) 9
3 marks each
b) Pure paging - results in internal fragmentation. 5
Pure segmentation - results in external fragmentation
with explanation.
2.5 marks each.
18 a) Virtual memory concept - 3 marks 6
Demand paging explanation - 3 marks
b) 8
Diagram - 3 marks
Explanation - TLB acts as cache, associative memory, address translation - 5
marks
Module -5
Page 8 of 9
02000CST206062206
SSTF: 100 -> 89 -> 120 -> 130 -> 180 -> 45 ->20
Head movement: 262 cylinders
CSCAN :
Method-1
If direction of head movement towards 199
100 → 120 → 130 → 180 → 199 → 0 → 20 → 45 → 89
Total Head movement= 387 Cylinders
Method-2
If direction of head movement towards 0
100 → 89 → 45 → 20 → 0 → 199 → 180 → 130 → 120
Total Head movement= 378 Cylinders
Page 9 of 9