Operating Systems 2075

Question Paper Details
Tribhuwan University
Institute of Science and Technology
2075
Bachelor Level / Fourth Semester / Science
Computer Science and Information Technology ( CSC259 )
( Operating Systems )
Full Marks: 60
Pass Marks: 24
Time: 3 hours
Candidates are required to give their answers in their own words as far as practicable.
The figures in the margin indicate full marks.

Section-A

Attempt any two questions:   (2x10=20)

Official Answer
AI Generated Answer

AI is thinking...

1.  Explain operating system as a resource manager and extended machine. Distinguish between Batch system and Time sharing systems.

10 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

                                                OR

What is real time operating system? List the types. "Operating system is broker between computer System and User". Justify the statement?

10 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

2. What is difference between Deadlock and Starvation? Consider the following four resources A, B, C and D with five processes and answer the questions:

                            Allocation                                 Max                                    Available

                    A        B        C        D             A              C       D                        B              D

        P0        0        0        1         2             0        0        1        2                  1        5        2        0

        P1        1        0        0        0              1        7        5        0

        P2        1        3        5        4              2        3        5        6

        P3        0        6        3        2              0        6        5        2

        P4        0        0        1        4              0        6        5        6

    a) Is the system in a safe state? Use Banker algorithm. If yes give the sequence.

    b) If a request from process from P1 arrives for (0, 4, 2, 0), can the request be granted immediately?


10 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

3.  Five batch jobs A through E, arrive at a computer center at almost same time. They have estimated running times of 10, 8, 4, 2, and 6. Their priorities are 3, 5, 2, 4 and 1 respectively with 5 being the highest priority. For each of the scheduling algorithms determine the average turn around time and waiting time.

    a) Round Robin (Quantum=2)

    b) Priority Scheduling

    c) SJF

10 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

Section-B

Attempt any eight questions:   (8x5=20)

Official Answer
AI Generated Answer

AI is thinking...

4.  What is critical section problem? Why executing critical selection must be mutual exclusive? Explain.

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

5.  Suppose that a disk drive has the cylinder numbered, 0 to 199 is currently serving a request at cylinder 143. The queue it request is kept in the FIFO order 25, 17, 119, 197, 194, 15, 182, 115, 183. What is the total head movement needed to satisfy these request for the following disk scheduling algorithm.

    a) FCFS

    b) SSTF

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

6.  What is critical Section Problem? Describe the criteria to be satisfied for solving this problem.

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

7.  How Produce-Consumer problem can be solved with sleep and wakeup primitives? Explain.

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

8.  Describe the methods for implementing files.

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

9.  Why do deadlock occurs? How can you detect and recover from deadlock?

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

10.  What is swapping? Differentiate contiguous memory allocation with non contiguous memory allocation.

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

11.  Discuss the working principles and advantages of Direct Memory Access.

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

12.  What is the purpose of system call in OS? Differentiate between thread and process.

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...