Chico CSCI 340 - Chapter 8.1 Memory Management (33 pages)

Previewing pages 1, 2, 15, 16, 17, 32, 33 of 33 page document View the full content.
View Full Document

Chapter 8.1 Memory Management



Previewing pages 1, 2, 15, 16, 17, 32, 33 of actual document.

View the full content.
View Full Document
View Full Document

Chapter 8.1 Memory Management

71 views

Lecture Notes


Pages:
33
School:
California State University, Chico
Course:
Csci 340 - Operating Systems

Unformatted text preview:

Chapter 8 1 Memory Management Chapter 8 Memory Management Chapter 8 1 Background Swapping Contiguous Allocation Chapter 8 2 Paging Chapter 8 3 Segmentation Segmentation with Paging Operating System Concepts 8 2 Silberschatz Galvin and Gagne 2005 Background We know that In order to facilitate throughput to support the CPU in executing programs a program must be brought into memory for it to be run There are a number of memory management schemes available nowadays and the choice depends on many factors the most prominent of which are paging and segmentation each of which is very much influenced by a corresponding hardware design necessary to support these management schemes Each of the major approaches to managing memory requires its own hardware organization and supporting data structures Operating System Concepts 8 3 Silberschatz Galvin and Gagne 2005 Introduction Fact To keep the CPU executing a number of processes must be in memory at any given instant Memory is organized into arrays of words or bytes each of which are directly addressable We use hexadecimal addresses A program counter in the control unit of the CPU contains the address of the next instruction to fetch and execute The execution of an instruction may involve a number of memory fetches not just the instruction to be fetched and executed but oftentimes operands that must also be fetched and manipulated When an instruction is executed Say Add X to Y as part of the execution of the instruction both X and Y must be each fetched After an instruction is executed the result must be stored back into memory at Y Memory units only see streams of addresses that need to be accessed We are interested in the continuous sequence of memory addressed that are generated by the running program that require memory accesses In order to fully appreciate how memory is accessed we need to start with the hardware since this will drive how memory is accessed Operating System Concepts 8 4 Silberschatz Galvin and Gagne 2005



View Full Document

Access the best Study Guides, Lecture Notes and Practice Exams

Loading Unlocking...
Login

Join to view Chapter 8.1 Memory Management and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Chapter 8.1 Memory Management and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?