GANDHI INSTITUTUE FOR EDUCATION & TECHNOLOGY 
OPERATING SYSTEM 
ASSIGNMENT – 2 
 
Short Notes: 
a) Write down four conditions of deadlock.(BPUT 2012) 
b) Differentiate between a page and a segment. (BPUT 2012) 
c) What is Belady’s anomaly? (BPUT 2012, 2010) 
d) What is a critical section? (BPUT 2012) 
e) Differentiate between internal fragmentation and external fragmentation. (BPUT 2012) 
f) Compare and contrast the use of monitors and semaphore operations. (BPUT 2011) 
g) What do you mean by race condition? (BPUT 2011) 
h) What is the difference between binary and counting semaphores? (BPUT 2011) 
i) What happens during thrashing (in the memory system) and why it happens? (BPUT 2011) 
j) What is lazy swapper? Mention its working principle. (BPUT 2010) 
k) Garbage collection and compaction degrades system performance. Justify. (BPUT 2010) 
l) Briefly explain how priority‐inheritance protocol helps multiprocessing activity in a system. 
(BPUT 2010) 
m) Whether a single user process can create deadlock to the system? (yes/no). Justify your answer 
with a suitable example.( BPUT 2010) 
n) With segmentation, if there are 64 segments and maximum segment size is 512 words, what will 
be length of logical address? (BPUT 2009) 
o) A computer has 6 tape drives among n programs. Each needs two tape drives. For a system to 
be deadlock free what is maximum value n?( BPUT 2009)  
Long Questions: 
1. Consider the following snapshot of a system: 
 
    Allocation    Max    Available 
    A  B  C  D    A  B  C  D    A  B  C  D 
P0    0  0  1  2    0  0  1  2    1  5  2  0 
P1    1  0  0  0    1  7  5  0           
P2    1  3  5  4    2  3  5  6           
P3    0  6  3  2    0  6  5  2           
P4    0  0  1  4    0  6  5  6           
 
Answer the following questions using the Banker’s algorithm: 
(i) What is the content of the matrix Need? 
(ii) Is the system is a safe state? If yes, what is the safe sequence? Show the detailed steps 
as per Banker’s algorithm. 
(iii) If a request from process P1 arrives for (0, 4, 2, 0), can the request be granted 
immediately? (BPUT 2012) 
 
2. Consider the following page reference string: 
1, 2, 3, 4, 2, 1, 5, 6, 2, 1, 2, 3, 7, 6, 3, 2, 1, 2, 3, 6 
How many page faults would occur for the following replacement algorithms assuming three 
frames and all frames are initially empty? 
(i) LRU replacement 
(ii) FIFO replacement 
(iii) Optimal replacement(BPUT 2012) 
 
3.  Explain Peterson’s solution of critical section problem. (BPUT 2012) 
 
4. Write short notes on any two: 
(a) Semaphore 
(b) Thrashing (BPUT 2012) 
 
5. What aspect of paging makes page replacement algorithms so much simpler than segment 
replacement algorithms? What hardware or software features might be used in support of 
segment replacement that could make it almost as straightforward as page replacement?( BPUT 
2011) 
 
6. What is the meaning of term busy waiting? What other kinds of waiting are there? Can busy 
waiting be avoided together? Explain your answer. (BPUT 2011) 
 
7. State four conditions of deadlock and explain how each condition can be satisfied?( BPUT 2011) 
 
8. What is producer consumer problem? Give an example of its occurrence in operating system. 
(BPUT 2011) 
 
9. a) When do page fault occurs? 
b) What do you mean by weight‐for‐graph?( BPUT 2011) 
 
10. What is demand paging? With suitable block diagram, explain the procedure to handle page 
fault. (BPUT 2010) 
 
 
 
 

More Related Content

PPT
Pratima fragmentation
PPT
36 fragmentaio nnd pageconcepts
PPTX
methods os patient assignment
DOCX
operating system question bank
PDF
OS ASSIGNMENT-1
DOCX
Bca2010 – operating system
DOCX
Bca2010 – operating system
Pratima fragmentation
36 fragmentaio nnd pageconcepts
methods os patient assignment
operating system question bank
OS ASSIGNMENT-1
Bca2010 – operating system
Bca2010 – operating system

Similar to OS ASSIGNMENT 2 (20)

PDF
Assignment-IV students will about file management(Operating System).pdf
PPTX
bankers-algorithm2.pptx
PDF
Os Question Bank
DOCX
Mca2010 – operating system
DOCX
Important Questions from Operating Syste
PDF
The implementation of Banker's algorithm, data structure and its parser
DOCX
Mca2010 – operating system
DOCX
Mca2010 – operating system
PDF
2009 Punjab Technical University B.C.A OPERATING SYSTEM Question paper
PPTX
Deadlock in Real Time operating Systempptx
PPT
deadlock avoidance
PPT
Ch8 OS
 
