Dec2013 Operating System
Dec2013 Operating System
___________________
Q.1 Choose the correct or the best alternative in the following: (2 × 10)
b. Name the nonlinear data structure which permits allocation and deallocation of
entries in a random order?
f. The ____________________ time of a user job is the time since its submission
to the time its results become available to the user.
(A) 4, 3, 1, 2, 5
(B) 4, 3, 5, 2, 1
(C) 3, 2, 1, 4, 5
(D) 3, 4, 2, 5, 1
PART A
Answer at least TWO questions. Each question carries 16 marks.
Q.2 a. What is an operating system? Discuss the various functions of operating system.
(8)
c. Give the algorithm for deadlock detection. Also mention the inputs and data
structures used in algorithm. (6)
Q.4 a. Give a solution for reader-writers problem using conditional critical regions.
(6)
b. What is a semaphore? Explain binary semaphore with the help of an example.
(4)
c. Discuss the following:
(i) FS Actions at Open
(ii) FS Actions at Close (3×2)
Q.5 a. Discuss the two approaches used to identify and reuse free memory areas in a
heap? (7)
b. Describe the First fit, Best fit and Worst fit allocation algorithms? 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? (3+6)
PART B
Answer at least TWO questions. Each question carries 16 marks.
Q.6 a. With the help of suitable example, explain forward reference? (5)
b. Define Intermediate Representation? What are the desirable properties of
Intermediate Representation? (2+3)
c. Explain the two approaches of collision handling methods? (6)
Q.7 a. Define the following:
(i) Finite state automaton (FSA)
(ii) Deterministic finite state automaton (DFA) (2×2)
b. Discuss LL(1) parser? Show the parser table for an LL(1) parser for Grammar
given below.
E ::= T E′
E′ ::= +T E′ | ε
T ::= V T′
T′ ::= * V T′ | ε
V ::= < id > (6)
b. Discuss the different data structures used during Pass I of the Assembler. (8)
Q.9 a. Discuss the issues involved that contributes to the semantics gap between a
programming language domain and an execution domain? (6)
b. What are the features used by compiler during implementing function calls?
(4)
c. Compare and contrast the following:
(i) Static and Dynamic memory allocation
(ii) Call by value and Call by reference (3×2)