CSE 120 Principles of Operating Systems

Similar documents
Final Review. Geoffrey M. Voelker. Final mechanics Memory management Paging Page replacement Disk I/O File systems Advanced topics

CSE 120 Principles of Operating Systems

CSC369 Operating Systems. Spring 2007

CS153: Final Review1. Chengyu Song. Slides modified from Harsha Madhyvasta, Nael Abu-Ghazaleh, and Zhiyun Qian

CSE 4/521 Introduction to Operating Systems. Lecture 27 (Final Exam Review) Summer 2018

Architectural Support. Processes. OS Structure. Threads. Scheduling. CSE 451: Operating Systems Spring Module 28 Course Review

Final Exam Preparation Questions

CSE 451: Operating Systems. Section 10 Project 3 wrap-up, final exam review

CS 571 Operating Systems. Final Review. Angelos Stavrou, George Mason University

Announcements. Final Exam. December 10th, Thursday Patrick Taylor Hall. Chapters included in Final. 8.

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING UNIT I

b. How many bits are there in the physical address?

Distributed Deadlock Detection

Final Review. Quiz-5 Solutions. Tevfik Koşar

Swapping. Jin-Soo Kim Computer Systems Laboratory Sungkyunkwan University

Fall COMP3511 Review

Swapping. Jinkyu Jeong Computer Systems Laboratory Sungkyunkwan University

Final Exam April 14, 2007 COSC 3407: Operating Systems

Design of Operating System

2 nd Half. Memory management Disk management Network and Security Virtual machine

EECS 482 Introduction to Operating Systems

CS4411 Intro. to Operating Systems Final Fall points 10 pages

Module 1: Basics and Background Lecture 4: Memory and Disk Accesses. The Lecture Contains: Memory organisation. Memory hierarchy. Disks.

ECE331: Hardware Organization and Design

Virtual Memory. Reading. Sections 5.4, 5.5, 5.6, 5.8, 5.10 (2) Lecture notes from MKP and S. Yalamanchili

Question Points Score Total 100

CS510 Operating System Foundations. Jonathan Walpole

CSE 421/521 - Operating Systems Fall Lecture - XXV. Final Review. University at Buffalo

CPSC 421 Database Management Systems. Lecture 11: Storage and File Organization

CS350: Final Exam Review

Operating Systems Design Exam 2 Review: Spring 2011

CS 416: Opera-ng Systems Design March 23, 2012

MC7204 OPERATING SYSTEMS

CSI3131 Final Exam Review

Agenda. CS 61C: Great Ideas in Computer Architecture. Virtual Memory II. Goals of Virtual Memory. Memory Hierarchy Requirements

Virtual Memory. Chapter 8

Operating Systems. Week 9 Recitation: Exam 2 Preview Review of Exam 2, Spring Paul Krzyzanowski. Rutgers University.

COMP 3361: Operating Systems 1 Final Exam Winter 2009

Optimal Algorithm. Replace page that will not be used for longest period of time Used for measuring how well your algorithm performs

STORING DATA: DISK AND FILES

CSE 153 Design of Operating Systems

CSE 120 Principles of Operating Systems

SNS COLLEGE OF ENGINEERING

CSE 120. Operating Systems. March 27, 2014 Lecture 17. Mass Storage. Instructor: Neil Rhodes. Wednesday, March 26, 14

CSCI 4210 Operating Systems CSCI 6140 Computer Operating Systems Sample Final Exam Questions (document version 1.0) WITH SELECTED SOLUTIONS

Today: Protection! Protection!

CSC369 Lecture 9. Larry Zhang, November 16, 2015

Exam Guide COMPSCI 386

SYED AMMAL ENGINEERING COLLEGE CS6401- OPERATING SYSTEM

CIS 21 Final Study Guide. Final covers ch. 1-20, except for 17. Need to know:

Course Description: This course includes the basic concepts of operating system

MEMORY: SWAPPING. Shivaram Venkataraman CS 537, Spring 2019

Memory Management Virtual Memory

Outlines. Chapter 2 Storage Structure. Structure of a DBMS (with some simplification) Structure of a DBMS (with some simplification)

I/O Device Controllers. I/O Systems. I/O Ports & Memory-Mapped I/O. Direct Memory Access (DMA) Operating Systems 10/20/2010. CSC 256/456 Fall

1. Creates the illusion of an address space much larger than the physical memory

