THEORY EXAMINATION (SEM–IV) 2016-17 OPERATING SYSTEM

B.Tech Computer Science 0 downloads
₹29.00

Course: B.Tech (Computer Science / Information Technology)
Subject Code: NCS401
Subject Title: Operating System
Exam Type: Theory
Duration: 3 Hours
Maximum Marks: 100

SECTION – A (10 × 2 = 20 Marks)

Short answer questions test conceptual clarity across all OS modules

No.QuestionExplanation
(a)Process vs ProgramA program is passive (set of instructions stored on disk); a process is an active execution instance of a program in memory.
(b)Context SwitchingThe mechanism of saving and restoring the state (CPU registers, program counter) of a process so that execution can resume later.
(c)Demand PagingA memory management scheme where pages are loaded into RAM only when required, reducing I/O overhead.
(d)Virtual MemoryTechnique that gives the illusion of a large memory by combining physical and secondary memory using paging.
(e)Directory vs FileDirectory stores file metadata and structure; file stores user data.
(f)Multiprogramming SystemAllows multiple programs to reside in memory at the same time; improves CPU utilization.
(g)Internal vs External FragmentationInternal → unused memory within allocated block; External → scattered free memory blocks that cannot be used.
(h)Critical SectionCode section where shared resources are accessed — must ensure mutual exclusion to prevent data inconsistency.
(i)ThreadsLightweight processes sharing memory and resources of a parent process.
(j)Operating System DefinitionSoftware that acts as an interface between hardware and user; manages processes, memory, and I/O efficiently.

SECTION – B (5 × 10 = 50 Marks)

Descriptive and analytical questions covering OS principles and applications

(a) Types of Operating Systems

Batch OS – executes jobs in batches without user interaction.

Multiprogramming OS – allows concurrent execution of multiple programs.

Multitasking OS – supports multiple active user processes.

Real-Time OS – responds to inputs within fixed deadlines.

Distributed OS – manages networked computers as a single system.

Network OS – provides shared access to files and devices over LAN.

(b) Kernel and Its Functions

Kernel: Core part of OS managing resources and communication between hardware and software.

Main operations:

Process scheduling and dispatching

Memory management

File system handling

Interrupt and I/O management

System calls interface

(c) Thrashing

Cause: Too many page faults due to insufficient frames; CPU spends more time swapping pages than executing processes.

Prevention:

Increase physical memory

Use working set model

Implement page fault frequency (PFF) control

(d) Process and Its States

States: New → Ready → Running → Waiting → Terminated

Process Control Block (PCB): Stores process ID, program counter, registers, memory limits, accounting info, and I/O status.

(e) Mutual Exclusion & Dekker’s Algorithm

Principles: Mutual exclusion, progress, bounded waiting.

Dekker’s Solution: Uses shared variables and flags to ensure only one process enters its critical section at a time.

(f) Producer–Consumer Problem (Semaphore Solution)

 

semaphore empty = n, full = 0, mutex = 1; Producer() {  wait(empty); wait(mutex);  // produce item  signal(mutex); signal(full); } Consumer() {  wait(full); wait(mutex);  // consume item  signal(mutex); signal(empty); }

Ensures safe access to the shared buffer.

(g) File Organization & Access Methods

Sequential Access: Files read/write sequentially.

Direct (Random) Access: Access any record via key or offset.

Indexed Access: Uses index table for efficient record retrieval.

Directory Structure: Single-level, two-level, tree-structured, acyclic, and general graph directory models.

(h) Services Provided by OS

Process & memory management

File system operations

I/O device control

Security & protection

Error detection & handling

Networking & communication support

SECTION – C (2 × 15 = 30 Marks)

Comprehensive questions testing design understanding and analytical application

Q3. (i) Deadlocks

Definition: A set of processes waiting indefinitely for resources held by each other.

Necessary Conditions (Coffman):

Mutual Exclusion

Hold and Wait

No Preemption

Circular Wait

Example: Two processes waiting for each other’s printer and tape drive.

(ii) Banker’s Algorithm
Used for deadlock avoidance by checking for a safe sequence before allocating resources.
It ensures the system always stays in a safe state.

Q4. Caching, Spooling, and Error Handling

ConceptDescription
CachingStoring frequently used data temporarily to reduce access time.
SpoolingOverlapping I/O operations using buffers (e.g., print spooling).
Error HandlingOS detects, logs, and recovers from hardware or software errors gracefully.

Disk Scheduling Algorithms:

FCFS (First-Come First-Serve): Requests served in arrival order.

SCAN: Disk arm moves like an elevator; services requests in one direction before reversing.

CSCAN (Circular SCAN): Arm moves in one direction, then resets quickly to beginning.

Summary

This Operating System (NCS401) paper comprehensively tests:

Topic AreaKey Focus
OS FundamentalsDefinition, types, kernel, services
Process ManagementStates, PCB, threads, scheduling
Memory ManagementPaging, virtual memory, thrashing
Concurrency ControlCritical section, semaphores, synchronization
DeadlocksConditions, avoidance (Banker’s algorithm)
File & I/O ManagementOrganization, access, spooling, caching
File Size
77.44 KB
Uploader
SuGanta International
⭐ Elite Educators Network

Meet Our Exceptional Teachers

Discover passionate educators who inspire, motivate, and transform learning experiences with their expertise and dedication

KISHAN KUMAR DUBEY

KISHAN KUMAR DUBEY

Sant Ravidas Nagar Bhadohi, Uttar Pradesh , Babusarai Market , 221314
5 Years
Years
₹10000+
Monthly
₹201-300
Per Hour

This is Kishan Kumar Dubey. I have done my schooling from CBSE, graduation from CSJMU, post graduati...

Swethavyas bakka

Swethavyas bakka

Hyderabad, Telangana , 500044
10 Years
Years
₹10000+
Monthly
₹501-600
Per Hour

I have 10+ years of experience in teaching maths physics and chemistry for 10th 11th 12th and interm...

Vijaya Lakshmi

Vijaya Lakshmi

Hyderabad, Telangana , New Nallakunta , 500044
30+ Years
Years
₹9001-10000
Monthly
₹501-600
Per Hour

I am an experienced teacher ,worked with many reputed institutions Mount Carmel Convent , Chandrapu...

Shifna sherin F

Shifna sherin F

Gudalur, Tamilnadu , Gudalur , 643212
5 Years
Years
₹6001-7000
Monthly
₹401-500
Per Hour

Hi, I’m Shifna Sherin! I believe that every student has the potential to excel in Math with the righ...

Divyank Gautam

Divyank Gautam

Pune, Maharashtra , Kothrud , 411052
3 Years
Years
Not Specified
Monthly
Not Specified
Per Hour

An IIT graduate having 8 years of experience teaching Maths. Passionate to understand student proble...

Explore Tutors In Your Location

Discover expert tutors in popular areas across India

🇫🇷 French Language Classes Near Rosewood City – Learn French for Global Opportunities Rosewood, Gurugram
Graphic Designing Course Near Sector 61 Gurugram – Build Creative Skills & Start Your Design Career Gurugram
Piano Classes Near Tilak Nagar – Learn, Play & Master Music with Confidenc Tilak Nagar, Delhi
IELTS Coaching Near Noida Sector 107 – Expert Training for High Band Scores Noida
Fitness Training Near By Najafgarh Professional Workout Programs for Strength, Weight Loss & Overall Wellness Najafgarh, Delhi
Spoken English Classes Near By Govindpuri Improve Fluency, Build Confidence & Unlock Better Career Opportunities in 2026 Govindpuri, Delhi
Dance Classes (Bollywood, Hip-Hop, Classical) Near Palam Vihar Extension – Learn Dance with Professional Trainers New Palam Vihar, Gurugram
Hindi Coaching Classes Near By Dwarka Mor Build Strong Language Skills Dwarka Mor, Delhi
Meditation Coaching Near Sector 126 Noida – A Complete Guide to Mental Wellness and Inner Peace Sector 126, Noida
Drum Lessons (Electronic Drums Preferred at Home) Near Sector 146 Noida – Learn Drumming with Professional Trainers Sector 146, Noida
Yoga Classes Near Malviya Nagar Build Strength, Reduce Stress & Transform Your Lifestyle with Professional Yoga Training in 2026 Malviya Nagar, Delhi
🇪🇸 Spanish Language Classes Near Golf Course Road – Learn Spanish for Global Communication Golf Course Road, Gurugram
Spoken English Classes Near By Hauz Khas Build Fluency, Confidence & Professional Communication Skills in 2026 Hauz Khas, Delhi
🇪🇸 Spanish Language Classes Near Sector 111 Noida – Learn Spanish with Professional Trainers Noida
Spoken English Classes Near By Lajpat Nagar Build Fluency, Confidence & Professional Communication Skills in 2026 Lajpat Nagar, Delhi
Zumba Classes Near Palam Vihar Extension – Dance Your Way to Fitness New Palam Vihar, Gurugram
Painting Classes Near By Dwarka Mor – Discover the Artist Within You Dwarka Mor, Delhi
Music Theory & Composition Near DLF Cyber City – Master the Language of Music DLF Cyber City, Gurugram
Spoken English Classes Near By Greater Kailash Improve Fluency, Build Confidence & Unlock Career Opportunities in 2026 Greater Kailash, Delhi
Diet & Nutrition Consultation Near Vatika City, Gurugram – Your Path to Healthy Living Vatika City, Gurugram
⭐ Premium Institute Network

Discover Elite Educational Institutes

Connect with top-tier educational institutions offering world-class learning experiences, expert faculty, and innovative teaching methodologies

Réussi Academy of languages

sugandha mishra

Réussi Academy of languages
Madhya pradesh, Indore, G...

Details

Coaching Center
Private
Est. 2021-Present

Sugandha Mishra is the Founder Director of Réussi Academy of Languages, a premie...

IGS Institute

Pranav Shivhare

IGS Institute
Uttar Pradesh, Noida, Sec...

Details

Coaching Center
Private
Est. 2011-2020

Institute For Government Services

Krishna home tutor

Krishna Home tutor

Krishna home tutor
New Delhi, New Delhi, 110...

Details

School
Private
Est. 2001-2010

Krishna home tutor provide tutors for all subjects & classes since 2001

Edustunt Tuition Centre

Lakhwinder Singh

Edustunt Tuition Centre
Punjab, Hoshiarpur, 14453...

Details

Coaching Center
Private
Est. 2021-Present
Great success tuition & tutor

Ginni Sahdev

Great success tuition & tutor
Delhi, Delhi, Raja park,...

Details

Coaching Center
Private
Est. 2011-2020