Chien-Chung Shen CIS/UD

Slides:



Advertisements
Similar presentations
CSC 501 Operating Systems Principles
Advertisements

Chapter 15 Address Translation Chien-Chung Shen CIS, UD
CMPT 300: Operating Systems I Dr. Mohamed Hefeeda
OS Organization. OS Requirements Provide resource abstractions –Process abstraction of CPU/memory use Address space Concurrency Thread abstraction of.
Operating System Organization
Slide 3-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 3 Operating System Organization.
Slide 3-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 3.
Basics of Operating Systems March 4, 2001 Adapted from Operating Systems Lecture Notes, Copyright 1997 Martin C. Rinard.
Processes Part I Processes & Threads* *Referred to slides by Dr. Sanjeev Setia at George Mason University Chapter 3.
Chapter 2 Operating System Overview Patricia Roy Manatee Community College, Venice, FL ©2008, Prentice Hall Operating Systems: Internals and Design Principles,
Protection and the Kernel: Mode, Space, and Context.
1 COMPSCI 110 Operating Systems Who - Introductions How - Policies and Administrative Details Why - Objectives and Expectations What - Our Topic: Operating.
CS533 Concepts of Operating Systems Jonathan Walpole.
The IBM VM CS450/550 Section 2 Stephen Kam. IBM VM - Origins Originally an experimental OS called “CP-67” Designed to run on the IBM System/360 Model.
Background: Operating Systems Brad Karp UCL Computer Science CS GZ03 / M th November, 2008.
Computers Operating System Essentials. Operating Systems PROGRAM HARDWARE OPERATING SYSTEM.
Processes Introduction to Operating Systems: Module 3.
Chapter 2 Introduction to OS Chien-Chung Shen CIS, UD
Operating System Structure A key concept of operating systems is multiprogramming. –Goal of multiprogramming is to efficiently utilize all of the computing.
We will focus on operating system concepts What does it do? How is it implemented? Apply to Windows, Linux, Unix, Solaris, Mac OS X. Will discuss differences.
Introduction to Operating Systems and Concurrency.
Operating Systems Engineering Based on MIT (2012, lec3) Recitation 2: OS Organization.
Protection of Processes Security and privacy of data is challenging currently. Protecting information – Not limited to hardware. – Depends on innovation.
CS4315A. Berrached:CMS:UHD1 Introduction to Operating Systems Chapter 1.
Chapter 2 Introduction to OS Chien-Chung Shen CIS/UD
Major OS Components CS 416: Operating Systems Design, Spring 2001 Department of Computer Science Rutgers University
Page 1 2P13 Week 1. Page 2 Page 3 Page 4 Page 5.
Memory Protection: Kernel and User Address Spaces Andy Wang Operating Systems COP 4610 / CGS 5765.
Chapter 2 Operating System Overview Dave Bremer Otago Polytechnic, N.Z. ©2008, Prentice Hall Operating Systems: Internals and Design Principles, 6/E William.
Welcome to Intro to Operating Systems Course Website:
1.1 Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9 th Edition Chapter 1: Introduction What Operating Systems Do √ Computer-System Organization.
Chapter 15 Address Translation Chien-Chung Shen CIS/UD
Computer System Structures
Modularity Most useful abstractions an OS wants to offer can’t be directly realized by hardware Modularity is one technique the OS uses to provide better.
Introduction to Operating Systems
Virtualization Virtualize hardware resources through abstraction CPU
Process Management Process Concept Why only the global variables?
Memory Protection: Kernel and User Address Spaces
Mechanism: Address Translation
CS490 Windows Internals Quiz 2 09/27/2013.
Chien-Chung Shen CIS/UD
Chapter 3: Windows7 Part 1.
Introduction to Operating Systems
Memory Protection: Kernel and User Address Spaces
Memory Protection: Kernel and User Address Spaces
Memory Protection: Kernel and User Address Spaces
GEOMATIKA UNIVERSITY COLLEGE CHAPTER 2 OPERATING SYSTEM PRINCIPLES
Chapter 26 Concurrency and Thread
HW & Systems: Operating Systems IS 101Y/CMSC 101 Computational Thinking and Design Tuesday, October 22, 2013 Carolyn Seaman University of Maryland, Baltimore.
Chapter 33: Virtual Machines
What does an Operating System Do?
Operating Systems : Overview
Threads Chapter 4.
Prof. Leonardo Mostarda University of Camerino
Operating Systems : Overview
Concurrency, Processes and Threads
Operating Systems : Overview
Operating Systems : Overview
Operating Systems: A Modern Perspective, Chapter 3
Operating Systems : Overview
Operating Systems : Overview
The Main Features of Operating Systems
Computer System Structures
Chapter 2 Operating System Overview
Process Management -Compiled for CSIT
CSE 542: Operating Systems
Operating System Overview
Chapter 2 Operating System Overview
Mechanism: Address Translation
Memory Protection: Kernel and User Address Spaces
Presentation transcript:

Chien-Chung Shen CIS/UD cshen@udel.edu Chapter 13 Address Space Chien-Chung Shen CIS/UD cshen@udel.edu

Lack of Memory Abstraction Earlier systems did not provide much of an abstraction of (physical) memory OS == library that sat in memory starting from physical address 0 One running program (process) that sat in memory starting from physical address 64K

Multiprogramming Multiple concurrent processes increase utilization of CPU time sharing & interactive Expensive to save/restore contents in memory when context switching so leave processes in memory and switch between them One critical issue protection

Address Space Abstraction of physical memory Running program’s view of physical memory: contain all the memory state of running program The process is NOT in memory at physical addresses 0 through 16KB Virtual address vs. physical address Address spaces of threads ? How to virtualize memory ? How can the OS build this abstraction of a private, potentially large address space for multiple running processes (all sharing memory) on top of a single, physical memory?

Principle of Isolation Isolation is a key in building reliable systems If two entities are properly isolated from each other, this implies that one can fail without affecting the other OS strives to isolate processes from each other and in this way prevent one from harming the other By using memory isolation, OS further ensures that running programs cannot affect the operation of the underlying OS By walling off pieces of the OS from other pieces of the OS, microkernel may provide greater reliability than monolithic kernel design

Goals of Virtualized Memory Transparency virtualized memory is implemented in a way that is invisible to (hard to be noticed by) the running program program behaves as if it has its own private physical memory OS and hardware do all the work to multiplex memory among many different processes, and hence implement the illusion Efficiency time (not much slower) and space (not much more space) Protection protect process from one another and the OS itself from processes enables isolation among processes; each process should be running in its own isolated cocoon, safe from the ravages of other faulty or event malicious processes

Virtualized Memory Any address you can see as a programmer of a user-level program is a virtual address Only the OS, through its tricky techniques of virtualizing memory, that knows where in the physical memory of the machine these instructions and data values lie If you print out an address in a program, it’s a virtual one, an illusion of how things are laid out in memory; only the OS (and the hardware) knows the real truth Virtualized memory is responsible for providing the illusion of a large, sparse, private address space to programs, which hold all of their instructions and data therein OS, with hardware help, will take each of these virtual memory references, and turn them into physical addresses which can be presented to the physical memory to fetch the desired information OS will do this for many processes at once, making sure to protect programs from one another, as well as protect the OS