Alpha Geek

(8)

$10/per page/Negotiable

About Alpha Geek

Levels Tought:
University

Expertise:
Accounting,Algebra See all
Accounting,Algebra,Architecture and Design,Art & Design,Biology,Business & Finance,Calculus,Chemistry,Communications,Computer Science,Environmental science,Essay writing,Programming,Social Science,Statistics Hide all
Teaching Since: Apr 2017
Last Sign in: 438 Weeks Ago, 2 Days Ago
Questions Answered: 9562
Tutorials Posted: 9559

Education

  • bachelor in business administration
    Polytechnic State University Sanluis
    Jan-2006 - Nov-2010

  • CPA
    Polytechnic State University
    Jan-2012 - Nov-2016

Experience

  • Professor
    Harvard Square Academy (HS2)
    Mar-2012 - Present

Category > Programming Posted 19 Jun 2017 My Price 6.00

Suppose that two processes A and B share a page that is not in memory

37.    Suppose that two processes A and B share a page that is not in memory. If process A faults on the shared page, the page table entry for process A must be updated once the page is read into memory.

(a)     Under what conditions should the page table update for process B be delayed even though the handling of process A’s page fault will bring the shared page into mem- ory? Explain.

(b)    What is the potential cost of delaying the page table update?

 

38.    Consider the following two-dimensional array: int X[64][64];

Suppose that a system has four page frames and each frame is 128 words (an integer occupies one word). Programs that manipulate the X array fit into exactly one page and always occupy page 0. The data are swapped in and out of the other three frames. The X array is stored in row-major order (i.e., X [0][1] follows X [0][0] in memory). Which of the two code fragments shown below will generate the lowest number of page faults?  Explain and compute the total number of page faults.

Fragment A

for (int j = 0; j <> j++)

for (int i = 0; i < 64;="" i++)="" x[i][j]=""> 0;

Fragment B

for (int i = 0; i <> i++)

for (int j = 0; j < 64;="" j++)="" x[i][j]=""> 0;

 

 

Answers

(8)
Status NEW Posted 19 Jun 2017 10:06 AM My Price 6.00

-----------

Attachments

file 1497869811-1443431_1_636333514364376507_1443431.docx preview (252 words )
3-----------7) ----------- â€-----------¢ M-----------ult-----------ipl-----------es -----------pro-----------ces-----------ses----------- ca-----------n r-----------un -----------the----------- sa-----------me -----------pro-----------gra-----------m s-----------imu-----------lta-----------neo-----------usl-----------y. -----------Suc-----------h p-----------roc-----------ess-----------es -----------end----------- up----------- sh-----------ari-----------ng -----------the----------- pa-----------ges----------- in----------- me-----------mor-----------y. ----------- â€-----------¢ W-----------hen----------- 2 -----------two----------- pr-----------oce-----------sse-----------s (-----------say----------- A -----------and----------- B)----------- sh-----------are----------- a -----------pag-----------e w-----------hic-----------h i-----------s c-----------urr-----------ent-----------ly -----------not----------- in----------- me-----------mor-----------y. -----------Whe-----------n p-----------roc-----------ess----------- A -----------fau-----------lts----------- on----------- a -----------sha-----------red----------- pa-----------ge.----------- re-----------ad -----------it -----------int-----------o t-----------he -----------mem-----------ory----------- an-----------d -----------o U-----------pda-----------te -----------thi-----------s i-----------n t-----------he -----------pag-----------e t-----------abl-----------e e-----------ntr-----------y f-----------or -----------pro-----------ces-----------s A----------- -----------o A-----------lso-----------, u-----------pda-----------te -----------the----------- pa-----------ge -----------tab-----------le -----------ent-----------ry -----------for----------- pr-----------oce-----------ss -----------B. -----------Thi-----------s i-----------s d-----------one----------- so----------- th-----------at -----------if -----------pro-----------ces-----------s B----------- ne-----------eds----------- th-----------e s-----------ame-----------
Not Rated(0)