Section-A: Time: 2 Hours. Date of Examination
Section-A: Time: 2 Hours. Date of Examination
Section-A: Time: 2 Hours. Date of Examination
B. Tech.
ST-II Examination: EVEN SEMESTER 2015-16
SEMESTER: 4th BRANCH: COMPUTER SCIENCE & ENGINEERING SECTION: A, B, & C
Subject Name: Operating System
Time: 2 Hours. Date of Examination: 28th March 2016 Total Marks: 50
Note: Do as Directed. Missing data if any may be suitably assumed and mentioned. Symbols have
their usual meaning.
SECTION-A
Attempt all parts. All parts carry equal marks. [2x5=10]
SECTION-B
1. Explain the difference between internal and external fragmentation with suitable example.
2. Explain the necessary condition for deadlock.
3. Given memory partitions of 100K, 500K, 200K, 300K, and 600K (in order), how would each of the
First-fit, Best-fit, and Worst-fit algorithms place processes of 212K, 417K, 112K, and 426K (in
order)? Which algorithm makes the most efficient use of memory?
4. Consider a paging system with the page table stored in memory. If a memory reference takes 400 ns,
how long does a paged memory reference take? If we add associative registers, and 80 percent of all
page-table references are found in the associative registers, what is the effective memory reference
time? (Assume that finding a page-table entry in the associative registers(TLB) takes zero time, if
the entry is there.)
5. What is thread? Explain different types of thread models.
6. Explain the following:-
(a) page number (b) page offset (c) pages (d) frames (e) fragmentation
SECTION-C
Note: Attempt any two questions from this section. [10x2=20]
P1 1000 1750
P2 1354 2356
P3 0632 0652
P4 0014 0656
c. If a request from process P1 arrives for (0, 4, 2, 0), can the request be granted immediately?
2. Differentiate between logical address and physical address. Consider a logical address space of eight pages of
3. Write down the banker’s algorithm and resource request algorithm for calculating the safe sequence.
4. Explain the Following:-
(a) Recovery from deadlock.
(b) Paging with TLB.