The Gateway to Computer Science Excellence
+3 votes

in Operating System by | 386 views

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

edited by
If there is no page fault then why will it access the memory?
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.
@Ashwani Kumar 2  how it will result 11 msec?
@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
52,345 questions
60,484 answers
95,291 users