👁️ 218 views
University of Barishal Logo

University of Barishal

Department of Computer Science and Engineering

Final Exam

Course Title: Operating System (CSE-2207)

Semester: 4th | Session: 19-20

Time: 180 minutes | Marks: 60.00

Course Teacher: Md. Rashid Al Asif

N.B.: Answer any FIVE questions out of the followings. All parts of each question must be answered consecutively. Right side of the question shows the maximum marks.

1.


a)

What do you mean by an Operating System? What are the three main purposes of an operating system? Write a short note on, "An operating system is a resource allocator".

Please SUBSCRIBE to view full question

Topics: N/A Solution is Coming!
4 Marks
b)

List five services provided by an operating system and explain how each creates convenience for users.

Please SUBSCRIBE to view full question

Topics: N/A Solution is Coming!
4 Marks
c)

Give two reasons why caches are useful. What problems do they solve? What problems do they cause? If a cache can be made as large as the device for which it is caching (for instance, a cache as large as a disk), why not make it that large and eliminate the device?

Please SUBSCRIBE to view full question

Topics: N/A Solution is Coming!
4 Marks
2.


a)

Direct memory access is used for high-speed I/O devices in order to avoid increasing the CPU's execution load.
i) How does the CPU interface with the device to coordinate the transfer?


ii) The CPU is allowed to execute other programs while the DMA controller is transferring data. Does this process interfere with the execution of the user programs? If so, describe what forms of interference are caused.

Please SUBSCRIBE to view full question

Topics: N/A Solution is Coming!
3 Marks
b)

Describe the differences among short-term, medium-term, and long-term scheduling.

Please SUBSCRIBE to view full question

Topics: N/A Solution is Coming!
3 Marks
c)

What do you know about process and process control block (PCB)? What are the states of process? Explain with necessary diagrams.

Please SUBSCRIBE to view full question

Topics: N/A Solution is Coming!
6 Marks
3.


a)

What are two differences between user-level threads and kernel-level threads? Under what circumstances is one type better than the other?.

Please SUBSCRIBE to view full question

Topics: N/A Solution is Coming!
3 Marks
b)

What are the benefits and the disadvantages of synchronous and asynchronous communication? Consider both the system level and the programmer level.

Please SUBSCRIBE to view full question

Topics: N/A Solution is Coming!
3 Marks
c)

Explain the difference between preemptive and non-preemptive scheduling.

Please SUBSCRIBE to view full question

Topics: N/A Solution is Coming!
2 Marks
d)

A multithreaded web server wishes to keep track of the number of requests it services (known as hits). Consider the two following strategies to prevent a race condition on the variable hits.

Explain which of these two strategies is more efficient.

Please SUBSCRIBE to view full question

Topics: N/A Solution is Coming!
4 Marks
4.


a)

What advantage is there in having different time-quantum sizes at different levels of a multilevel queueing system? Explain with example.

Please SUBSCRIBE to view full question

Topics: N/A Solution is Coming!
4 Marks
b)

Regarding the Producer-Consumer problem, explain the following term:
i) Producer process   ii) Consumer Process   iii) Unbounded-buffer   iv) Bounded-buffer

Please SUBSCRIBE to view full question

Topics: N/A Solution is Coming!
4 Marks
c)

The following processes are being scheduled using a Priority Scheduling-Preemptive algorithm. Each process is assigned a numerical priority, with a higher number indicating a higher relative priority.

i) Show the scheduling order of the processes using a Gantt chart.
ii) Fill the following table for exit time, turn-around time, and waiting time:

Please SUBSCRIBE to view full question

Topics: N/A Solution is Coming!
4 Marks
5.


a)

Suppose that a system is in an unsafe state. Show that it is possible for the processes to complete their execution without entering a deadlocked state.

Please SUBSCRIBE to view full question

Topics: N/A Solution is Coming!
3 Marks
b)

Consider the following snapshot of a system:

Answer the following questions using the banker's algorithm:

