Gujarat Technological UniversitySummer 2026 examination

GTU BE04000221 Operating System Summer 2026 Question Paper & PDF

B.E. · Common Engineering · Semester 4 · Subject code BE04000221
Download official PDFView PDF here
Share with your class
Total
70 marks
To pass
23 marks (33%)
Duration
2.5 Hours 10:30 AM – 1:00 PM
Questions
5 with internal choice
No solutions on this paper yetNeed them for your exam? Ask once. Papers that students ask for are solved first, and we aim to add them within 24 hours.

Q.1

14 Marks
(a)
3 marks
Explain the role of kernel in an operating system.
(b)
4 marks
Discuss the goals and functions of Operating Systems.
(c)
7 marks
Explain various types of Operating Systems with suitable examples.

Q.2

14 Marks
(a)
3 marks
Compare: user-level threads and kernel-level threads.
(b)
4 marks
Explain how aging prevents starvation in priority scheduling.
(c)
7 marks
Consider the following processes:

Methods to be performed are FCFS and SRTF. Do the following:

  • Draw Gantt chart
  • Find Average Waiting Time
  • Find Average Turnaround Time
ProcessArrival TimeBurst Time
P108
P214
P329
P435
(c)
7 marks

What is PCB?Explain the complete life cycle of a process in an operating systm with suitable diagram.

Q.3

14 Marks
(a)
3 marks
Define Semaphore and explain binary semaphore.
(b)
4 marks
How Peterson’s Solution solve critical section problem?
(c)
7 marks

A system has four processes (P0, P1, P2,) and (P3) and three resource types (A, B and C).The total number of instances of resources (A, B,) and (C) are 12, 8, and 10 respectively. The current Allocation and Maximum matrices are given below: Process Allocation (A B C) Max (A B C) P0 2 3 3 7 6 5 P1 4 2 2 6 5 4 P2 3 1 4 8 4 6 P3 1 2 1 5 3 3 Available Resources:(2, 0, 0) Answer the following:

aCalculate the Need Matrix for all processes.
bDetermine whether the current system is in a safe state using Banker’s Algorithm. If the system is safe, write one safe sequence.
cIf process (P2) requests resources ((2, 0, 1)), determine whether the request can be granted immediately. Show all necessary steps and justification.
(a)
3 marks
Define Deadlock and list its necessary conditions.
(b)
4 marks

The following two functions P1 and P2 that share a variable B with initial value of 4 execute concurrently. P1() { C=B-1; B=2*C; } P2() { D= 2*B; B=D-1; } Provide the number of distinct values that B can possibly take after the executions of two functions.

(c)
7 marks

Explain Dinning Philosopher problem and provide possible deadlock situations.

Q.4

14 Marks
(a)
3 marks
Differentiate: Internal Fragmentation and External Fragmentation.
(b)
4 marks

What is thrashing? Explain its effect on CPU Utilization. What should be the solution of it?

(c)
7 marks
A system uses virtual memory with 3 page frames:

3,2,1,0,3,2,4,3,2,1,0,4 provide details on page faults for FIFO,LRU and OPTIMAL algorithms.

(a)
3 marks
What is paging? How it is different from Segmentation?
(b)
4 marks

What is Translation Lookaside Buffer? Provide its advantages and disadvantages.

(c)
7 marks

A logical address space of 8 MB is mapped to a physical memory of 256 KB using paging. The page size is 4 KB.

aCalculate the number of bits required for logical address, physical address, page number, and page offset.
bHow many pages are there in the logical address space?
cHow many frames are there in the physical memory?
dIf the page table entry size is 4 bytes, what is the size of the page table?

Q.5

14 Marks
(a)
3 marks
What is RAID? STate its advantages.
(b)
4 marks
Explain VMware ESXi and Microsoft Hyper-V.
(c)
7 marks

Consider a disk with tracks numbered from 0 to 199. The request queue is: 23, 89, 132, 42, 187, 65, 14, 170 Initial head position = 100 Head movement direction = towards lower track numbers. Solve using FCFS, SSTF, SCAN, and C-SCAN disk scheduling algorithms.

(a)
3 marks
Differentiate: Virtual Machine and Physical Machine.
(b)
4 marks
Explain following Linux commands:
1grep
2ls
3touch
4sort
(c)
7 marks

Write a shell script to create a file containing student details such as Full Name, Enrollment Number, Branch, and Semester. The script should also:

  • Display the total number of lines in the file
  • Display the total number of characters in the file
  • Search and display the full student record based on a given string input.

Preparing with friends?

Send this paper to your class group. Every question has its own link.

About this paper

Official Gujarat Technological University (GTU) examination paper for Operating System (Summer 2026, B.E. · Common Engineering, Sem 4). Features complete 70-mark regular & remedial examination pattern, official marking distribution across all 5 questions, and direct 1-click official PDF download.

Transcribed for student exam preparation from Gujarat Technological University official examination archives. Questions, syllabus guidelines, and curriculum marking schemes remain the intellectual property of Gujarat Technological University.

ViewDownload PDF