CS 153 Design of Operating Systems Winter 2016

CS 537: Introduction to Operating Systems Fall 2015: Midterm Exam #1

Chapter 9. Storage Management

Operating Systems Comprehensive Exam. Spring Student ID # 3/20/2013

Virtual Memory. Patterson & Hennessey Chapter 5 ELEC 5200/6200 1

CSE 141 Computer Architecture Spring Lectures 17 Virtual Memory. Announcements Office Hour

CSE 451: Operating Systems Winter Lecture 12 Secondary Storage. Steve Gribble 323B Sieg Hall.

I/O Systems and Storage Devices

Disk Scheduling COMPSCI 386

CS6401- Operating System QUESTION BANK UNIT-IV

Midterm #2 Exam April 26, 2006 CS162 Operating Systems

CS433 Final Exam. Prof Josep Torrellas. December 12, Time: 2 hours

CS 537 Fall 2017 Review Session

CS370 Operating Systems

Operating Systems Comprehensive Exam. Fall Student ID # 10/31/2013

Paging. Jinkyu Jeong Computer Systems Laboratory Sungkyunkwan University

1993 Paper 3 Question 6

CS 61C: Great Ideas in Computer Architecture. Virtual Memory

INSTITUTO SUPERIOR TÉCNICO. Architectures for Embedded Computing

Operating Systems Design Exam 2 Review: Spring 2012

CSE 120 Principles of Operating Systems

Virtual Memory. CSCI 315 Operating Systems Design Department of Computer Science

Computer Architecture. Lecture 8: Virtual Memory

CS4411 Intro. to Operating Systems Final Fall points 12 pages

Operating Systems Design Exam 2 Review: Fall 2010

CSE 120 Principles of Operating Systems

PAGE REPLACEMENT. Operating Systems 2015 Spring by Euiseong Seo

CS 5523 Operating Systems: Memory Management (SGG-8)

Chapter 8. Virtual Memory

Lecture 12: Demand Paging

Midterm Exam #2 Solutions April 20, 2016 CS162 Operating Systems

Database Applications (15-415)

Memory Management Topics. CS 537 Lecture 11 Memory. Virtualizing Resources

Readings and References. Virtual Memory. Virtual Memory. Virtual Memory VPN. Reading. CSE Computer Systems December 5, 2001.

Today: Protection. Sermons in Computer Science. Domain Structure. Protection

Main Points of the Computer Organization and System Software Module

Memory management. Requirements. Relocation: program loading. Terms. Relocation. Protection. Sharing. Logical organization. Physical organization

Operating Systems. Operating Systems Professor Sina Meraji U of T

Operating Systems. No. 9 ศร ณย อ นทโกส ม Sarun Intakosum

CS 162 Operating Systems and Systems Programming Professor: Anthony D. Joseph Spring Lecture 18: Naming, Directories, and File Caching

INSTITUTE OF AERONAUTICAL ENGINEERING Dundigal, Hyderabad COMPUTER SCIENCE AND ENGINEERING QUESTION BANK OPERATING SYSTEMS

CS 153 Design of Operating Systems Winter 2016

CS 162 Operating Systems and Systems Programming Professor: Anthony D. Joseph Spring Lecture 18: Naming, Directories, and File Caching

LECTURE 12. Virtual Memory

Transcription:

CSE 120 Principles of Operating Systems Fall 2014 Final Review Geoffrey M. Voelker

Course Plugs If you enjoy CSE 120 topics, you might find some other courses interesting this year CSE 124: Networked Services (Winter) CSE 123: Networking (Spring) CSE 125: Software System Design and Implementation (Spring) CSE 127: Introduction to Computer Security (Spring) December 10, 2014 CSE 120 Final Review 2

Overview Final mechanics Memory management Paging Page replacement Disk I/O File systems The End December 10, 2014 CSE 120 Final Review 3

Final Mechanics Bulk of the final covers material after midterm Memory management, file systems, advanced topics Some material on concurrency, synchronization Synch primitives, synch problems Based upon lecture material, homeworks, and project I will use at least one question from this review on the exam Closed book, one double-sided 8.5 x11 page of notes Yes, just one Sample final on class web site Again, please, do not cheat December 10, 2014 CSE 120 Final Review 4

