Course File OS Session 2022-23
Course File OS Session 2022-23
of
Operating Systems
(KCS-401)
Session 2022-23
Submitted by:
Dr Jay Shankar Prasad
INDEX FOR COURSE FILE
Mission of Institute
➢ Place a multidisciplinary engineering education ecosystem that transforms learners into future innovators, entrepreneurs,
and professional leaders.
➢ Create an ambiance of interdisciplinary research, innovation, and creativity to address regional and global challenges
for benefit of human life and the environment.
➢ Provide the environment for enhancing knowledge, and inculcating critical & design thinking, life skills through
quality learning Systems.
➢ Collaborate with globally renowned academic & research institutions and corporate for improving productivity
and economics.
DEPARTMENT VISION AND MISSION
Vision of the Department
To produce computer science and engineering graduates with problem solving abilities, research aptitude, teamwork, and
✓ To prepare students with strong technical skills and analytical minds for real time industrial needs.
✓ To nurture the students to contribute in research and innovation for nation building.
✓ To develop students with leadership qualities to be entrepreneurs and contribute their services to society.
PO3 Design/development of solutions: Design solutions for complex computer engineering problems and
design system components or processes that meet the specific needs with appropriate considerations for
the public health and safety, and the cultural, societal, and environmental considerations.
PO4 Conduct investigations of complex problems: Use research-based knowledge and research methods
including design of experiments, analysis and interpretation of data, and synthesis of the information to
provide conclusions
PO5 Modern tool usage: Create, select, and apply appropriate techniques, resources, and modern engineering
and IT tools including prediction and modeling to complex engineering activities with an understanding
of the limitations
PO6 The engineer and society: Apply reasoning informed by the contextual knowledge to assess societal,
health, safety, legal and cultural issues and the consequent relevant to the professional engineering
practices
PO7 Environment and sustainability: Understand the impact of the professional engineering solutions in
societal and environmental contexts, and demonstrate the knowledge of, and need for sustainable
development
PO8 Ethics: Apply ethical principles and commit to professional ethics and responsibilities and norm of the
engineering practices
PO9 Individual and team work: Function effectively as an individual, and as a member or leader in diverse
teams, and in multidisciplinary settings
PO10 Communications: Communicate effectively on complex engineering activities with the engineering
community and with society at large, such as, being able to comprehend and write effective reports and
design documentation, make effective presentations, and give and receive clear instructions
PO11 Project management and finance: Demonstrate knowledge and understanding of the engineering and
management principles and apply these to one’s own work, as a member and leader in a team, to manage
projects and in multidisciplinary environments.
PO12 Life-long learning: Recognize the need for, and have the preparation and ability to engage in
independent and life learning in the broadest context of technological change.
PSO-1: Professional Skill: will be able to understand the concepts of Computer Science & Engineering and its application in databases,
system software, web designing, big data analytics, and machine learning techniques, artificial intelligence and networking, for efficient
design of computer-based systems of varying complexity.
PSO-2: Problem-Solving Skills: will be able to understand, apply standard practices, techniques & tools for development of software
projects using open-ended programming environments, which support higher order cognitive skills like data interpretation, formulation
of hypothesis and experimentation, to deliver a quality product.
PSO-3: Successful Career and Entrepreneurship: will be able to employ the best programming skills, environments, and platforms, to
identify and build innovative career options, and enthusiasm for higher studies.
Academic Calender 2022-23 Even Sem
Course Plan and outcome
Operating systems course is intended as a general introduced to the techniques used to implement operating
systems and related kinds of systems software. The topics covered will be functions and structure of operating
systems, process management (creation, synchronization, and communication); processor scheduling; deadlock
prevention, avoidance, and recovery; main-memory management; virtual memory management (swapping,
paging, segmentation and page-replacement algorithms); control of disks and other input/output devices; file-
system structure and implementation; and protection and security.
OUTCOMES:
At the end of the course students will be able to:
1. Outline various concepts and features of Operating systems.
2. Compare various operating systems with respect to characteristics and features
3. Implement algorithm of CPU Scheduling, Memory Scheduling and disk scheduling.
COURSE OUTCOME
CO 1: Understand the structure and functions of OS.
CO 2: Learn about Processes, Threads and Scheduling Algorithms.
CO 3: Understand the principles of Concurrency and Deadlocks
CO 4: Learn Various Memory Management Scheme
CO 5: Study I/O Management and File Systems
CO PO PO PO PO PO PO PO PO PO PO P P PS PS PS
1 2 3 4 5 6 7 8 9 10 O O O O O
11 12 1 2 3
CO1 2 3 1 1 1 1 2 2 1
CO2 1 2 3 1 1 1 1 1 2 2 2 2
CO3 1 2 3 2 1 1 1 2 2 2
CO4 2 2 3 2 2 1 1 2 2 2 2
CO5 2 3 1 1 1 1 2 2 1
AV 1.6 2.4 3 1.8 1.5 1 1 1 1 2 2 2 1.6
G
Text books:
1. Silberschatz, Galvin and Gagne, “Operating Systems Concepts”, Wiley
2. SibsankarHalder and Alex A Aravind, “Operating Systems”, Pearson Education
3. Harvey M Dietel, “ An Introduction to Operating System”, Pearson Education
4. D M Dhamdhere, “Operating Systems : A Concept based Approach”, 2nd Edition,
5. TMH 5. William Stallings, “Operating Systems: Internals and Design Principles ”, 6th Edition,
Pearson Education
LIST OF SLOW LEARNER STUDENTS ( CT1 )
SNO I. D. No. Roll No. Name
1 2100906 2101320100035 ANIKET KUMAR NIRALA
2 2100708 2101320100013 ADITYA KUMAR
3 2100837 2101320100034 ANGAD YADAV
4 2100391 2101320100020 AKASH YADAV
5 2100372 2101320100041 ARVIND KUMAR
6 2100878 2101320100047 AVINASH TRIPATHI
7 200654 2001320100017 ADITYA RAJ SINGH
8 200725 2001320100050 DHRUV RAJPUT
9 200056 2001320100054 GAURAV KARMAKAR
10 2100909 2101320100003 ABHISHEK KUMAR
11 2100859 2101320100005 ABHISHEK PRATAP MALL
12 2100567 2101320100007 ABU HANZALA
13 2100793 2101320100008 ACHYUT ANAND
14 2100961 2101320100010 ADARSH GAUTAM
15 2100844 2101320100011 ADARSH KUMAR SINGH
16 2100741 2101320100014 ADITYA KUMAR JAISWAL
17 2100829 2101320100015 ADITYA YADAV
18 2100553 2101320100017 AKASH KUMAR
19 2100947 2101320100018 AKASH RAJ
20 2100856 2101320100019 AKASH RAJ VERMA
21 2100838 2101320100024 AMAN KUMAR
22 2100772 2101320100026 AMAN KUMAR DUBEY
23 2100773 2101320100027 AMAN KUMAR YADAV
24 2100841 2101320100029 AMAN SINGH
25 2100794 2101320100030 AMIT KUMAR
26 2100736 2101320100031 AMIT KUMAR YADAV
27 2100570 2101320100042 ARYAN MITTAL
28 2100887 2101320100048 AVINISH KUMAR
29 2100915 2101320100050 AYUSH MISHRA
30 2100592 2101320100058 DEEPENDRA SINGH
31 2100720 2101320100061 DIVYA SHREYASH
32 2200052 2201320109001 ADITYA KUMAR
33 2200136 2201320109002 AKRITI KUMARI RAJBHAR
34 2200108 2201320109003 AMAN RAJ
35 2200017 2201320109005 ANUP YADAV
36 2200079 2201320109013 MD SHAFEEQUE HAIDER
Faculty Sign
REMEDIAL CLASSES FOR SLOW LEARNER
CT1 Marks
SESSION 2022-23
B.TECH. CSE 2 :: Section : A :: IV SEM (Students List )
S.No. I.D. No. AICTE Enrollment No Name Obtained Marks (30)
UNIT 1
15. Define user mode and kernel mode. Why two modes are required?
16. Distinguish between the client-server and peer-to-peer models of distributed system
17. List any four process management system call.
18. What are the requirements of hard real time and soft real time system?
19. Explain the termParallel System
20. Describe the difference between symmetric and asymmetric multiprocessing?
UNIT 2
1. Explain and differentiate between user level and kernel level thread.
2. Explain the following term related to IPC - Race condition
3. Explain Peterson’s solution for achieving mutual exclusion
4. What is semaphore?
5. Discuss product-consumer problem with semaphore.
6. Write short note on Dining philosopher problem
7. Write short on message passing
8. Write short notes on Starvation
9. Why mutual exclusion required? Explain any 2 methods of achieving mutual exclusion in detail.
10. Explain in detail the following solutions for achieving mutual exclusion TSL instruction
11. What are critical sections?
12. What are Monitors?
13. What is Principle of Concurrency?
14. Explain Sleeping Barbers Problem.
15. Explain Process Generation.
16. Explain the ways in which inter process communication can be achieved.
17. Define the actions taken by a kernel to context switch: a. Among threads b. Among processes
18. What are co-operating processes?
19. Write short on shell
20. Illustrate the use of fork and exec system calls
UNIT 3
1. What are various criteria for a good process scheduling algorithm? Explain any two preemptive
scheduling algorithms in brief.
2. Explain the following process scheduling algorithm
a)Priority scheduling b) Shortest job first scheduling
3. Consider following processes with length of CPU burst time in milliseconds Process Burst time
P1 5
P2 10
P3 2
P4 1
All process arrived in order p1, p2, p3, p4 all time zero
a) Draw Gantt charts illustrating execution of these processes for SJF and round robin (quantum=1)
b) Calculate waiting time for each process for each scheduling algorithm
c) Calculate average waiting time for each scheduling algorithm
4.
5. What are the conditions for deadlock? Explain deadlock detection and recovery in detail.
6. Explain deadlock prevention in detail.
7. Explain deadlock avoidance using banker’s algorithm in details
8. Consider the following snapshot
Allocated 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
P40 0 1 4 0 6 5 6
Answer the following questions using banker’s algorithm: a) What are contents of matrix end?
b) Is the system in safe state? c) If request for process p1 arrives for (0,4,2,0) .Can the request be
granted immediately?
9. A system has three types of resources R1 R2 R3 and their number of units are 3, 2, 2 respectively. Four
processes P1 P2 P3 p4 are currently competing for these resources in following number.
a) P1 is holding one unit of R1 and is requesting for one unit of R2.
b) P2 is holding two units of R2 and is requesting for one unit each of R1 and R3.
c) P3 is holding one unit of R1 and is requesting for one unit of R2.
d) P4 is holding two units of R3 and requesting for one unit of R1.
Determine which if any of the processes are deadlock in this state.
10. Differentiate Pre-emptive and Non-preemptive scheduling giving the application of each of them.
11. What is the criterion used to select the time quantum in case of round-robin scheduling algorithm?
Explain it with a suitable example.
12. Explain FCFS scheduling algorithm. Find the average turnaround time and average waiting time for
the processes given in the table below.
P1 24
P2 3
P3 3