Question

In: Computer Science

(a) List and explain three types of pipeline hazards. (b) List and explain three types of...

(a) List and explain three types of pipeline hazards.

(b) List and explain three types of cache misses.

(c) What is the principle of locality?

(d). Discuss the advantage and disadvantage of the write back and write through policy in the cache.

Solutions

Expert Solution

a). Three Types Of Pipeline Hazards

  • Structural Hazards: They arise from conflicts when the hardware cannot support all possible combinations of instructions in simultaneous overlapped execution.
  • Data Hazards: They arise when an instruction depends on the result of previous instruction in way that is exposed by overlapping of instructions in the pipeline.
  • Control Hazards: They arise from pipelining of branches and other instructions that change PC.

b).Three Types Of Cache Misses

  • Compulsory Miss: It is also known as cold start misses or first references misses. These misses occur when first access to a block happens. Block must be brought into cache.
  • Capacity Miss: These misses occur when the program working set is much larger than the cache capacity. Since Cache can not contain all blocks needed for program execution, so cache discards these blocks.
  • Conflict Miss: It is also known as collision misses or interference misses. These misses occur when several blocks are mapped to same set or block frame.These misses occur in set associative or direct mapped block placement strategies.

c).Principle Of Locality

  • It refers to phenomenon in which computer program tends to access same set of memory locations for particular time period. In other words, Locality of Reference refers to tendency of computer program to access instructions whose addresses are near one another. The property of locality of reference is mainly shown by loops and subroutine calls in a program.

d).Advantage And Disadvantage Of The Write Back And Write Through Policy In The Cache

  • Write Back:

Advantage->Low latency and high throughput for write-intensive applications.

Disadvantage->There is data availability risk because cache could fail before data is persisted to backing store. This result in data being lost.

  • Write Through:

Advantage->Ensures fast retrieval while making sure data is in backing store and is not lost in case the cache is disrupted.

  Disadvantage->Writing data will experience latency as we have to write to two places every time.


Related Solutions

a. explain the various types of rainfall. b. list three factors that influences the energy conversion...
a. explain the various types of rainfall. b. list three factors that influences the energy conversion and intake or not of the agroecosystem ? c. why should the temperature vary across latitude? is it called latitudinal variation? if so why?
What are various Pipeline Hazards. Explain each hazard with some common solutions that arebeing employed today?
What are various Pipeline Hazards. Explain each hazard with some common solutions that arebeing employed today?
Q1. a. List and discuss the three basic types of engineering production. b. List the role...
Q1. a. List and discuss the three basic types of engineering production. b. List the role of Quality Control and Inspection during the manufacture of a product. c. List any two reasons why automation is preferred for a modern manufacturing concern. d. List any two factors that compel industrial outlets to computers in design, manufacturing and allied services.
a. What are the two main hazards associated with chemical plants and list three examples of...
a. What are the two main hazards associated with chemical plants and list three examples of each? What are Material Safety Data Sheets (MSDSs) and the role of MSDS in Process Design?
A. Does a contract have to be in writing? (1 mark) B. List three types of...
A. Does a contract have to be in writing? (1 mark) B. List three types of terms in a contract. C. Distinguish terms in a contract from a representation.
A. Does a contract have to be in writing? (1 mark) B. List three types of...
A. Does a contract have to be in writing? (1 mark) B. List three types of terms in a contract. C. Distinguish terms in a contract from a representation. (3 marks
Explain and list the types of unemployment. Explain and list the types of inflation. Thank you.
Explain and list the types of unemployment. Explain and list the types of inflation. Thank you.
In one page write three Types of hazards that could be prevented by wearing hard hats....
In one page write three Types of hazards that could be prevented by wearing hard hats. Please make sure to provide the below details: - Write down the type of hazard - What are the causes of this hazard - Example of preventing it while wearing a hard hat Regards,
8. a. What are the three types of firms? b. Explain the advantage and disadvantage of...
8. a. What are the three types of firms? b. Explain the advantage and disadvantage of each type of firm. c. Which type of firm produces the most revenue? 9. a. What are implicit costs? b. Do implicit cost contribute to the opportunity cost of production? Explain c. Should an implicit cost be counted as cost in determining profit? Explain d. Give two examples of implicit costs
List two types of costing systems, and list three types of companies that use one or...
List two types of costing systems, and list three types of companies that use one or the other of the methods.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT