Survey
* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project
CMPT 300: Operating Systems Review THIS REIVEW SHOULD NOT BE USED AS PREDICTORS OF THE ACTUAL QUESTIONS APPEARING ON THE FINAL EXAM. What Will Be in The Final Exam? Concepts & Definitions Conditions & Assumptions E.g., interrupt, page fault Algorithms E.g., contiguous allocation Vs. linked list Events E.g., conditions of deadlocks? Pros & Cons E.g., working set, aging E.g., Peterson’s solution, scheduling algorithms Data structures E.g., page table, process table 2 How to Go Over the Materials? Read text book and lecture notes Reading lecture notes only may not be enough Understand the concepts and definitions Keep thinking Relation between concepts E.g., DMA Vs. paging Why does an algorithm work here? Extensions and implications of principles E.g., strict alternation, Peterson’s solution 3 Ch01: Overview of OS OS structures Hardware Basic concepts CPU, memory, disk, bus, DMA Process (thread), deadlock, I/O, file system Sections not covered in the final exam 1.2. History of operating systems 1.3. The operating system zoo 4 Ch02: Processes And Threads Processes Differences with programs? States and transitions Process table Fork() Threads Differences with processes? Pros & Cons? Kernel space Vs. user space implementation Typical applications ( I/O and CPU mixed task) 5 Ch02 (Cont.) Inter-process communication Race condition Critical region & Mutual exclusion Busy waiting Disable interrupts, lock variables, strict alternation, Peterson’s solution Sleep & wakeup calls, mutexes, semaphores, monitors, message passing Classical IPC problems How to apply mechanisms to solve problems? 6 Ch02 (Cont.) Scheduling Preemptive Vs. non-preemptive Benchmarks: turnaround time, throughput, response time FCFS, SJF, RR, MQ, etc Three-level scheduling Sections not covered in exam 2.5.4: real-time scheduling 2.5.5 policy Vs. mechanism 7 Ch03: Deadlocks Conditions for deadlock Solutions for deadlock problem Ostrich algorithm Detection and recovery Avoidance Prevention Other issues Two-phase locking Starvation 8 Ch04: Memory Management Basic management Swapping Fixed partitions (single queue Vs. multiple queues) Degree of multi-programming Relocation and protection (base & limit registers) Bitmaps Vs. linked list Scenario: memory not enough External fragmentation (memory compaction) Virtual memory Paging: pages Vs. page frames, page faults MMU, TLB, page table, page table entry 9 Ch04 (Cont.) Page replacement algorithms Modeling NRU, FIFO, second chance, clock, LRU, NFU, aging Working set, WSClock algorithm Assumptions, relations Belady’s anomaly Stack algorithm Design issues Global Vs. local, page sizes, shared pages, copyon-write 10 Ch04 (Cont.) Implementation Segmentation Page fault handling, backing stores Advantages Pure segmentation Vs. segmentation with paging Sections not covered in final exam 4.6.7, 4.7.3, 4.7.6, 4.8.3 11 Ch05: I/O Principles of I/O hardware Principles of I/O software Device controllers Memory-mapped I/O Vs. I/O port number DMA Vs. Interrupt Goals Three approaches I/O software layers Four layers Functions and relationship 12 Ch05 (Cont.) Disks Clocks Structure, format, layout Disk arm scheduling algorithms RAID Stable storage Basic work principle Sections not covered in the final exam In 5.4, CD-ROM, CD-R, DVD, 5.4.4 5.5.2, 5.5.3, 5.6-5.9 13 Ch06: File Systems Files Attributes, operations Memory-mapped files Directories Hierarchical directory Path name 14 Ch06 (Cont.) Implementations Files: contiguous Vs. linked list, i-nodes Directories: directory entry, long file name Shared files Disk space management Free list Vs. bitmap Reliability Backup: full dump Vs. incremental dump Consistency check: block Vs. directory check 15 Ch06 (Cont.) Performance Caching, block read ahead, reducing disk arm motion Sections not covered in final exam 6.3.8: log-structured file systems 6.4.1-6.4.4 16