Memory Management Why is memory management useful? Why do we have virtual memory if it is so complex? What are the mechanisms for implementing MM? Physical and virtual addressing Partitioning, paging, and segmentation Page tables, TLB What are the policies related to MM? Page replacement What are the overheads related to providing memory management? December 10, 2014 CSE 120 Final Review 5

Virtualizing Memory What is the difference between a physical and virtual address? What is the difference between fixed and variable partitioning? How do base and limit registers work? What is internal fragmentation? What is external fragmentation? What is a protection fault? December 10, 2014 CSE 120 Final Review 6

Paging How is paging different from partitioning? What are the advantages/disadvantages of paging? What are page tables? What are page table entries (PTE)? Know these terms Virtual page number (VPN), page frame number (PFN), offset Know how to break down virtual addresses into page numbers, offset How have you implemented paging in Nachos? December 10, 2014 CSE 120 Final Review 7

Page Table Entries What is a page table entry? In Nachos? What are all of the PTE bits used for? Modify Reference Valid Protection December 10, 2014 CSE 120 Final Review 8

Segmentation What is segmentation? How does it compare/contrast with paging? What are its advantages/disadvantages with respect to partitioning, paging? What is a segment table? How can paging and segmentation be combined? December 10, 2014 CSE 120 Final Review 9

Page Tables Page tables introduce overhead Space for storing them Time to use them for translation What techniques can be used to reduce their overhead? How do two-level (multi-level) page tables work? December 10, 2014 CSE 120 Final Review 10

TLBs What problem does the TLB solve? How do TLBs work? Why are TLBs effective? How are TLBs managed? What happens on a TLB miss fault? What is the difference between a hardware and software managed TLB? December 10, 2014 CSE 120 Final Review 11

Page Faults What is a page fault? How is it used to implement demand paged virtual memory? What is the complete sequence of steps, from a TLB miss to paging in from disk, for translating a virtual address to a physical address? What is done in hardware, what is done in software? December 10, 2014 CSE 120 Final Review 12

Advanced Mem Management What is shared memory? What is copy on write? What are memory mapped files? December 10, 2014 CSE 120 Final Review 13

Page Replacement What is the purpose of the page replacement algorithm? What application behavior does page replacement try to exploit? When is the page replacement algorithm used? Understand Belady s (optimal), FIFO, LRU, Approximate LRU, LRU Clock, Working Set, Page Fault Frequency What is thrashing? December 10, 2014 CSE 120 Final Review 14

Disk Understand the memory hierarchy concept, locality Physical disk structure Platters, surfaces, tracks, sectors, cylinders, arms, heads (Actually, I m not going to test on disk physical details) Disk interface How does the OS make requests to the disk? Disk performance What steps determine disk request performance? What are seek, rotation, transfer? December 10, 2014 CSE 120 Final Review 15

Disk Scheduling How can disk scheduling improve performance? What are the issues in disk scheduling? Review Response time, throughput, fairness FCFS, SSTF, SCAN, C-SCAN December 10, 2014 CSE 120 Final Review 16

File Systems Topics Files Directories Sharing Protection Layouts Buffer Cache What is a file system? Why are file systems useful (why do we have them)? December 10, 2014 CSE 120 Final Review 17

Files and Directories What is a file? What operations are supported? What characteristics do they have? What are file access methods? What is a directory? What are they used for? How are the implemented? What is a directory entry? How are directories used to do path name translation? December 10, 2014 CSE 120 Final Review 18

Protection What is file protection used for? How is it implemented? What are access control lists (ACLs)? What are capabilities? What are the advantages/disadvantages of each? December 10, 2014 CSE 120 Final Review 19

File System Layouts What are file system layouts used for? What are the general strategies? Contiguous, linked, indexed? What are the tradeoffs for those strategies? How do those strategies reflect file access methods? What is an inode? How are inodes different from directories? How are inodes and directories used to do path resolution, find files? December 10, 2014 CSE 120 Final Review 20

File Buffer Cache What is the file buffer cache, and why do operating systems use one? What is the difference between caching reads and caching writes? What are the tradeoffs of using memory for a file buffer cache vs. VM? December 10, 2014 CSE 120 Final Review 21

Summary Any remaining questions? December 10, 2014 CSE 120 Final Review 22

The End Congratulations on surviving CSE 120! It s a challenging course, but I hope you found it worthwhile Good luck, and thanks for a great class! December 10, 2014 CSE 120 Final Review 23