Operating Systems Review. Outline Intro –What is an OS, OS History Operating System Concepts –Processes, Files, System Calls, Shells Operating System.

Slides:



Advertisements
Similar presentations
Chapter 4 Memory Management Page Replacement 补充:什么叫页面抖动?
Advertisements

Part IV: Memory Management
Operating Systems Review.
Virtual Memory Operating System Concepts chapter 9 CS 355
Operating Systems ECE344 Ding Yuan Final Review Lecture 13: Final Review.
File Systems.
Module 9: Virtual Memory
Module 10: Virtual Memory Background Demand Paging Performance of Demand Paging Page Replacement Page-Replacement Algorithms Allocation of Frames Thrashing.
Virtual Memory Introduction to Operating Systems: Module 9.
Chapter 10 Operating Systems.
CS 311 – Lecture 21 Outline Memory management in UNIX
Chapter 11: File System Implementation
CMPT 300: Final Review Chapters 8 – Memory Management: Ch. 8, 9 Address spaces Logical (virtual): generated by the CPU Physical: seen by the memory.
Memory Management Norman White Stern School of Business.
CS4513 Distributed Computer Systems Review. What is a file descriptor? –What information must it contain? –What information might it contain?
Operating Systems Review. Questions What are two functions of an OS? What “layer” is above the OS? What “layer” is below the OS?
Multiprocessing Memory Management
Understanding Operating Systems1 Operating Systems Virtual Memory Thrashing Single-User Contiguous Scheme Fixed Partitions Dynamic Partitions.
Chapter 12: File System Implementation
CS 104 Introduction to Computer Science and Graphics Problems
Operating Systems Final Exam Review. Topics F Virtual Memory F File Systems F I/O Devices F Project 3: Macro Shell.
CMPT 300: Operating Systems Review THIS REIVEW SHOULD NOT BE USED AS PREDICTORS OF THE ACTUAL QUESTIONS APPEARING ON THE FINAL EXAM.
Chapter 9: Virtual Memory. 9.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Feb 22, 2005 Chapter 9: Virtual Memory Background.
CMPT 300: Final Review Chapters 8 – Memory Management: Ch. 8, 9 Address spaces Logical (virtual): generated by the CPU Physical: seen by the memory.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 11: File System Implementation.
Memory Management 1 CS502 Spring 2006 Memory Management CS-502 Spring 2006.
CS-3013 & CS-502, Summer 2006 Memory Management1 CS-3013 & CS-502 Summer 2006.
File System Structure §File structure l Logical storage unit l Collection of related information §File system resides on secondary storage (disks). §File.
Operating Systems Final Exam Review. Topics Paging Virtual Memory File Systems I/O Devices Project 3: Macro Shell.
Operating Systems Review. Questions What are two functions of an OS? What “layer” is above the OS? What “layer” is below the OS?
OS Spring’04 Virtual Memory: Page Replacement Operating Systems Spring 2004.
Operating Systems Review. Questions What are two functions of an OS? What “layer” is above the OS? What “layer” is below the OS?
Operating Systems Review. Questions What are two functions of an OS? What “layer” is above the OS? What “layer” is below the OS?
Layers and Views of a Computer System Operating System Services Program creation Program execution Access to I/O devices Controlled access to files System.
Memory Management ◦ Operating Systems ◦ CS550. Paging and Segmentation  Non-contiguous memory allocation  Fragmentation is a serious problem with contiguous.
Rensselaer Polytechnic Institute CSC 432 – Operating Systems David Goldschmidt, Ph.D.
Silberschatz and Galvin  Chapters 3 and 5 Possible questions –Tracing a given program involving fork, exec, semaphores, and share memory –Wring.
Review of Memory Management, Virtual Memory CS448.
CS 153 Design of Operating Systems Spring 2015 Final Review.
Memory Management Techniques
30 October Agenda for Today Introduction and purpose of the course Introduction and purpose of the course Organization of a computer system Organization.
Virtual Memory Virtual Memory is created to solve difficult memory management problems Data fragmentation in physical memory: Reuses blocks of memory.
1 CS.217 Operating System By Ajarn..Sutapart Sappajak,METC,MSIT Chapter 11 File-System Implementation Slide 1 Chapter 11: File-System Implementation.
(a) What is the output generated by this program? In fact the output is not uniquely defined, i.e., it is not necessarily the same in each execution. What.
CS 153 Design of Operating Systems Spring 2015 Final Review 2.
Memory Management & Virtual Memory © Dr. Aiman Hanna Department of Computer Science Concordia University Montreal, Canada.
1/31/20161 Final Exam Dec 10. Monday. 4-7pm. Phelp 1160 Similar to midterm The exam is closed book. You can bring 2 page of notes (double sided) Nachos.
File Systems.  Issues for OS  Organize files  Directories structure  File types based on different accesses  Sequential, indexed sequential, indexed.
MIDTERM REVIEW CSCC69 Winter 2016 Kanwar Gill. What is an OS? What are processes and threads? Process states? Diagram showing the state changes What data.
Chapters 3 and 5 Possible questions
Lesson Objectives Aims Key Words Paging, Segmentation, Virtual Memory
SLC/VER1.0/OS CONCEPTS/OCT'99
File-System Implementation
UNIT–IV: Memory Management
Chapter 9: Virtual Memory
William Stallings Computer Organization and Architecture
Section 10: Last section! Final review.
Module 9: Virtual Memory
Chapter 9: Virtual-Memory Management
Lecture 27: Virtual Memory
Operating Systems Review.
5: Virtual Memory Background Demand Paging
Outline Module 1 and 2 dealt with processes, scheduling and synchronization Next two modules will deal with memory and storage Processes require data to.
CSE451 - Section 10.
Operating Systems Lecture 1.
CSE451 - Section 10.
Module 9: Virtual Memory
COMP755 Advanced Operating Systems
Presentation transcript:

