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
expeople1 [14]
3 years ago
6

Assume that the 100,000 element integer array that you allocated starts at address 0x50000000 in memory, the size of an integer

is 4 bytes and the D-cache is initially empty. As you read the integers in the array one-by-one, starting at index 0, how many D-cache misses will you see for reading the first 40 integers when the cache block size is (to be answered without running pin):a) 4 bytes:b) 32 bytes:c) 64 bytes:
Computers and Technology
1 answer:
Vanyuwa [196]3 years ago
6 0

Answer:

40, 5 and 3

See explaination for the details

Explanation:

A)

Consider the data.

Assume D-cache is empty

An integer size =4bytes

The cache block size =4bytes

Therefore, the number of D-cache misses for reading the first 40 integers is,

= (40×4)/4

= 160/4

= 40

b)

Consider the data.

Assume D-cache is empty

An integer size =4bytes

The cache block size =32bytes

Therefore, the number of D-cache misses for reading the first 40 integers is,

= (40×4)/32

= 160/32

= 5

c)

Consider the data.

Assume D-cache is empty

An integer size =4bytes

The cache block size =64bytes

Therefore, the number of D-cache misses for reading the first 40 integers is,

= (40×4)/64

= 160/64

= 3

You might be interested in
Create an application (that uses the SortedABList) that allows a user to enter a list of countries that he or she has visited an
gulaghasi [49]

Answer:

import java.util.*;

public class Country

{

  public static void main(String args[])

  {

      char ch,temp;

      int flag = 0;

      String country;

      ArrayList<String> countries = new ArrayList<String>();

      Scanner sc = new Scanner(System.in);

      do

      {

          System.out.println("enter the country you have visited:\t");

          country = sc.next();

          for(int i=0;i<countries.size();i++)

          {

              if(countries.get(i).equals(country))

              {

                  System.out.println("you have already entered the country");

                  flag = 1;

                  break;      

              }

          }

          if(flag == 0)

          {

              countries.add(country);

              flag = 0;

          }

          System.out.println("want to add another country(y/n):\t");

          ch = sc.next().charAt(0);

      }while(ch!='n');

      Collections.sort(countries);

      System.out.println("Countries you have visited:\t"+countries);

      System.out.println("Total number of contries visited:"+countries.size());

     

  }

}

Explanation:

8 0
4 years ago
What has prompted schools to add Internet activities in their academic integrity policies? a. New technological advancements c.
AysviL [449]

Answer:

A

Explanation:

Schools are trying to adjust to technology to help students.

6 0
3 years ago
Read 2 more answers
Web pages often have built-in connections, or links, to other documents, graphics, other web pages, or web sites. true or false?
yawa3891 [41]
Web pages often have built-in connections, or links, to other documents, graphics, other web pages, or web sites.

true
7 0
3 years ago
What built-in function should you use in python to prompt a user for data input?
stiks02 [169]

The built-in function you use in python to prompt a user for data input is the input function.

<h3>What is an input function?</h3>

An input function is a function used to prompt a user for data input.

The data input may be a string, integer, float, and many more.

Let's use an example of an input function in python.

x = input("what is your name: ")

y = int(input("How old are you: "))

Hence, the first input will prompt the user for the name and the second input will ask the user for his age. It can only accept integers.

learn more on input function here: brainly.com/question/17623507

#SPJ12

5 0
2 years ago
Read 2 more answers
I need help please. question in photo
Kryger [21]

Answer:

They are based on mathematical/geometric expressions.

Explanation:

More specifically, a vector graphic is artwork made up of points, lines, and curves that are based upon mathematical equations, rather than a solid colored square pixels. This means that no matter how large or small or how close you zoom in on the image, the lines, curves, and points remain smooth.

Please give brainliest

7 0
3 years ago
Other questions:
  • Which is the highest level of the hierarchy of needs model?
    7·2 answers
  • You are performing a manual WLAN RF site survey in a location that has several long hallways with small offices on both sides. Y
    8·1 answer
  • The two ways to use the help menu is by searching of the contents or searching the _____
    13·2 answers
  • True or False?
    8·1 answer
  • When using the =SUM formula, you can add multiple cells together.<br><br> ☐ True<br> ☐ False
    7·1 answer
  • What would you need to have on your foley stage
    9·1 answer
  • Ben Dover is the name of my best immature joke thank you
    7·2 answers
  • Se le conoce así cuando el analista mismo desarrolla el software necesario para implementar el diseño
    10·1 answer
  • This zyLab activity prepares a student for a full programming assignment. Warm up exercises are typically simpler and worth fewe
    8·1 answer
  • What is 1 st genaration of computer ​
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!