New 302 Cs-Al Os
New 302 Cs-Al Os
COURSE OUTCOMES:
After Completing the course student should be able to
CO1 Compare various types of operating systems
CO2 Analyse fcfs, sstf, scan and look disk scheduling algorithm techniques
CO3 Implement fcfs, sjf, priority, rrcpu scheduling algorithm.
CO4 Summarize various memory management techniques.
CO5 Differentiate between remote procedure call and remote method invocation.
Course content
Unit-1 Basics of Operating Systems: Definition – Generations of Operating systems – Types of Operating Systems,
OS Service, System Calls, OS structure: Layered, Monolithic, Microkernel Operating Systems – Concept of Virtual
Machine. Process Management. Processes: Definition , Process Relationship , Process states , Process State
transitions , Process Control Block ,Context switching – Threads – Concept of multithreads , Types of threads.
Process Scheduling: Definition , Scheduling objectives ,Types of Schedulers ,Scheduling criteria : CPU utilization,
Throughput, Turnaround Time, Waiting Time, Response Time (Definition only) , Scheduling algorithms : Pre
emptive and Non , pre emptive , FCFS – SJF – RR , Multiprocessor scheduling , IPC.
UNIT- II Definition, Deadlock characteristics, Deadlock Prevention, Deadlock Avoidance: banker’s algorithm,
Deadlock detection and Recovery. Race Conditions, Critical Section, Mutual Exclusion, Hardware Solution, Strict
Alternation, Peterson’s Solution, The Producer Consumer Problem, Semaphores, Event Counters, Monitors,
Message Passing, and Classical IPC Problems: Reader’s & Writer Problem, Dinning Philosopher Problem etc.,
Scheduling, Scheduling Algorithms
Unit – III Basic Memory Management: Definition, Logical and Physical address map, Memory allocation :
Contiguous Memory allocation – Fixed and variable partition – Internal and External fragmentation and Compaction
, Paging : Principle of operation – Page allocation – Hardware support for paging – ,Protection and sharing –
Disadvantages of paging.
Virtual Memory: Basics of Virtual Memory – Hardware and control structures – Locality of reference, Page fault ,
Working Set , Dirty page/Dirty bit – Demand paging ( Concepts only) – Page Replacement policies : Optimal (OPT)
, First in First Out (FIFO), Second Chance (SC), Not recently used (NRU) and Least Recently used (LRU)
Unit – IV Principles of I/O Hardware: I/O devices, Disk structure, Disk scheduling algorithm File concept, Aaccess
methods, File types, File operation, Directory structure, File System structure, Allocation methods
(contiguous ,linked, indexed), Free-space management (bit vector, linked list, grouping).
Unit -V Security Environment, Design Principles Of Security, User Authentication, Protection Mechanism:
Protection Domain, Access Control List Introduction to Network, Distributed and Multiprocessor Operating
Systems. Case Studies: Unix/Linux, WINDOWS and other Contemporary Operating Systems.
Books Suggested:
1. Modern Operating system by Andrew S. Tanenbaum , PHI
2. Operating system concepts, by Abraham Silberschatz, Willey.
SOCST
LNCT University, BHOPAL
List of Experiment
1. Write a program to implement FCFS CPU scheduling algorithm.
2. Write a program to implement SJF CPU scheduling algorithm.
3. Write a program to implement Priority CPU Scheduling algorithm.
4. Write a program to implement Round Robin CPU scheduling algorithm.
5. Write a program to compare various CPU Scheduling Algorithms over different
Scheduling Criteria.
6. Write a program to implement classical inter process communication problem(producer
consumer).
7. Write a program to implement classical inter process communication problem(Reader
Writers).
8. Write a program to implement classical inter process communication
roblem(Dining_Philosophers).
9. Write a program to implement & Compare various page replacement algorithm.
10. Write a program to implement & Compare various Disk & Drum scheduling Algorithms
11. Write a program to implement Banker’s algorithms.
12. Write a program to implement Remote Proccedure Call(RPC).
13. Write a Devices Drivers for any Device or pheriperal.
SOCST
LNCT University, BHOPAL
SOCST
LNCT University, BHOPAL
SOCST
LNCT University, BHOPAL
SOCST
LNCT University, BHOPAL
SOCST
LNCT University, BHOPAL
References
ABRAHAM SILBERSCHATZ, PETER B. GALVIN, GREG GAGNE, “Operating System
R1: Concepts”, Wiley, 9/E
R2: William Stallings,"Operating Systems" Internals and Design Principles, Pearson
R3: D.M DHAMDARE “Operating System and System Programming”
SOCST
LNCT University, BHOPAL
Assignment 2 (CO 2)
1) Explain Deadlock. What are the necessary conditions for deadlock?
2) What is safe state? Describe an algorithm to check whether a given state is safe or not.
3) Discuss Banker’s algorithm with example.
4) Compare deadlock prevention and deadlock avoidance.
5) Explain Dinning Philosopher problem
Assignment 3 (CO 3)
Assignment 4 (CO 4)
Assignment 5 (CO 5)
SOCST
LNCT University, BHOPAL
Q.2. What is Scheduler? Explain queuing diagram representation of process Scheduler with figure.
OR
Q.2 What is Process Control Block? Give the difference between a process and a program.
(CO1 5marks)
Q.3. What do you mean by Deadlock Avoidance? Explain the use of Banker’s Algorithm for Deadlock
Avoidance with illustration. OR
Q.4What is Deadlock? List the conditions that lead to deadlock. How Deadlock can be prevented?
OR
Q.4. Five batch jobs A to E arrive at same time. They have estimated running times 10,2,6,8,4 minutes. Their
priorities are 3,2,5,4,1 respectively with 5 being highest priority. For each of the following algorithm
determine mean process turnaround time. Ignore process swapping overhead. Round Robin (q=3), Priority
Scheduling, FCFS, SJF. (CO2 5 marks)
SOCST
LNCT University, BHOPAL
6
Q.1 What is Page Fault? Explain the process with the help of diagram. Also, define swapping CO3 (6marks)
OR
Q.1 Explain the LRU page replacement algorithm. Why is it difficult to implement it in pure form?
Q.2What is File system and what are the various File access method?
CO4 (6 marks)
OR
Q.3 What do you mean by Virtual memory? Why is it needed? Discuss the hardware support required by the operating
system to implement the virtual memory concept. CO5 (8 marks)
OR
Q.3 What is location of reference and explain its use? What is working set? What is it used for? Also discuss the working
set medal in detail.
CS-302/ AL-301
B.TECH (CSE/AIML/DS)V SEMESTER
EXAMINATION
OPERATING SYSTEM
SOCST
LNCT University, BHOPAL
(SECTION –A)
iv. What do you mean by the term user Authentication and Access control list.
vi. What is file? Explain file attributes and file operations.
vii. What is Fragmentation? Explain Difference between Internal and External Fragmentation.
(SECTION –B)
iii. Explain classification of Memory management scheme? Discuss the advantages and disadvantages of non-con -
tiguous storage allocation.
iv. Suppose that a disk drive has 200 cylinders, numbered 0 to 199. The work queue is: 23, 89, 132, 42, 187. The
disk head starts at number 100. Determine the total distance for the following disk scheduling algorithms:
a) Scan b) Look c) C-Look d) FCFS
v. Discuss case study of LINUX and UNIX operating system.
SOCST
LNCT University, BHOPAL
6
vi. What is Race condition? Explain Producer Consumer problem.
Define Process and Process States. Draw the diagram of PCB.
SOCST
LNCT University, BHOPAL
6
Non-preemptive scheduling
Unit – II
1) Which of the following algorithms is used to avoid deadlock? (C02)
Dynamic Programming algorithm
Primarily algorithms
Banker's algorithm
Deadlock algorithm
2) RAG stands for : (C02)
Resource and Graph
Resource Allocation Graph
Resource and Graph
None of these
3) A safe state is : (C02)
Deadlock state
No deadlock state
Polling state
None of these
SOCST
LNCT University, BHOPAL
None of these
Unit – III
SOCST
LNCT University, BHOPAL
None of these
Unit – IV
What is the full name of FAT? (CO4)
File attribute table
File allocation table
Font attribute table
Format allocation table
Which method is the best among file allocation methods? (CO4)
Linked
Contiguous
Indexed
None of the these
A collection of related information defined by its user is known as (CO4)
File
Directory
Disk
None of the these
A heart of NTFS is (CO4)
MVT
MFT
MDT
None of the these
Unit – V
Which of the following operating system does not require a command to run? (CO5)
Kali Linux
Windows
SOCST
LNCT University, BHOPAL
Unix
All of the these
SOCST