Operating System Notes | B.Sc. (Information Technology) Semester 3 | Mumbai University | munotes
Official Notes munotes.in
Operating System
B.SC. (INFORMATION TECHNOLOGY) · SEMESTER 3
Strictly as per the University of Mumbai NEP syllabus in force for B.Sc. (Information Technology)
For B.Sc. (Information Technology) students of the University of Mumbai and all its affiliated colleges
Open the book ↓munotes.in Second Year
Contents
Module I Operating System Overview: Basics of operating systems: Generations, Types, Structure, Services, System Calls, System Boot, System Programs, Protection and Security
- What an Operating System Is 1
- The Two Jobs: Handing Out the Machine, and Hiding It 5
- Interrupts, Traps and the Two Modes 8
- The Timer, and Getting the Processor Back 12
- The First Generation: a Machine with No Operating System 15
- The Second Generation: the Batch and the Resident Monitor 18
- The Third Generation: Multiprogramming and Spooling 21
- The Fourth Generation: Time Sharing and the Personal Computer 24
- Batch, Multiprogrammed and Time Sharing Systems 27
- Multiprocessor Systems 30
- Distributed and Clustered Systems 33
- Real Time Systems, Hard and Soft 36
- Embedded and Handheld Systems 39
- The Simple Structure and the Monolithic Kernel 42
- The Layered Approach 45
- The Microkernel 48
- Modules, Hybrid Kernels and the Virtual Machine 51
- The Services an Operating System Offers 55
- The User Interface: Command Line, Batch and Graphical 58
- What a System Call Is, and the Trap that Makes One 61
- How a System Call Carries Its Arguments 64
- The Six Kinds of System Call 67
- System Boot: from Power On to the First Process 70
- System Programs 74
- Protection 77
- Security 81
- Protection and Security on a Machine You Can Log In To 85
- What a Process Is 89
- The Memory a Process Occupies 92
- Operations on Processes: Creation and Termination 95
- The Five Process States 99
- The Queues a Process Waits In 102
- The Process Control Block 105
- The Context Switch, and What It Costs 108
- The Five Scheduling Criteria 112
- First Come First Served 115
- Shortest Job First 118
- Shortest Remaining Time First 121
- Priority Scheduling and Starvation 124
- Round Robin and the Quantum 128
- Multilevel Queue Scheduling 132
- Multilevel Feedback Queue Scheduling 135
- Every Algorithm on One Problem 139
- Evaluating a Scheduling Algorithm: Deterministic Modelling 143
- Queueing Models, Simulation and Implementation 146
- What a Thread Is 150
- User Threads, Kernel Threads and the Three Models 153
- Threading Issues 156
- Two Processes, One Variable, and an Answer that Changes 160
- A Race Condition Made to Happen 163
- The Critical Section Problem 167
- Two Attempts that Fail, and Why 171
- Peterson's Solution 174
- Why Peterson's Solution Works, and Where It Still Breaks 178
- Synchronization Hardware: Test and Set 182
- Compare and Swap, and the Atomic Variable 186
- Mutex Locks and the Spinlock 190
- Semaphores: Wait and Signal 193
- Counting and Binary Semaphores, Without Busy Waiting 197
- The Bounded Buffer Problem 201
- The Readers and Writers Problem 204
- The Dining Philosophers Problem 208
- Deadlock and Starvation from Semaphores Used Wrongly 212
Module II Memory Management: Main Memory, Swapping, Contiguous Memory 15 Hrs
- The Address the Program Uses, and the Address the Hardware Sees 216
- Binding an Address: Compile, Load and Run Time 219
- The Memory Management Unit and the Relocation Register 222
- The Base and Limit Registers 225
- Dynamic Loading and Dynamic Linking 228
- Swapping 231
- What Swapping Costs, and When It Is Worth It 234
- One Partition, then Fixed Partitions 237
- Variable Partitions and the List of Holes 240
- First Fit, Best Fit and Worst Fit 243
- External and Internal Fragmentation, and Compaction 246
- Paging: the Page and the Frame 249
- The Page Table and the Address Split 252
- Working a Paging Sum 255
- The Frame Table, and What Paging Costs in Space 258
- The Translation Look-aside Buffer 261
- Effective Access Time with a TLB 264
- Protection Bits, the Valid-Invalid Bit, and Shared Pages 267
- Hierarchical Page Tables 270
- Hashed and Inverted Page Tables 273
- Segmentation 276
- Segmentation with Paging 279
- Virtual Memory: What It Is, and What It Buys 282
- Demand Paging 285
- The Page Fault, Step by Step 288
- The Effective Access Time of Demand Paging 291
- Page Replacement: the Problem and the Reference String 294
- First In First Out Replacement, and Belady's Anomaly 298
- Optimal Replacement 302
- Least Recently Used Replacement 305
- Approximating LRU: the Reference Bit and Second Chance 308
- Counting Based Replacement, and Page Buffering 311
- Every Replacement Algorithm on One Reference String 315
- Allocation of Frames: How Many Each Process Gets 318
- Global and Local Replacement 321
- Thrashing 324
- The Working Set Model 327
- Page Fault Frequency, and What to Do About Thrashing 330
- The System Model: Resources and Instances 333
- The Four Necessary Conditions 336
- The Resource Allocation Graph 339
- The Four Ways to Handle a Deadlock 342
- Deadlock Prevention, Condition by Condition 345
- The Safe State 349
- The Resource Allocation Graph Algorithm 352
- The Banker's Algorithm 355
- A Request Tested Against the Banker's Algorithm 358
- Detecting a Deadlock with a Wait-For Graph 362
- The Detection Algorithm for Several Instances 365
- Recovery by Killing Processes 368
- Recovery by Taking Resources Back 371
- What a File Is 374
- The Operations on a File, and the Open File Table 377
- File Types and the Structure Inside a File 380
- Sequential Access 383
- Direct Access 386
- Indexed Access 389
- The Single Level and Two Level Directory 392
- The Tree Directory 395
- The Acyclic Graph and General Graph Directory 398
- The Layers of a File System 402
- The Structures on the Disk Itself 405
- A Real File System Opened Up 408
- The Disk the File System Is Written On 411
- Disk Scheduling 414
- The Examination Itself 418
The chapters
Every chapter of this book comes with the B.Sc. (Information Technology) Semester 3 notes.
The cover and the contents are free to look through. Buy the notes once to read every chapter of every subject in this semester.
Notes: ₹499 Already bought it? Sign in
Free either way: question papers, the syllabus, and the cover and contents of every book.
The rest of this subject
These notes are cut from the University's printed syllabus. Open the syllabus itself, or the past papers, for the same subject.