0% found this document useful (0 votes)
69 views9 pages

Cst206 Scheme 1

Uploaded by

Nayan Mohanan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
69 views9 pages

Cst206 Scheme 1

Uploaded by

Nayan Mohanan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

02000CST206062206

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

Physical memory size = 64 * 4KB = 2^18 B. Physical address has 18 bits.


Offset - depends upon page size. Hence 4KB = 2^12 B. So offset = 12 bits
1 mark each
9 The seek time is the time for the disk arm to move the heads to the cylinder 3
containing the desired sector. The rotational latency is the additional time for the
disk to rotate the desired sector to the disk head. The disk bandwidth is the total
number of bytes transferred, divided by the total time between the first request for
service and the completion of the last transfer.
1 mark each
10 3

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

b) Explain each scheduler – 2 marks each 8


14 a) 9

Process Arrival CPU Burst Priority


Time(ms) Time(ms)

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

3 marks each for correct chart and calculations


b) 5

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

Checking for the safe state : 4 Marks

Note : More than one safe sequence are there. Mark can be given to any safe
sequence.

State at time T0 is safe.


Request arrives : P1 <0,4,2,0>
1. Check whether Request(P1) <= Need1. <0,4,2,0> <= <0 7 5 0> .
Request is valid.
2. Check whether Request(P1) <= Available. <0,4,2,0> <= <1 5 2 0>. Hence
can try to allocate.
3. Pretend to allocate resources and arrive at the new state.
State at time T1. (Pretend Resource is allocated)
Allocation (P1) : <1 0 0 0> + <0 4 2 0> = <1 4 2 0>
Need (P1) : <0 7 5 0> - <0 4 2 0> = < 0 3 3 0>
Available : <1 5 2 0> - <0 4 2 0> = < 1 1 0 0>

<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

19 a) Access methods - sequential , direct with explanations. 4


2 marks each
b) Linked allocation - 5 marks 10
Indexed allocation - 5 marks.
Explanations with required diagrams.
20 a) 3 marks each for explanation and answer. 9
FCFS: 100 -> 20->89 -> 130 ->45 -> 120 -> 180
Head movement : 410 cylinders

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

Three Marks can be given to any one method

b) Owner, Group, Universe 5


Explanation – 3 marks
Example - 2 marks
*********

Page 9 of 9

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy