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 181
- Compare and Swap, and the Atomic Variable 185
- Mutex Locks and the Spinlock 189
- Semaphores: Wait and Signal 192
- Counting and Binary Semaphores, Without Busy Waiting 196
- The Bounded Buffer Problem 200
- The Readers and Writers Problem 203
- The Dining Philosophers Problem 207
- Deadlock and Starvation from Semaphores Used Wrongly 211
Module II Memory Management: Main Memory, Swapping, Contiguous Memory 15 Hrs
- The Address the Program Uses, and the Address the Hardware Sees 215
- Binding an Address: Compile, Load and Run Time 218
- The Memory Management Unit and the Relocation Register 221
- The Base and Limit Registers 224
- Dynamic Loading and Dynamic Linking 227
- Swapping 230
- What Swapping Costs, and When It Is Worth It 233
- One Partition, then Fixed Partitions 236
- Variable Partitions and the List of Holes 239
- First Fit, Best Fit and Worst Fit 242
- External and Internal Fragmentation, and Compaction 245
- Paging: the Page and the Frame 248
- The Page Table and the Address Split 251
- Working a Paging Sum 254
- The Frame Table, and What Paging Costs in Space 257
- The Translation Look-aside Buffer 260
- Effective Access Time with a TLB 263
- Protection Bits, the Valid-Invalid Bit, and Shared Pages 266
- Hierarchical Page Tables 269
- Hashed and Inverted Page Tables 272
- Segmentation 275
- Segmentation with Paging 278
- Virtual Memory: What It Is, and What It Buys 281
- Demand Paging 284
- The Page Fault, Step by Step 287
- The Effective Access Time of Demand Paging 290
- Page Replacement: the Problem and the Reference String 293
- First In First Out Replacement, and Belady's Anomaly 297
- Optimal Replacement 301
- Least Recently Used Replacement 304
- Approximating LRU: the Reference Bit and Second Chance 307
- Counting Based Replacement, and Page Buffering 310
- Every Replacement Algorithm on One Reference String 314
- Allocation of Frames: How Many Each Process Gets 317
- Global and Local Replacement 320
- Thrashing 323
- The Working Set Model 326
- Page Fault Frequency, and What to Do About Thrashing 329
- The System Model: Resources and Instances 332
- The Four Necessary Conditions 335
- The Resource Allocation Graph 338
- The Four Ways to Handle a Deadlock 341
- Deadlock Prevention, Condition by Condition 344
- The Safe State 348
- The Resource Allocation Graph Algorithm 351
- The Banker's Algorithm 354
- A Request Tested Against the Banker's Algorithm 357
- Detecting a Deadlock with a Wait-For Graph 361
- The Detection Algorithm for Several Instances 364
- Recovery by Killing Processes 367
- Recovery by Taking Resources Back 370
- What a File Is 373
- The Operations on a File, and the Open File Table 376
- File Types and the Structure Inside a File 379
- Sequential Access 382
- Direct Access 385
- Indexed Access 388
- The Single Level and Two Level Directory 391
- The Tree Directory 394
- The Acyclic Graph and General Graph Directory 397
- The Layers of a File System 401
- The Structures on the Disk Itself 404
- A Real File System Opened Up 407
- The Disk the File System Is Written On 410
- Disk Scheduling 413
- The Examination Itself 417
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.