Operating Systems Review

Outline Intro –What is an OS, OS History Operating System Concepts –Processes, Files, System Calls, Shells Operating System Structure –Simple Systems, Virtual Machines Micro Kernels Processes

True or False Unix is a “simple structure” OS Micro Kernels are faster than other OSes Virtual Machines are faster than other OSes

Questions What are two functions of an OS? What “layer” is above the OS? What “layer” is below the OS?

Questions What causes OS to change? –Or, why aren’t we still running MS-DOS? What is a process? What is a file?

Questions What is a PCB? List steps that occur during interrupt What is (average) waiting time?

Questions Explain how SJF works True or False: –FCFS is optimal in terms of avg waiting time –Most processes are CPU bound –The shorter the time quantum, the better

Review What is Peterson’s Solution? What does Test_and_Set do? What is one major advantage of semaphores over the above two?

Possible Outputs? int main() { int *num, shm_id shm_id = shmget(502) num = (int *) shmat(shm_id) *num = *num + 1 printf("%d\n", *num) } (Assume shm is 0 when first Created)

Review What is a relocation register? What are some of the sections in an object module? What are some of the steps that occur during linking?

Review What is the Memory Management Unit? What is external fragmentation? What is internal fragmentation?

True or False With paging, physical address spaces are contiguous With paging, logical address spaces are contiguous Paging reduces the size of the possible address space used by a process

Review Does paging have fragmentation? –No? Then why not? –Yes? Then what kind? What are the overheads associated with paging? What is run-time, dynamic linking?

Review True or False: a)The logical address space cannot be bigger than the physical address space b)Processes have big address spaces because they always need them Demand paging: a)Is unrelated to basic paging b)Brings logical pages into physical memory when requested by a process c)Increases memory requirements for a system d)All of the above e)None of the above

Review Page faults –What is a page fault? –What does an OS do during a page fault? What is a Page Replacement Algorithm? –What is “Belady’s Anomaly”? –How does the Optimal algorithm work? –How does Enhanced Second Chance work? What is thrashing? –How do we fix it?

Review What is a file descriptor? –What information must it contain? –What information might it contain?

Linked-List with Index How many files are there? How large are they? How many free blocks are there? Physical Block 0 1 null

I-Node How many data blocks are there? If you added 3 more data blocks to the file, what would happen? Disk blocks i-node null 62 77

Review Directories: –In what way is a directory different than a file? –In what way is a directory similar to a file? Aliases: –Describe a hard-link –Describe a soft-link Free space management: –What are two common methods of keeping track of free blocks?