0% found this document useful (0 votes)
11 views

OS Assignment 2

The document discusses memory allocation strategies in computer systems, including best fit and worst fit methods for managing memory. It outlines how memory is allocated to processes based on their size and available memory holes. Additionally, it touches on the importance of memory management units (MMUs) and the impact of paging on memory efficiency.

Uploaded by

mhmpatle
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views

OS Assignment 2

The document discusses memory allocation strategies in computer systems, including best fit and worst fit methods for managing memory. It outlines how memory is allocated to processes based on their size and available memory holes. Additionally, it touches on the importance of memory management units (MMUs) and the impact of paging on memory efficiency.

Uploaded by

mhmpatle
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

SARASWATIEducation Society's PAGE NO.

:
SARASWATI Colege of Engineering DATE:

aLMemoy allocotion staategia


eety allaatisa
) t it
k) Neat fit

P=MB 0S
P2 =2 MB 2 MB
Ps= 5MB
P4 3M8 4MB

IMB

6MB

8MB

2|MB
RAM
SARASWATI Education Society's PAGE NO.:
SARASWATICollege of Engineering DATE:

t t
Jhe wey st aailoble hole that ie i
at allocoted"

2> Sest fit

371Jest t
S ths steategy alusay the losgsik hale at

Ashih aa lse sed cscin to allocat the net

>Nat t
t stasts the seasching ok memykm the
h t aailkll hole that is latge ngh
20sk,30ok.
|ien memoy ratitian o \0o K, 5oo K,
itlest lit, oyt fit,aet fit alsoiths
the 212 K, 4|1K, |2 K
426 K
PAGE NO. :
SARASWATIEducation Society's
DATE:
SARASWATICollege of Engineering

hoe
=2\2K t 212k in 5ook
[SOo- 212- 288 K J

L6o-417 = 83k

P3= 12 K u t l|2 K n 288K


|238- (|2 (76 K
aailalle
P4 426 K

2> Best bt :
300 K hsle
P = 212 K ’ Put 22K im
300-212 = 38K

P2 = 4(7K t 4|7k in Sookhele


IE5oo-4783 K)

PsP3 - (12 K ’ pt (2K in 2 00 K hola


200-1(2 88K]

P =426KRt 426 K in book hole


6o0-4 26=(14K)

34gaytit:
P = 212K t 212k in Gook hole
C600-2\2 =388 KJ
PAGE NO. :
SARASWATIEducation Society's
SARASWATICollege of Engineering DATE:

SARASWATIEducation Society's PAGE NO.

SARASWATI College of Engineering DATE:

T5o0- 417 83KJ

P = l 2K t 2 K in 388 K hole
L388- ||2 276 K J

Pa =4 26Kgtaill eit as no shae auailall


PAGE NO. :
SARASWATIEducation Society's

SARASWATICollege of Engineering DAt


DATE:

Anse

ioss l the aeuadasy toase to main


the
eah
e iceakahind paging is to dunede the he maim menoy

nly shen thy ae lesuisedtheise they


Suside ithe iuonelasy steta-e

is als alld a Atual adiss.


Po

200

P4

Fo

F2
F3
F
Chessisal latualRAM_ Addes
SARASWATIEducation Society's PAGE NO.:

SARASWATI College of Engineering DATE:

Mnoy manlgement nit (MMu):


hyol sdeaess is dene by MMU

P Fo
P 1K P
F2
IR F3
JK F

Pe FG
F7
2(4K) P2
F
P.
P3 K
|2|K
SARASWATIEducation Society's PAGE NO.:

SARASWNTICollege of Engineering DATE:

age no

oae3
tome 2
lge No.2 2 2 lage No.L
age No. 3 33 ame 6 3Poge No.o

5Pase No. 2
6age No. 3

Rhysival
Memsky

Rhyainel
CPU P

gkntatiani
LmitBee
500
agmento (200 3300
2 4600
Begrent3 3 (700

Jale
SARASWATIEducation Society's PAGE NO.:

SARASWATICollege of Engineering DATE:

gmbto
13o0
(700

3300

4500

5500

tecniaa ind h the nmemey is cliascled

Jhe datadsdet eh segnent aie atssd


limitsand la&e
gen talle
Limit Asase
iitLngth o the segmnent
SARASWTIEducation Society's PAGE NO.:
P SARASWATI College of Engineering DATE:

why egnentetinis Reqised


to ie 3t diicles all he nioceis in the
PAGE NO. :
SARASWATIEducation Society's
SARASWATI College of Engineering DATE:

200 400 -Reod late heod


600
2000

JSoo T Iloo
Boa eatte
-to iok(elukat
(pesto)

Readlaite hel
alm atuato

ek ime
Jime taken to och unto th desised tenk.
sakiak (HO):

ah: (eenulae ime)

Reoclte headi
LMoves bak and foth
PAGE NO.:
SARASWATIEducation Society's
DATE
e SARASWATI Collegeof Engineering

mevs to haat thL dota.

Jç seduce th leek tinewe uie dik


Achudaling nlgeiklm
Rotatisnal deley Aetoi to 8otate
he tine bo the i Ahead
nde the heait
Waite ahotnete ao ttattng thiahing

CPU

tiyatin

the

highee
time theie
SARASWATIEducation Society's PAGE NO.:

e SARASWATICollege of Engineering DATE:

goisgta be
this coutiliaien isthoshins duud
thie stte ie all
Q5.hot nte RALD..

Sneyeniiae DiskJ
Recludat
Atcy’
eheey
dota

hould e last
2> Beutity badl aailadilit4
RA D

A A2
Ag A
As
Bota stiing
SARASWATI Education Society's PAGE NO. :

eP SARASWATI College of Engineering DATE:

Ans

Sunhose that a dik dsie hae 200


ylides humheied o t 199 Jhe ie

acling
that the dik asn meves to sotisby all he
hncngeguestilot FCES dick hedlins
Lalssitha Ühe ode s 82 170,43,14O,24,16,19o.
2 43 50 82 (7o (49

tol oditane
= (32- 5o) +(70- 82) +(o-43) 4(le o -43)
+( 40- 2 4) +(24 -l6) 4(90-(6)
-642

You might also like