lecture6 - CSCC69H Lecture 6 Dan Zingaro June xx, 2010...

Info iconThis preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: CSCC69H Lecture 6 Dan Zingaro June xx, 2010 Memory Management I Every active process will use memory I CPU scheduling allows processes to share (multiplex) the processor I Must figure out how to share main memory as well I What should be our goals? I Support enough active processes to keep CPU busy I Use memory efficiently (minimize wasted memory) I Keep memory management overhead small Address Binding I When programming, we use variables to refer to memory addresses I These addresses are symbolic I All such addresses must be mapped (bound) to real addresses used for execution I There are several options for when this binding takes place Address Binding... I Option 1: compile-time I Compiler knows the actual addresses that the binary program will use when it runs I Compiler inserts absolute addresses into the binary I No relocation is possible; the OS has no choice for where the program should be loaded Address Binding... I Option 2: load-time (static relocation) I Compiler includes relocateable, logical addresses in the binary I Loader translates these into real addresses when the program is loaded I Program can be loaded at a different address each time it starts, but cannot be relocated as it runs Address Binding......
View Full Document

Page1 / 16

lecture6 - CSCC69H Lecture 6 Dan Zingaro June xx, 2010...

This preview shows document pages 1 - 7. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online