PPTX
OS - Unit 3 Deadlock (Bankers Algorithm).pptx
PPT
Module-2Deadlock.ppt
PPTX
Methods for handling deadlock
PDF
[Question Paper] Modern Operating System (Revised Course) [January / 2014]
PPTX
Deadlock Algorithms 3.pptx
PDF
Deadlock
PPT
Principles of Operating system and types
PPTX
understanding deadlock in operating systems
Assignment-IV students will about file management(Operating System).pdf
bankers-algorithm2.pptx
Os Question Bank
Mca2010 – operating system
Important Questions from Operating Syste
The implementation of Banker's algorithm, data structure and its parser
Mca2010 – operating system
Mca2010 – operating system
2009 Punjab Technical University B.C.A OPERATING SYSTEM Question paper
Deadlock in Real Time operating Systempptx
deadlock avoidance
Ch8 OS
 
OS - Unit 3 Deadlock (Bankers Algorithm).pptx
Module-2Deadlock.ppt
Methods for handling deadlock
[Question Paper] Modern Operating System (Revised Course) [January / 2014]
Deadlock Algorithms 3.pptx
Deadlock
Principles of Operating system and types
understanding deadlock in operating systems
Ad

More from SANTOSH RATH (20)

DOCX
Lesson plan proforma database management system
DOCX
Lesson plan proforma progrmming in c
DOCX
Expected questions tc
PDF
Expected questions tc
PDF
Module wise format oops questions
PDF
2011dbms
PDF
2006dbms
PDF
( Becs 2208 ) database management system
PDF
Rdbms2010
DOCX
Expected Questions TC
PDF
Expected questions tc
DOCX
Expected questions for dbms
PDF
Expected questions for dbms
PDF
Oops model question
PDF
System programming note
DOCX
Operating system notes
PDF
Os notes
PDF
OS ASSIGNMENT 3
PDF
Ds using c 2009
PDF
Data structure using c bcse 3102 pcs 1002
Lesson plan proforma database management system
Lesson plan proforma progrmming in c
Expected questions tc
Expected questions tc
Module wise format oops questions
2011dbms
2006dbms
( Becs 2208 ) database management system
Rdbms2010
Expected Questions TC
Expected questions tc
Expected questions for dbms
Expected questions for dbms
Oops model question
System programming note
Operating system notes
Os notes
OS ASSIGNMENT 3
Ds using c 2009
Data structure using c bcse 3102 pcs 1002
Ad

Recently uploaded (20)

PPTX
Graph Data Structures with Types, Traversals, Connectivity, and Real-Life App...
PDF
distributed database system" (DDBS) is often used to refer to both the distri...
PPTX
"Array and Linked List in Data Structures with Types, Operations, Implementat...
PDF
EXPLORING LEARNING ENGAGEMENT FACTORS INFLUENCING BEHAVIORAL, COGNITIVE, AND ...
PDF
Accra-Kumasi Expressway - Prefeasibility Report Volume 1 of 7.11.2018.pdf
PDF
Artificial Superintelligence (ASI) Alliance Vision Paper.pdf
PPTX
Chemical Technological Processes, Feasibility Study and Chemical Process Indu...
PDF
Abrasive, erosive and cavitation wear.pdf
PPTX
Sorting and Hashing in Data Structures with Algorithms, Techniques, Implement...
PPT
INTRODUCTION -Data Warehousing and Mining-M.Tech- VTU.ppt
PPTX
CURRICULAM DESIGN engineering FOR CSE 2025.pptx
PPTX
Feature types and data preprocessing steps
PDF
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT
PDF
Influence of Green Infrastructure on Residents’ Endorsement of the New Ecolog...
PPTX
Software Engineering and software moduleing
PDF
Categorization of Factors Affecting Classification Algorithms Selection
PDF
22EC502-MICROCONTROLLER AND INTERFACING-8051 MICROCONTROLLER.pdf
PDF
Exploratory_Data_Analysis_Fundamentals.pdf
PDF
737-MAX_SRG.pdf student reference guides
PDF
August -2025_Top10 Read_Articles_ijait.pdf
Graph Data Structures with Types, Traversals, Connectivity, and Real-Life App...
distributed database system" (DDBS) is often used to refer to both the distri...
"Array and Linked List in Data Structures with Types, Operations, Implementat...
EXPLORING LEARNING ENGAGEMENT FACTORS INFLUENCING BEHAVIORAL, COGNITIVE, AND ...
Accra-Kumasi Expressway - Prefeasibility Report Volume 1 of 7.11.2018.pdf
Artificial Superintelligence (ASI) Alliance Vision Paper.pdf
Chemical Technological Processes, Feasibility Study and Chemical Process Indu...
Abrasive, erosive and cavitation wear.pdf
Sorting and Hashing in Data Structures with Algorithms, Techniques, Implement...
INTRODUCTION -Data Warehousing and Mining-M.Tech- VTU.ppt
CURRICULAM DESIGN engineering FOR CSE 2025.pptx
Feature types and data preprocessing steps
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT
Influence of Green Infrastructure on Residents’ Endorsement of the New Ecolog...
Software Engineering and software moduleing
Categorization of Factors Affecting Classification Algorithms Selection
22EC502-MICROCONTROLLER AND INTERFACING-8051 MICROCONTROLLER.pdf
Exploratory_Data_Analysis_Fundamentals.pdf
737-MAX_SRG.pdf student reference guides
August -2025_Top10 Read_Articles_ijait.pdf

