Thursday, July 30, 2015

UNIT WISE ASSIGNMENT QQUESTIONS FOR OPERATING SYSTEM



ASSIGNMENT QUESTIONS
UNIT-1

  1. Define operating system. Explore the operating system from different viewpoints?
  2. Explain the Dual-mode operation of the OS?
  3. Explain the concepts of Multiprogramming and Multitasking.
  4. Explain the functions of OS w.r.t following.
i)                    Process management  ii) Memory management
  1. Explain the different computing environment?
  2. What are the tightly coupled systems? What are the advantages?
  3. Explain the different special-purpose systems?
  4. Explain the different OS operations?
  5. Explain the different sets of OS services?
  6. Define the following:
i)                    Context switch  ii) Dispatcher  iii) Job scheduling
  1. What is a system program, explain its different categories?
  2. Explain the Layered Approach of structuring on OS.
  3. Define virtual machine with fig. Explain its working.
  4.  What are the benefits of a virtual machine?

UNIT-2

1.      What is thread? Explain the different threading models.
2.      What is a process? Explain PCB.
3.      Explain the various scheduling criteria’s.
4.      Explain the different states of a process.
5.      List the different types of Schedulers and differentiate between them.
6.      Define IPC. Explain Message-Passing Systems?
7.      Explain the benefits of using threads?
8.      Consider the following set of process:

Process
Arrival time
Burst time
P1
0
8
P2
1
4
P3
2
9
P4
3
5
i)                    Draw the Gantt chart illustrating the execution of these processes using preemptive SJF.
ii)                  Compute the average waiting time and average turnaround time.

9.      Consider the snap-shot
             
Process
Burst time
Priority
P1
10
3
P2
1
1
P3
2
3
P4
1
4
P5
5
2
i)                    Draw the Gantt charts using
a)      FCFS  b) SJF  c) non preemptive priority 1 has highest priority
d)  RR algorithm. Time Quantum=1ms.
           ii)        Calculate average waiting time and average turnaround time.
iii)                Which of the scheduling algorithm results in the minimal average waiting time?
10.  Write a program using fork ( ) system call to create a process, where parent waits for child to complete its execution.
11.  Explain the concept of thread cancellation.

UNIT-3

  1. What is critical section problem? Give its general structure. Explain the requirements that must be satisfied by solution to critical section problem.
  2. Give an algorithm for critical section problem involving at least ‘2’ processes satisfying all necessary and sufficient conditions.
  3. What is a semaphore? How can it be used to solve mutual exclusion problem? Give a solution to bounded buffer problem using semaphores.
  4. With necessary syntax describe the term monitor.
  5. Describe the critical section problem.
  6. Describe ‘TestAndSet( )’ and ‘ Swap’ instructions of binary semaphore variable.
  7. What are the semaphores? Explain two primitive semaphore operations. What are the advantages of semaphores?
  8. Explain signal and wait primitive structures of binary semaphore variable.
  9. What are monitors, Explain?

UNIT-4

  1. Explain how resource allocation graph is used to determine deadlocks?
  2. What are the different methods for handling deadlocks? Explain Bonker’s algorithm?
  3. “A safe state is not a deadlock state but a deadlock state is an unsafe state”. Explain.
  4. What is a deadlock? Explain the four necessary conditions for a deadlock to occur.
  5. Explain the different options to recover from a deadlock.
  6. Define the terms: safe state and safe sequence. Give an algorithm to find whether or not the system is in safe state.
  7. Explain how deadlock can be prevented?
  8. What is a wait for graph, how it is used for detecting deadlocks.
  9. Draw the Resource Allocation Graph for the following situation. Determine if the system is deadlock,
Given sets P, R & E                             P={P1,P2,P3}                           R={R1,R2,R3,R4}
E={ P1->R1,P2->R3,R1->P2,R2->P2,R2->P1,R3->P3}
  1. Consider the following snap-shot of the system:

Allocation
Max
Available

R1  R2  R3  R4
R1  R2  R3  R4
R1  R2  R3  R4
P1
0     0     1      2
  0    0     1     2                       
2     1     0     0
P2
2     0     0      0      
  2    7     5     0               

P3
0     0     3      4    
  6    6     5     6            

P4
2     3     5      4      
  4    3     5     6    

P5
0     3     3      2                     
  0    6     5     2          


i)                    Compute the NEED matrix.
ii)                   Is the system in safe state? Justify.
iii)                Can a request (0 1 0 0) from p3 be safely granted.
  1. Give deadlock detection algorithm for single and multiple instances of resources.

UNIT-5

  1. What is Paging and Swapping?
  2. With a neat diagram, discuss the steps involved in handling a page fault.
  3. 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
For a memory with three frames. How many page faults would occur for LRU, FIFO and optimal page replacement algorithms? Which is most efficient among them?
  1. What do you mean by a address binding? Explain with necessary steps, the binding of instructions and data to memory address.
  2. What do you mean by a copy-on-write? Where it is used? Explain in brief.
  3. Consider the following page reference string:
1        0  7  1  0  3  1  3  2  0  3  2  4  0  3  2  1  0  7
For a memory with three frames. How many page faults would occur for LRU, FIFO and optimal page replacement algorithms? Which is most efficient among them?
  1. Consider the following page reference string:
0        9  0  1  8  1  8  7  8  7  1  2  8  2  7  8  2  3  8  3
For a memory with three frames. How many page faults would occur for LRU, FIFO and optimal page replacement algorithms? Which is most efficient among them?
  1. Explain the segmentation memory management. Describe the hardware support required for its implementation.
  2. What do you mean by dynamic storage allocation problem? Explain the possible solutions to this problem.
  3. Explain the concept of forward-mapped page table.
  4. Write a note on Thrashing.
  5. On system using demand paged memory it takes 0.12µs to satisfy memory request. If the page is in memory. If the page is not in memory the requesr takes 5000 µs. What would the page fault rate need to be to achieve an effective access time 1000 µs? Assume the system is only running a single process and the CPU is idle during the page swaps.

UNIT-6

  1. Explain the following:
i)                    File types  ii) File operations  iii) File attribute
  1. Explain the methods for implementing directories.
  2. Explain any two file allocation methods with their merits and demerits.
  3. What do you mean by free space list? With suitable examples, explain any two methods of implementation of a free space list.
  4. What are the major methods used for allocating a disk space? Explain each, with suitable examples.
  5. With the help of a neat diagram, describe:
i)                    Tree- structured directory
ii)                  Acyclic-graph directory
  1. Explain Virtual File System (VFS).
  2. Discuss the directory implementation using:
i)                    Linear list     ii) Hash table
  1. What is meant by ‘Consistency Semantics’? Explain the consistency semantics as implemented in a modern O.S.

UNIT- 7

  1. Write a note on following:
i)                    SCAN and C-SCAN disk scheduling
ii)                  Disk attachment
  1. Describe the access matrix model used for protection purpose in computer system.
  2. Explain the following disk scheduling algorithms:
i)                    SSTF    ii) SCAN    iii) LOOK
  1. Explain the following:
i)                    Disk management    ii) Swap-space management
  1. What are the goals of protection?
  2. Explain principles of protection.
  3. Suppose the position of cylinder is at 53, sketch the graphical representation for the queue of pending requests in order – 98, 183, 37, 122, 14, 124, 65,67 for FCFS,SSTF and LOOK scheduling schemes. Give your comment on this scenario for above schemes.

UNIT-8

  1. What are the components that the kernel module supports under Linux? Explain in detail.
  2. What is Linux file system? Explain conflict resolution mechanism of Linux.
  3. Explain design principles of Linux system.
  4. What are inter process communication facility in Linux.
  5. Explain I/O system in Linux.
  6. Write short notes on:
i)                    System calls  ii) Processes and Threads   iii) Virtual memory












V

OBJECTIVES OF OPERATING SYSTEM



OBJECTIVES


Operating systems are essential part of any computer system. It is a program that manages computer hardware it provides a basis for application program and acts as an intermediary between computer user and computer hardware. It is the field undergoing rapid change. As computer are now prevalent in every application from games through the most sophisticated planning tools. For the systems to work properly and user friendly the proper design of operating system is very important.

    This subject provides an introductory course in operating system. It covers the different concepts of process management, memory management, storage management, protection and security. The operating system makes a computer more convenient and efficient to use. It permits the effective development, testing and introduction of new system functions without interfering with service. Operating system is large and complex, it must be created piece by piece, and each of these pieces should be well delineated portion of the system with carefully defined inputs, outputs and functions.




















Operating System Syllabus (10CS53)



OPERATING SYSTEMS

Subject Code: 10CS53                                                                                    I.A. Marks : 25
Hours/Week : 04                                                                                Exam Hours: 03
Total Hours : 52                                                                                 Exam Marks: 100

PART – A
UNIT – 1                                                                                                         6 Hours
Introduction to Operating Systems, System structures: What operatingsystems do; Computer System organization; Computer System architecture;Operating System structure; Operating System operations; Process management; Memory management; Storage management; Protection andsecurity; Distributed system; Special-purpose systems; Computing environments.Operating System Services; User - Operating System interface;System calls; Types of system calls; System programs; Operating System design and implementation; Operating System structure; Virtual machines;Operating System generation; System boot.

UNIT – 2                                                                                                         7 Hours
Process Management: Process concept; Process scheduling; Operations on processes; Inter-process communication. Multi-Threaded Programming:Overview; Multithreading models; Thread Libraries; Threading issues.Process Scheduling: Basic concepts; Scheduling criteria; Scheduling algorithms; Multiple-Processor scheduling; Thread scheduling.

UNIT – 3                                                                                                         7 Hours
Process Synchronization : Synchronization: The Critical section problem;Peterson’s solution; Synchronization hardware; Semaphores; Classical problems of synchronization; Monitors.

UNIT – 4                                                                                                         6 Hours
Deadlocks: Deadlocks: System model; Deadlock characterization; Methods for handling deadlocks; Deadlock prevention; Deadlock avoidance; Deadlock detection and recovery from deadlock.

PART – B
UNIT – 5                                                                                                         7 Hours
Memory Management: Memory Management Strategies: Background;Swapping; Contiguous memory allocation; Paging; Structure of page table;Segmentation. Virtual Memory Management: Background; Demand paging;Copy-on-write; Page replacement; Allocation of frames; Thrashing.

UNIT – 6                                                                                                         7 Hours
File System, Implementation of File System: File System: File concept;Access methods; Directory structure; File system mounting; File sharing;Protection. Implementing File System: File system structure; File system implementation; Directory implementation; Allocation methods; Free space management

UNIT – 7                                                                                                         6 Hours
Secondary Storage Structures, Protection : Mass storage structures; Disk structure; Disk attachment; Disk scheduling; Disk management; Swap space management. Protection: Goals of protection, Principles of protection,Domain of protection, Access matrix, Implementation of access matrix,Access control, Revocation of access rights, Capability-Based systems.

UNIT – 8                                                                                                         6 Hours
Case Study: The Linux Operating System: Linux history; Design principles; Kernel modules; Process management; Scheduling; Memory management; File systems, Input and output; Inter-process communication.

Text Books:

  1. Abraham Silberschatz, Peter Baer Galvin, Greg Gagne: Operating System Principles, 8th edition, Wiley India, 2009. (Listed topics only from Chapters 1 to 12, 17, 21)

Reference Books:

1. D.M Dhamdhere: Operating systems - A concept based Approach,2nd Edition, Tata McGraw- Hill, 2002.
2. P.C.P. Bhatt: Introduction to Operating Systems: Concepts and Practice, 2nd Edition, PHI, 2008.
3. Harvey M Deital: Operating systems, 3rd Edition, Pearson Education, 1990.