Code: 105305Computer Science & Eng.3rd Semester6 Examination Papers

Operating System

Official Bihar Engineering University examination question papers, marks distribution, and questions transcript. Available exam sessions: 2025, 2024, 2023, 2022, 2013.

Exam Year:

Get Instant AI Answers on this Paper

Open BEU Connect Android app to solve any numerical or derive formulas step by step.

Ask AI in App
Official Exam Paper TranscriptB.Tech 3rd Semester Examination, 2025
Bihar Engineering University, Patna
B.Tech 3rd Semester Examination, 2025

Operating System

Time: 03 HoursCode: 105305Full Marks: 70

Instructions:

  1. The marks are indicated in the right-hand margin.
  2. There are NINE questions in this paper.
  3. Attempt FIVE questions in all.
  4. Question No. 1 is compulsory.
Q.1 Choose the correct option/answer the following (Any seven question only):[2×7=14]
  1. What is the ready state of a process?

    1. When process waits for the scheduler to do a context switch
    2. When process is using the CPU
    3. When process is unable to run until some task has been completed
    4. None of the mentioned
  2. The total number of processes completed per unit time is known as

    1. Output
    2. Throughput
    3. Efficiency
    4. Capacity
  3. Physical memory is broken into fixed-sized blocks called

    1. Frames
    2. Backing store
    3. Pages
    4. None
  4. The First Fit, Best Fit and Worst Fit are partitioning algorithms to select a ____

    1. Process from a queue to put in memory
    2. Free Hole from a set of available Hole
    3. Processor to run the next process
    4. All of the mentioned
  5. In Paging, every logical address generated by the CPU is divided into two parts. They are ____

    1. Page Number and Frame Bit
    2. Page Offset and Frame Bit
    3. Page Number and Page Offset
    4. Frame Offset and Page Offset
  6. Page fault occurs when

    1. Page is not in cache
    2. CPU idle
    3. Page not in main memory
    4. Page is modified
  7. Deadlock prevention ensures

    1. Deadlock never occurs
    2. Deadlock recovery is easy
    3. Deadlock is detected after occurrence
    4. System ignores deadlocks
  8. Which IPC mechanism requires synchronization between processes?

    1. Shared memory
    2. Pipes
    3. Message passing
    4. Signals
  9. User-level threads are managed by

    1. Kernel
    2. Hardware
    3. Thread library
    4. Compiler
  10. A process moves from Running to Ready state due to

    1. I/O request
    2. Time quantum expiry
    3. Process termination
    4. Waiting for signal
Q.2 (a) What is dispatch latency? How does it affect Real time scheduling? Suggest some solutions to keep dispatch latency low.[7]
(b) What is a process scheduler? State the characteristics of an exemplary process scheduler.[7]
Q.3 (a) Describe the implementation of semaphores in attaining process synchronization. Explain any two classical process synchronization problems.[7]
(b) Consider a disk with 200 tracks and the queue has random requests from different processes in the order: 55, 58, 39, 18, 90, 160, 150, 38, 184. Initially arm is at 100. Find the Average Seek length using FIFO, SSTF and SCAN algorithm.[7]
Q.4 (a) Consider the set of Processes <A, B, C, D> assumed to have arrived at the time sequence <0, 1, 2, 4> having Burst time <3, 6, 4, 2> respectively. Draw the Gantt Chart illustrating their execution using Shortest Job First (SJF) Algorithm, Shortest Remaining Time First (SJF Preemptive Algorithm) and calculate the Average Turn Around time and Average waiting time for both scheduling algorithms.[7]
(b) With a neat sketch (process state diagram), explain various states the process may undergo from its creation to its termination. Mark all possible transitions and states and clearly explain the details of states and state-transitions.[7]
Q.5 (a) Consider the following snapshot of a system:[7]
ProcessAllocation AAllocation BAllocation CAllocation DMax AMax BMax CMax D
P000120012
P110001520
P21354750—
P306322356
P400140652

Available: A = 0, B = 6, C = 5, D = 6

Answer the following questions using the banker's algorithm: (i) What is the content of the matrix Need? (ii) Is the system in a safe state? (iii) If a request from process P1 arrives for (0,4,2,0), can the request be granted immediately?

