CACS251 Operating System

Operating System TU Board 2022 question paper

10 questionsSit this paper (timed)

Tribhuvan University

Bachelor of Computer Application

Semester 4 · TU Board 2022

Course Title: Operating System (CACS251)

Full Marks: 60Pass Marks: 24Time: 3 hours

Candidates are required to answer the question in their own words as far as possible.

Group B

Attempt any SIX question.(6 × 5 = 30)

  1. 2.

    What is an operating system? Is "Multitasking" operating system better than "Batch" operating system? Justify your answer.

    5
  2. 3.

    What is role of scheduler in operating system? Differentiate between short-term and long-term Scheduler.

    5
  3. 4.

    What do you mean by Race condition? Consider two concurrently running process PI with statement S1 and P2 with statement S2. Suppose we require that S2 be executed only after S1 has completed. For this synchronization need, write a semaphore solution.

    5
  4. 5.

    What are CPU scheduling criteria's? Consider below table of four processes under multi-level queue scheduling. Queue number denotes queue of the process. Priority of queue 1 is greater than queue 2. Queue 1 use Round Robin with time quantum t=2ms and queue 2 use FCFS. Draw Gantt chart to illustrate their execution and calculate average waiting and turnaround time also.

    5
  5. 6.

    What is thrashing? Explain three memory management requirements?

    5
  6. 7.

    Given five memory partition of 100KB, 500KB, 200KB, 300KB and 600KB (in order). How would the first fit, best fit and worst fit algorithm place processes of size 212KB, 417KB,112KB, and 426KB (in order) in fixed-size partition? Which algorithm makes the most efficient use of memory?

    5
  7. 8.

    When programmed I/O is suitable than other I/O handling techniques? Explain different type System Threat.

    5

Group C

Attempt any TWO questions(2 × 10 = 20)

  1. 9.

    Consider the following System:ProcessAllocationMaxAvailable[A,B,C,D][A,B,C,D][A,B,C,D]P00 0 1 10 0 1 21 5 2 0P11 0 0 01 7 5 0P21 3 5 42 3 5 6P30 6 3 20 6 5 2P40 0 1 40 6 5 6Answer the following questions using Banker's algorithm: a) What will be the contents of matrix need? b) Draw the safe sequence? c) If the request from P1 Arrives for (0, 4, 2, 0) can the request be granted immediately?

    10
  2. 10.

    How second chance page replacement algorithm differ from FIFO page replacement policy? Explain the concept of belay's anomaly with suitable example.

    10
  3. 11.

    What is clock synchronization? Explain how physical clock is synchronized by Cristian algorithm and logical clock is synchronized by Lamport's algorithm with suitable example.

    10

— The End —