CSE 120 Lecture Notes - Lecture 8: Binary Tree, Fits, Context Switch

47 views4 pages

Document Summary

Permissions: r, w, x ( r ead, w rite , e xecute) Note: process acts as if it owns the whole memory (it doesn"t fyi) 0 to n-1 (where n is the size of your memory) Allocated regions of physical memory (to avoid) In reality: one cpu divided up for each process, and one memory divided up for each process. Each subdivison of each process contains its own text, data, stack regions. Processes moving in and out take so much time! To allocate: find large enough hole, allocate region within hole, leave smaller hole. First (or next) fit: find the first/next hole that fits. Best fit : tightest fit fits as perfectly as possible. Worst fit: - hole that results in the largest remaining hole ( actually the worst btw xd) We would rather waste memory space than cpu time! Compaction: combine all the fragments together to create a giant fragment.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents