Paper 5
Paper 5
Paper 5
___________
GUJARAT TECHNOLOGICAL UNIVERSITY
BE - SEMESTER–IV (NEW) - EXAMINATION – SUMMER 2018
Subject Code:2140702 Date:28/05/2018
Subject Name:Operating System
Time:10:30 AM to 01:00 PM Total Marks: 70
Instructions:
1. Attempt all questions.
2. Make suitable assumptions wherever necessary.
3. Figures to the right indicate full marks.
MARKS
Q.1 (a) Define following Terms: 03
Mutual Exclusion ,Thrashing , Thread
(b) Give the functions of following UNIX commands: 04
grep, cat, cmp, chmod
(c) What is Process? Draw Five State Process Model and Explain it. 07
Q.3 (a) List Deadlock Recovery Techniques and explain one of them. 03
(b) What is Monitor? Write Solution to Dining-Philosopher problem using 04
monitor.
(c) Explain concept of virtual memory and paging with example. 07
1
Q.4 (a) Explain Difference between Internal and External Fragmentation. 03
(b) Draw the block diagram for DMA. Write steps for DMA data transfer. 04
(c) Given six Partition of 300KB, 600KB, 350KB, 200KB, 750KB and 07
125KB(in order),how would the first-fit, best-fit and worst-fit algorithms
places processes of size 115 KB,500KB,358KB,200KB AND 375KB(in
order)?Which algorithm is efficient for the use of memory?
OR
Q.4 (a) Consider paging system with TLB, all page reference are found 75% 03
times the TLB, if 100ns are required for single memory reference, then
calculate the effective memory access time? (ignore TLB search time)
(b) Explain concept of Demand Paging in memory management. 04
(c) Consider the following page reference string: 07
1,2,3,4,5,3,4,1,6,7,8,7,8,9,7,8,9,5,4,5,4,2
With four Frames How many page faults would occur for the FIFO,
Optimal page replacement algorithms? which algorithm is efficient?
(assume all frames are initially empty)
*************