(b) Explain the concept of paging in operating systems. Discuss the structure of logical and physical addresses, the role of the page table in address translation, and analyze the issue of internal fragmentation in paging systems.[7]
Q.6 (a) Consider the following page reference string 7, 0, 1, 2, 0, 3, 0, 4, 2, 3, 0, 3, 2, 1, 2, 0, 1, 7, 0, 1. How many page fault would occur for the following page replacement algorithms for 3 page frame? All frames are initially empty. (i) FIFO replacement (ii) LRU (iii) Optimal replacement[7]
(b) Describe the segmentation memory management scheme in operating systems. Explain the logical address format, segment table structure, and discuss the problem of external fragmentation along with its impact on memory utilization.[7]
Q.7 (a) Explain the concept of preemptive CPU scheduling in operating systems. Discuss its working mechanism, advantages, disadvantages, and compare it with non-preemptive scheduling in terms of responsiveness and overhead.[7]
(b) Discuss the significance of time quantum in time-sharing systems. Analyze how the choice of time slice affects CPU utilization, context switching overhead, and turnaround time of processes.[7]
Q.8 (a) Explain the concept of multithreading in operating systems. Discuss the advantages of multithreading, different models of multithreading, and analyze the challenges involved in thread management such as synchronization and resource sharing.[7]
(b) In a system implementing the Readers–Writers synchronization problem, suppose there are 5 processes arriving in the following order with their arrival times (in ms) and operation durations: (i) R1: Arrival = 0, Duration = 4 (ii) W1: Arrival = 1, Duration = 3 (iii) R2: Arrival = 2, Duration = 2 (iv) R3: Arrival = 3, Duration = 3 (v) W2: Arrival = 5, Duration = 2. Assuming the first Readers–Writers problem (reader-priority) is followed: Determine the execution order of processes and compute the waiting time for each process. Also, draw the corresponding timeline (Gantt chart) showing access to the shared resource.[7]
Q.9 Write short note on any two of the following:[7×2=14]
  1. Batch Procession System
  2. Multiprogramming System
  3. Real-Time System
  4. Timesharing System

Related Official Syllabus

Operating System

105305

Official BEU curriculum units & topics for this examination subject.

Unit 1.0: Introduction

Concept of Operating Systems • Generations of Operating systems • Types of Operating Systems • OS Services, System Calls • Structure of an OS: Layered, Monolithic, Microkernel • Concept of Virtual Machine • Case study on UNIX and WINDOWS Operating System

Unit 2.0: Processes

Definition, Process Relationship • Different states of a Process • Process State transitions • Process Control Block (PCB), Context switching • Thread: Definition, Various states • Benefits of threads, Types of threads • Concept of multithreads • Process Scheduling: Foundation and Scheduling objectives • Types of Schedulers • Scheduling criteria: CPU utilization, Throughput, Turnaround Time, Waiting Time, Response Time • Scheduling algorithms: Pre-emptive and Non pre-emptive, FCFS, SJF, RR • Multiprocessor scheduling • Real Time scheduling: RM and EDF

Unit 3.0: Inter-process Communication

Critical Section, Race Conditions • Mutual Exclusion • Hardware Solution, Strict Alternation, Peterson's Solution • The Producer - Consumer Problem • Semaphores, Event Counters, Monitors • Message Passing, Shared Memory • Classical IPC Problems: Reader's & Writer Problem, Dining Philosopher Problem etc.

Unit 4.0: Deadlocks

Definition • Necessary and sufficient conditions for Deadlock • Deadlock Prevention • Deadlock Avoidance: Banker's algorithm • Deadlock detection and Recovery

Unit 5.0: Memory Management

Basic concept, Logical and Physical address map • Memory allocation: Contiguous Memory allocation • Fixed and variable partition • Internal and External fragmentation and Compaction • Paging and Segmentation: Principle of operation • Page allocation, Hardware support for paging • Protection and sharing • Advantages and Disadvantages of paging and segmentation • Virtual Memory: Basics of Virtual Memory • Hardware and control structures • Locality of reference, Page fault, Working Set, Dirty page/Dirty bit • Demand paging • Page Replacement algorithms: Optimal, First in First Out (FIFO), Second Chance (SC), Not recently used (NRU) and Least Recently used (LRU)

View Complete 3rd Semester Syllabus

Prepare Better with BEU Connect

  • Download papers for 100% offline study
  • Ask AI for step-by-step problem breakdown
  • Attempt official GATE CBT mock tests
  • Calculate SGPA and track attendance
Download Android App