👁️ 143 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: 17-18

Time: 180 minutes | Marks: 60.00

Course Teacher: Md. Rashid Al Asif

Answer any Five (5) Questions from the followings.

1.


a)

What are the four essential managers of an operating system?

Please SUBSCRIBE to view full question

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

What is the relationship between turnaround time, CPU cycle time, and waiting time?

Please SUBSCRIBE to view full question

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

Given that main memory is composed of THREE page frame for public use and that a program requests pages in the following order: 1 2 3 4 1 2 5 1 2 3 4 5.

i) Using the FIFO page removal algorithm, calculate FAILURE RATIO and a page trace analysis indicating page faults with asterisks (*).

ii) Using the LRU page removal algorithm, calculate FAILURE RATIO and analyze a page trace analysis indicating page faults with asterisks (*).

iii) Given that main memory is composed of FOUR page frame for public use and that a program requests pages in the following order: 1 2 3 4 1 2 5 1 2 3 4 5. Let's define most-recently-used (MRU) as a page removal algorithm that removes from memory the most recently used page. Using FIFO and MRU, do the page trace analysis using the same page requests as above and compute the failure ratios.

Please SUBSCRIBE to view full question

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


a)

What is a job scheduler? What is a process scheduler?

Please SUBSCRIBE to view full question

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

As a process executes, it changes state. Complete to draw the state diagram of a process from its creation to termination, including all transitions, and briefly explain functions of each state.

Please SUBSCRIBE to view full question

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

What is deadlock? Describe about necessary conditions for deadlock characterization.

Please SUBSCRIBE to view full question

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

Given the following information, the five section memory blocks are arranged in order (100KB, 500KB, 200KB, 300KB and 600KB). Allocate processes (212KB, 417KB, 288KB and 426KB) in order.


a)

Use the best-fit algorithm to allocate the memory blocks to the three arriving jobs. Show internal fragmentation (if any) and waiting jobs (if any).

Please SUBSCRIBE to view full question

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

Use the first-fit algorithm to allocate the memory blocks to the three arriving jobs. Show internal fragmentation (if any) and waiting jobs (if any).

Please SUBSCRIBE to view full question

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

Use the next-fit algorithm to allocate the memory blocks to the three arriving jobs. Show internal fragmentation (if any) and waiting jobs (if any).

Please SUBSCRIBE to view full question

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

Worst-fit is an allocation algorithm that allocates the largest free block to a new job. This is the opposite of the best-fit algorithm. Use the worst-fit algorithm to allocate the memory blocks to the three arriving jobs. Show internal fragmentation (if any) and waiting jobs (if any).

Please SUBSCRIBE to view full question

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

From the comparison of the allocation results, WHICH algorithm is the most efficient and WHY?

Please SUBSCRIBE to view full question

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


a)

What is deadlock? Describe about necessary conditions for deadlock characterization.

Briefly describe Banker's algorithm.

Please SUBSCRIBE to view full question

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

Draw and describe address translation architecture.

Please SUBSCRIBE to view full question

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

Briefly describe Banker's algorithm.

Please SUBSCRIBE to view full question

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


a)

Draw storage device hierarchy.

Please SUBSCRIBE to view full question

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

What is page fault? Draw the steps in handling a page fault.

Please SUBSCRIBE to view full question

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

Explain multistep processing of a user program.
                                        

Please SUBSCRIBE to view full question

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

Consider the directed resource graph shown in figure above, and answer the following questions.


a)

Identify all of the deadlocked processes.

Please SUBSCRIBE to view full question

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

Can the deadlock be resolved without selecting a victim?

Please SUBSCRIBE to view full question

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

Which requests by the three processes for resources from R2 would you satisfy to minimize the number of processes involved in the deadlock?

Please SUBSCRIBE to view full question

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

Conversely, which requests by the three processes for resources from R2 would you satisfy to maximize the number of processes involved in deadlock?

Please SUBSCRIBE to view full question

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


a)

Suppose that a disk drive has 5000 cylinders, numbered 0 to 4999. The drive is currently serving a request at cylinder 143. The queue of pending request in FIFO order is 86, 1470, 913, 1774, 948, 1509 ,1022 ,1750,130. Starting from the current head position, illustrate and calculate the total distance (in cylinders) that the disk arm moves to satisfy all the pending requests for each of the following disk-scheduling algorithms.

i. FCFS

ii. SSTF

iii. SCAN (assuming arm movement towards the beginning of disk)

iv. LOOK

V. C-SCAN (assuming arm movement towards the end of disk)

vi. C-LOOK

Please SUBSCRIBE to view full question

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

Five processes A, B, C, D and E arrived in this order at the same time with the following CPU burst and priority values. A smaller value means a higher priority.

 


a)

Draw Gantt Charts for illustrating five scheduling algorithms which are First-Come-First-Served, Non-Preemptive Shortest-Job First, Priority and Round-Robin (time quantum = 1).

Please SUBSCRIBE to view full question

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

Calculate the turnaround time for each process based on the five scheduling algorithms.

Please SUBSCRIBE to view full question

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

Calculate the waiting time for each process based on the four scheduling algorithms.

Please SUBSCRIBE to view full question

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

Calculate the average turnaround time and the average waiting time for each process based on the four scheduling algorithms.

Please SUBSCRIBE to view full question

Topics: N/A Solution is Coming!
3 Marks

------------------------------------***------------------------------------

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:22 p.m.
Converted By (Img/PDF to Text): Baishakhi Bir Dec. 3, 2025, 10:25 p.m.
Reviewed By: Obaydul Hasan Nayeem Dec. 3, 2025, 11:02 p.m.