i) What is the content of the matrix Need?

ii) Define safe and unsafe state. Is the system in a safe state? If so, show a safe order in which the processes can execute.

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

Please SUBSCRIBE to view full question

Topics: N/A Solution is Coming!
6 Marks
c)

List two deadlock detection mechanisms. Construct the wait-for graph that corresponds to the following resource allocation graph and determine whether or not there is deadlock.

Please SUBSCRIBE to view full question

Topics: N/A Solution is Coming!
3 Marks
6.


a)

In a system with a TLB, assume the following:

i) the memory access time is 150 nsec.     ii) the TLB access time is 25 nsec.

iii) the TLB hit rate is 80%.

Compute the effective access time for memory in this scenario.

Please SUBSCRIBE to view full question

Topics: N/A Solution is Coming!
3 Marks
b)

Given memory partition of 100 KB, 500 KB, 200 KB and 600 KB (in order), how would each of the first fit, best fit and worst fit algorithms place processes of 212 KB,417 KB,112 KB and 426 KB (in order)? Rank the algorithms in terms of how efficiently they use memory.

Please SUBSCRIBE to view full question

Topics: N/A Solution is Coming!
3 Marks
c)

What is paging? Consider a logical address space of 64 pages of 1,024 words each, mapped onto a physical memory of 32 frames.

i) How many bits are there in the logical address?

ii) How many bits are there in the physical address?

Please SUBSCRIBE to view full question

Topics: N/A Solution is Coming!
4 Marks
d)

Explain the difference between internal and external fragmentation.

Please SUBSCRIBE to view full question

Topics: N/A Solution is Coming!
2 Marks
7.


a)

Define virtual memory. How does it empower computing?

Please SUBSCRIBE to view full question

Topics: N/A Solution is Coming!
3 Marks
b)

What does TLB stands for? Briefly explain its usage in operating system.

Please SUBSCRIBE to view full question

Topics: N/A Solution is Coming!
4 Marks
c)

What is fragmentation? Consider the following segment table:

What are the physical addresses for the following logical addresses?

i) 0, 430   ii) 1, 10   iii) 2, 500   iv) 3, 400

Please SUBSCRIBE to view full question

Topics: N/A Solution is Coming!
5 Marks
8.


a)

Consider the following page reference string:

2, 3, 2, 1, 5, 2, 4, 5, 3, 2, 5, 2

How many page faults would occur for the following replacement algorithms, assuming three frames? Remember that all frames are initially empty, so your first unique pages will cost one fault each.

i) Least Recently Used (LRU)

ii) Optimal Page Replacement

iii) FIFO

Please SUBSCRIBE to view full question

Topics: N/A Solution is Coming!
6 Marks
b)

Suppose that a disk drive has 200 cylinders, numbered 0 to 199. The drive is currently serving a request at cylinder 50. The queue of pending requests, in FIFO order, is:

      95, 180, 34, 119, 11, 123, 62, 64

Starting from the current head position, what is the total distance (in cylinders) that the disk arm moves to satisfy all the pending requests? You should also provide a graphical view of head movement for each of the following disk-scheduling algorithms.

i) C-SCAN

ii) LOOK

Please SUBSCRIBE to view full question

Topics: N/A Solution is Coming!
4 Marks
c)

Define following terms:

i) Thrashing

ii) RAID

Please SUBSCRIBE to view full question

Topics: N/A Solution is Coming!
2 Marks

"Life is like riding a bicycle. To keep your balance, you must keep moving."
- Albert Einstein

Contributors of this Question:

Role Name Date
Prepared By (Teacher): Md. Rashid Al Asif N/A
Uploaded By: Onebyzero Edu (Test User) Aug. 17, 2024, 9:08 p.m.
Converted By (Img/PDF to Text): Baishakhi Bir Dec. 3, 2025, 6:54 p.m.
Reviewed By: Obaydul Hasan Nayeem Dec. 3, 2025, 9:12 p.m.