OS ASSIGNMENT 2

  • 1. GANDHI INSTITUTUE FOR EDUCATION & TECHNOLOGY  OPERATING SYSTEM  ASSIGNMENT – 2    Short Notes:  a) Write down four conditions of deadlock.(BPUT 2012)  b) Differentiate between a page and a segment. (BPUT 2012)  c) What is Belady’s anomaly? (BPUT 2012, 2010)  d) What is a critical section? (BPUT 2012)  e) Differentiate between internal fragmentation and external fragmentation. (BPUT 2012)  f) Compare and contrast the use of monitors and semaphore operations. (BPUT 2011)  g) What do you mean by race condition? (BPUT 2011)  h) What is the difference between binary and counting semaphores? (BPUT 2011)  i) What happens during thrashing (in the memory system) and why it happens? (BPUT 2011)  j) What is lazy swapper? Mention its working principle. (BPUT 2010)  k) Garbage collection and compaction degrades system performance. Justify. (BPUT 2010)  l) Briefly explain how priority‐inheritance protocol helps multiprocessing activity in a system.  (BPUT 2010)  m) Whether a single user process can create deadlock to the system? (yes/no). Justify your answer  with a suitable example.( BPUT 2010)  n) With segmentation, if there are 64 segments and maximum segment size is 512 words, what will  be length of logical address? (BPUT 2009)  o) A computer has 6 tape drives among n programs. Each needs two tape drives. For a system to  be deadlock free what is maximum value n?( BPUT 2009)   Long Questions:  1. Consider the following snapshot of a system:        Allocation    Max    Available      A  B  C  D    A  B  C  D    A  B  C  D  P0    0  0  1  2    0  0  1  2    1  5  2  0  P1    1  0  0  0    1  7  5  0            P2    1  3  5  4    2  3  5  6            P3    0  6  3  2    0  6  5  2            P4    0  0  1  4    0  6  5  6              Answer the following questions using the Banker’s algorithm:  (i) What is the content of the matrix Need?  (ii) Is the system is a safe state? If yes, what is the safe sequence? Show the detailed steps  as per Banker’s algorithm. 
  • 2. (iii) If a request from process P1 arrives for (0, 4, 2, 0), can the request be granted  immediately? (BPUT 2012)    2. Consider the following page reference string:  1, 2, 3, 4, 2, 1, 5, 6, 2, 1, 2, 3, 7, 6, 3, 2, 1, 2, 3, 6  How many page faults would occur for the following replacement algorithms assuming three  frames and all frames are initially empty?  (i) LRU replacement  (ii) FIFO replacement  (iii) Optimal replacement(BPUT 2012)    3.  Explain Peterson’s solution of critical section problem. (BPUT 2012)    4. Write short notes on any two:  (a) Semaphore  (b) Thrashing (BPUT 2012)    5. What aspect of paging makes page replacement algorithms so much simpler than segment  replacement algorithms? What hardware or software features might be used in support of  segment replacement that could make it almost as straightforward as page replacement?( BPUT  2011)    6. What is the meaning of term busy waiting? What other kinds of waiting are there? Can busy  waiting be avoided together? Explain your answer. (BPUT 2011)    7. State four conditions of deadlock and explain how each condition can be satisfied?( BPUT 2011)    8. What is producer consumer problem? Give an example of its occurrence in operating system.  (BPUT 2011)    9. a) When do page fault occurs?  b) What do you mean by weight‐for‐graph?( BPUT 2011)    10. What is demand paging? With suitable block diagram, explain the procedure to handle page  fault. (BPUT 2010)