1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
fgiga [73]
3 years ago
12

A computer has a two-level cache. Suppose that 60% of the memory references hit on the first level cache, 35% hit on the second

level, and 5% miss. The access times are 5 nsec, 15 nsec, and 60 nsec, respectively, where the times for the level 2 cache and memory start counting at the moment it is known that they are needed (e.g., a level 2 cache access does not even start until the level 1 cache miss occurs). What is the average access time?
Engineering
1 answer:
Andreyy893 years ago
4 0

Answer:

t=14ns

Explanation:

We make the relation between the specific access time and the memory percentage in each level, so

60\% \Rightarrow 60/100 = 0.60\\35\% \Rightarrow 35/100 = 0.35\\05\% \Rightarrow 05/100 = 0.05

t= 0.6(5) + 0.35(5+15) + 0.05(5+15+60)\\t= 0.6(5) + 0.35(20) + 0.05(80)\\t= 3 + 7 + 4\\t= 14 ns

Average Access Time is 14 nsec.

You might be interested in
A thin-walled cylinder of average radius 50 mm, and wall thickness 1.0 mm is of length 500 mm, and is built into a wall at one e
kotykmax [81]

Answer:

0

Explanation:

7 0
3 years ago
(40 points) Program the following sorting algorithms: InsertionSort, MergeSort, and QuickSort. There are 9 test les uploaded for
babunello [35]

Answer:

Explanation:

MERGE SORT

#include<stdlib.h>

#include<stdio.h>

#include<string.h>

void merge(int arr[], int l, int m, int r)

{

int i, j, k;

int n1 = m - l + 1;

int n2 = r - m;

 

int L[n1], R[n2];

for (i = 0; i < n1; i++)

L[i] = arr[l + i];

for (j = 0; j < n2; j++)

R[j] = arr[m + 1+ j];

i = 0;

j = 0;

k = l;

while (i < n1 && j < n2)

{

if (L[i] <= R[j])

{

arr[k] = L[i];

i++;

}

else

{

arr[k] = R[j];

j++;

}

k++;

}

while (i < n1)

{

arr[k] = L[i];

i++;

k++;

}

while (j < n2)

{

arr[k] = R[j];

j++;

k++;

}

}

void mergeSort(int arr[], int l, int r)

{

if (l < r)

{

int m = l+(r-l)/2;

mergeSort(arr, l, m);

mergeSort(arr, m+1, r);

merge(arr, l, m, r);

}

}

void printArray(int A[], int size)

{

int i;

for (i=0; i < size; i++)

printf("%d ", A[i]);

printf("\n");

}

int main()

{

int arr[1000] = {0};

int arr_size =0;

int data;

char file1[20];

strcpy(file1,"data.txt");

FILE *fp;

fp = fopen(file1,"r+");

if (fp == NULL) // if file not opened return error

{

perror("Unable to open file");

return -1;

}

else

{

fscanf (fp, "%d", &data);    

arr[arr_size]=data;

arr_size++;

while (!feof (fp))

{  

fscanf (fp, "%d", &data);  

arr[arr_size]=data;

arr_size++;    

}

}

printf("Given array is \n");

printArray(arr, arr_size);

mergeSort(arr, 0, arr_size - 1);

printf("\nSorted array Using MERGE SORT is \n");

printArray(arr, arr_size);

return 0;

}

3 0
2 years ago
The purpose of pasteurizing milk is to A. Kill pathogens B. Break down milk fat C. Add vitamins and minerals D. Prevent spoilage
motikmotik
Answer: A Kill pathogens
7 0
2 years ago
The time factor for a doubly drained clay layer
Margarita [4]

Answer with Explanation:

Assuming that the degree of consolidation is less than 60% the relation between time factor and the degree of consolidation is

T_v=\frac{\pi }{4}(\frac{U}{100})^2

Solving for 'U' we get

\frac{\pi }{4}(\frac{U}{100})^2=0.2\\\\(\frac{U}{100})^2=\frac{4\times 0.2}{\pi }\\\\\therefore U=100\times \sqrt{\frac{4\times 0.2}{\pi }}=50.46%

Since our assumption is correct thus we conclude that degree of consolidation is 50.46%

The consolidation at different level's is obtained from the attached graph corresponding to Tv = 0.2

i)\frac{z}{H}=0.25=U=0.71 = 71% consolidation

ii)\frac{z}{H}=0.5=U=0.45 = 45% consolidation

iii)\frac{z}{H}=0.75U=0.3 = 30% consolidation

Part b)

The degree of consolidation is given by

\frac{\Delta H}{H_f}=U\\\\\frac{\Delta H}{1.0}=0.5046\\\\\therefore \Delta H=50.46cm

Thus a settlement of 50.46 centimeters has occurred

For time factor 0.7, U is given by

T_v=1.781-0.933log(100-U)\\\\0.7=1.781-0.933log(100-U)\\\\log(100-U)=\frac{1.780-.7}{0.933}=1.1586\\\\\therefore U=100-10^{1.1586}=85.59

thus consolidation of 85.59 % has occured if time factor is 0.7

The degree of consolidation is given by

\frac{\Delta H}{H_f}=U\\\\\frac{\Delta H}{1.0}=0.8559\\\\\therefore \Delta H=85.59cm

5 0
3 years ago
Nonshielded cable with a 1.5-inch diameter should have a minimum bending radius of
Flura [38]

Answer:

c is the answer because we have to double the number

6 0
1 year ago
Other questions:
  • ). A company periodically tests its product for tread wear under simulated conditions. Thirty random samples, each containing 5
    11·1 answer
  • 1. A glass window of width W = 1 m and height H = 2 m is 5 mm thick and has a thermal conductivity of kg = 1.4 W/m*K. If the inn
    8·1 answer
  • The present worth of income from an investment that follows an arithmetic gradient is projected to be $475,000. The income in ye
    9·1 answer
  • A reversible process and an irreversible process both have the same________ between the same two states. a. Internal energy b. W
    6·1 answer
  • For a very rough pipe wall the friction factor is constant at high Reynolds numbers. For a length L1 the pressure drop over the
    9·1 answer
  • A closed system consisting of 4 lb of a gas undergoes a process during which the relation between pressure and volume is pVn 5 c
    7·1 answer
  • Think of an employee object. What are several of the possible states that the object may have over time?
    6·1 answer
  • A 360 kg/min stream of steam enters a turbine at 40 bar pressure and 100 degrees of superheat. The steam exits the turbine as a
    14·1 answer
  • The density of a certain type of steel is 8.1 g/cm3. What is the mass of a 100 cm3 chunk of this steel
    10·1 answer
  • Which of the following uses pressure and flow to transmit power from one location to another?
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!