The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
+3 votes
280 views

in Operating System by Active (3.1k points) | 280 views
0
1.10ms??

1 Answer

+4 votes

EMAT= NoPageFault *  m/m access time + PageFault * ( Modified * Service time + NotModified * ServiceTime)

EMAT= $0.95*200*10^{-6}+0.05*(0.5*15+0.5*7)$

EMAT=$0.55019 \ msec$

0.55019 msec is the correct answer

by Boss (14.8k points)
edited by
0
If there is no page fault then why will it access the memory?
+2
if there is no page fault then our page is in main memory, to get that page we need a memory access, if page fault occurs then then a new page is brought to main memory and some other page is replaced in place of it based on some page replacement policy, here two cases arise when we are are replacing the page we check either is modified or not.

If a page is modified first its value is written into main m/m then a new page is replaced and if not modified we simply replaces it, this whole time comes under Page service time which comed into picture in case of page fault.
0
@Ashwani Kumar 2  how it will result 11 msec?
+1
@saxena0612 by mistake :p

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
49,807 questions
54,729 answers
189,317 comments
79,913 users