Memory Management I - PowerPoint PPT Presentation

1 / 23
About This Presentation
Title:

Memory Management I

Description:

concept which is part of all current MMS. A. Paged memory ... VBscript ' Script will determine and display Total Size and Free Space ' available on drive C ' ... – PowerPoint PPT presentation

Number of Views:33
Avg rating:3.0/5.0
Slides: 24
Provided by: garylo1
Category:

less

Transcript and Presenter's Notes

Title: Memory Management I


1
Memory Management I
Written Assignment 2 due Systems Assignment 1
returned Systems Assignment 2 due next time
2
Memory Management I
3
Memory Management I
III. Memory Management II
  • manage the scarce resource of memory

4
Memory Management I
all previous MMS required
  • - entire program in RAM
  • - program in contiguous RAM
  • - entire program to remain in RAM

5
Memory Management I
A. Paged memory allocation scheme
  • concept which is part of all current MMS

6
Memory Management I
A. Paged memory allocation scheme
  • removes the requirement that entire program must
    be in contiguous RAM

7
Memory Management I
A. Paged memory allocation scheme
  • 1. Programs (jobs) are divided into equal-size
    pages

8
Memory Management I
OS
Program
Disc storage
RAM memory
9
Memory Management I
2. Tradeoffs
  • a. adv - doesnt require contiguous
    RAMefficient memory usage

10
Memory Management I
2. Tradeoffs
  • b. dis - additional OS work system overhead

11
Memory Management I
2. Tradeoffs
  • OS needs a PMTfig 3.1

12
Memory Management I
3. OS implementation
  • a. Job Table
  • b. Page Map Table
  • c. Memory Map Table
  • d. address resolution

13
another classic company
14
Memory Management I
B. Demand Paging MMS
  • first virtual memory MMS

15
Memory Management I
B. Demand Paging MMS
  • 1. only those necessary pages are loaded for
    execution

16
Memory Management I
B. Demand Paging MMS
  • viable scheme due to locality of reference

17
Memory Management I
2. Tradeoffs
  • a. adv - virtual memory

18
Memory Management I
2. Tradeoffs
  • b. dis - additional OS work system overhead
  • ex thrashing

19
Memory Management I
3. OS implementation
  • a. expanded PMT

20
Systems Assignment 1
Bare Bones Code Set fso CreateObject("Scripti
ng.FileSystemObject") Set drv
fso.GetDrive(C) Wscript.Echo Total Size
drv.TotalSize vbCrLf Free Space
drv.FreeSpace
Professional Programming Practice
21
Systems Assignment 1
' Gary Locklair ' CSC350 - Systems Assignment
1 ' Windows Scripting Host ' VBscript ' ' Script
will determine and display Total Size and Free
Space ' available on drive C ' ' explicitly
declare varibles with Dim ' Dim fso, drv, msg,
drvPath ' ' hardcode drive path ' drvPath
"C\" ' ' fso will be the object instance of the
FileSystemObject class ' Scripting is the "type
library" CreateObject is a method ' Set fso
CreateObject("Scripting.FileSystemObject") ' '
note the use of object.method syntax ' Set drv
fso.GetDrive(fso.GetDriveName(drvPath))
22
Systems Assignment 1
' ' build up msg string for output ' msg
"Drive " UCase(drvPath) " - " msg msg
drv.VolumeName " " ' ' Note formatting not
necessary for this assignment ' msg msg
"Total Space " FormatNumber(drv.TotalSize /
1024, 0) msg msg " KB" " " msg msg
"Free Space " FormatNumber(drv.FreeSpace /
1024, 0) msg msg " KB" " " ' ' Note
output will appear in two separate, successive
windows ' Wscript.echo msg Wscript.echo "End of
Output"
23
Zeb goes ice fishing
Write a Comment
User Comments (0)
About PowerShow.com