Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

Seqmented Memory Manage ment

In the last examble


The m "Edit" can be shared between
and
usey
ogr am(
wser
proram (2)
The
The cede hould be Teentrand (n 4 should noBt be
Self modiytq

shouldn+ mod:self while execution

7
When we s e a
procedural Janguage to write a
prograc
We O1ganize the roaram (toa number of functions
and cal heunctions rom a Main Program.
Main
Square
Yoot

Biinq
factoviad

may be o dijterent stzus

All Hthese unchions taken togelther fem the logreal addrecs space
athe þreqramn

While mantaining he v Tnslead havina paqes esame s(ze , J i s


Modular eruchure quie logiead, h e the ogieal
the proaram pace af the preqram hould conais
of egments| ) barkkons, oheve
each e the parh ton Co11esponds to o n e
tunch'on.o ditherent Size.

Similav to MVVT
Each 4hose uneions Can be abegmenteach.

qal address
0qeneyated
Main b y CP
Base address
Squave Mau'n
Limit
Facorial
Zegment Man
Biling
Location
n Masnb
memor Y

(Physeal
Addess
Main Memor.

S 2egment number

doset within a Aeqment

e n t 4able

CPU Bose Limit

loqra cess
qenerated by cPU

Segmen+ Talble

yes Main Memory


No

TRAP

8egmenBed Memony Management


-
sharing ommon unchion such asEdit between User
User program

andand with egmenlation

Maisntaning toomathon about the Aegment A1gepreviousy npaging


Maintauning
all Aame Sze }
Pages ate

aged Seqmented Memory Managesmen


Exploiting he advarmages e beth aging" and Aegmentoion.

apPla Pagd
withing d {terent seqmens

CPU base addreds Page Meu table (pMT

CPU qneiates\
a
Logr a
ddres LimitPMT Yes
Bage
No
TRAP
n an entry in
Segmentable
beaable
gment
Page number
orthnhe Segmen

A*)

Mame
number, 'wheve
Ahe
the aq is ocated
page Page Map table .

Physical
addss Main Memo yY
Ket say a seqment ze 40 KB s divided into pages ot
Ao KB ach

L >Noo, ot
we
ony need 4 ames (of loke
each) that may
be
congous fo
egmented Paged Memoty Management

spleiding he advand aqes o both bag'ng and


egmentaH

-X

Net is Virtual
MemoryManagemenk (Demand Pa

You might also like