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
meriva
3 years ago
8

g The machine in the problem has a byte-addressable memory of 216 bytes. The direct-mapped cache consists of 32 cache blocks, an

d the cache block size is 8 bytes. Question 1 How is the 16-bit memory address divided into byte offset, cache index, and tag? Question 2 What is the capacity of the cache in bytes? Question 3 Why tag is also stored in the cache? Question 4 For the following four memory addresses, what cache block would each be mapped to? 0001 0001 0001 1011 1100 0011 0011 0100 1101 0000 0001 1101 1010 1010 1010 1010
Computers and Technology
1 answer:
balu736 [363]3 years ago
3 0

Answer / Explanation:

To properly answer this question, let us define some basic terms:

Byte: The term byte is the digital unit for information and mostly consists of eight bits. The byte used to be the number of bits used to encode a single character of text in a computer and for this reason it is the smallest unit of memory in many computer program

Cache: A cache can be refereed to as a software component that stores information or data for the purpose future recall. The data stored in a cache could be treated as a duplicate or a copy of a copy of another data stored elsewhere.

Now, with the understanding from the above definition, referring back to the narrative of the question asked, we have:

(1) 8 leftmost bits = tag; 5 middle bits = line number; 3 rightmost bits = byte number.

                                                          S

                                               Tag           Set slot           W            

Memory address = 16 bits       8                 5                  3

(2)  256 bytes.=2^8 or

      32 blocks * 8 byte = 256 byte

(3)   Because two items with two different memory addresses can be stored in the same place in the  cache. That is, The tag is used to distinguish between them.

(4) Line 3.

    Line 6.

    Line 3.

    Line 21

You might be interested in
List at least 4 types of works covered by copyright law
Shtirlitz [24]

Answer:

musical works, dramatic works, literary works, sound recordings.

6 0
3 years ago
You ping a host on the internet to check for connectivity. Your ping times out, and you get no response. What is most likely the
Reptile [31]

Answer:

It could be because you where hack. Or there was something wrong with the site that stopped it from saying why it stopped.

8 0
2 years ago
Decimal numbers are based on __________.
Shtirlitz [24]
Decimals are based on the preceding powers of 10. Thus, as we move from left to right, the place value of digits gets divided by 10, meaning the decimal place value determines the tenths, hundredths and thousandths. A tenth means one tenth or 1/10. In decimal form, it is 0.1.
6 0
3 years ago
Order the following routine maintenance tasks from most to least important when securing a computer. a. Verify anti-malware sett
spin [16.1K]

Answer:

The following are the order of the routine maintenance tasks that is C, A, B, D

Explanation:

For securing the computer system the user has to follow some steps related to the routine maintenance tasks.

  • Firstly, the user has to validate the settings on the Windows Update.
  • Then, they have to validate the settings on the anti-malware software.
  • Then, the user has to validate the setting related to the file-sharing system.
  • Finally, they have to validate the frequent optimization of hard drives or hard disks.
7 0
2 years ago
write a 2d array c program that can capture marks of 15 students and display the maximum mark, the sum and average​
bekas [8.4K]

Answer:

#include <stdio.h>  

int MaxMark(int* arr, int size) {

   int maxMark = 0;

   if (size > 0) {

       maxMark = arr[0];

   }

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

       if (arr[i] > maxMark) {

           maxMark = arr[i];

       }

   }

   return maxMark;

}

int SumMarks(int* arr, int size) {

   int sum = 0;

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

       sum += arr[i];

   }

   return sum;

}

float AvgMark(int* arr, int size) {

   int sum = SumMarks(arr, size);

   return (float)sum / size;

}

int main()

{

   int student0[] = { 7, 5, 6, 9 };

   int student1[] = { 3, 7, 7 };

   int student2[] = { 2, 8, 6, 1, 6 };

   int* marks[] = { student0, student1, student2 };

   int nrMarks[] = { 4, 3, 5 };

   int nrStudents = sizeof(marks) / sizeof(marks[0]);

   for (int student = 0; student < nrStudents; student++) {              

       printf("Student %d: max=%d, sum=%d, avg=%.1f\n",  

           student,

           MaxMark(marks[student], nrMarks[student]),

           SumMarks(marks[student], nrMarks[student]),

           AvgMark(marks[student], nrMarks[student]));

   }

   return 0;

}

Explanation:

Here is an example using a jagged array. Extend it to 15 students yourself. One weak spot is counting the number of marks, you have to keep it in sync with the array size. This is always a problem in C and would better be solved with a more dynamic data structure.

If you need the marks to be float, you can change the types.

3 0
2 years ago
Other questions:
  • Anna wants to open the Run dialog box to run her program file. Which keys should she press to open the Run dialog box?
    14·1 answer
  • James, a technician, needs to format a new drive on a workstation. He will need to configure read attributes to specific local f
    5·1 answer
  • The interaction between information technology and organizations is influenced___________.A) solely by the decision making of mi
    12·1 answer
  • What does the CPU do in a computer?
    7·2 answers
  • Gina is driving her car down the street. She has a teddy bear sitting on the back seat. A dog runs in front of Gina's car, so sh
    15·2 answers
  • I had tried to turn on Linux on the Chromebook but it's not working
    11·2 answers
  • Decrypt this message: P ht uva h zwf
    13·1 answer
  • Types of Hazards Mitigation Measures
    8·2 answers
  • Hi everyone can anyone tell me how to align the photo the right in code.org
    8·1 answer
  • Operating systems move code and data, as necessary, to a portion of the disk that is used as if it were memory, not just disk st
    9·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!