What is the hit ratio

Assignment Help Basic Computer Science
Reference no: EM13927413

Task 1

Suppose the hypothetical machine in Figure 1.3 and Figure 1.4 of the text book (see below) is modified, where the memory

address is now 8 bits instead of 12. Therefore, the instruction format subsequently becomes:

0001 0000 xxxx xxxx (or 10XX in Hexadecimal) = Load AC from memory location XX.

0010 0000 xxxx xxxx (or 20XX in Hexadecimal) = Store AC to memory location XX.

0101 0000 xxxx xxxx (05 50XX in Hexadecimal) = Add to AC from memory XX.

Also, the following new instructions are added:

0110 xxxx xxxx xxxx (or 6XXX in Hexadecimal) = Load Branch Control (BC) register with the value of XXX.

0111 0000 0000 0000 (or 7000 in Hexadecimal) = Increment BC by 1.

1000 xxxx yyyy yyyy (or 8XYY in Hexadecimal) = Jump to instruction at memory location YY (the Program counter (PC) value

changes to YY) if BC is not equal to X, otherwise, the CPU executes the next instruction (the PC value increments by 1).

Design a set of instructions you would use to add the value stored in memory location "20" by the value stored at memory

location "29" ten (15) times. That is, if is the value at location 20, and is the value location 29 then you are being asked to

compute the value of

In your program, you must show the changes of all relevant memory and register values for at least two cycles or loops. You

may assume the PC before executing the program has the value of "F0". You also need to give a word description for each

instruction you design.

Explain the occurrence of locality of reference in this scenario.

Task 2

Describe a Cache System. Can you think of any real-life scenario (except the library-bookshelf scenario) where you can draw an

analogy to a cache system?

Consider a memory system with the following parameters:

100 ns

0.01 cents/bit

ns

cents/bit

What is the cost of 1 MByte of main memory?

What is the cost of 1 MByte of main memory using cache memory technology?

If the effective access time is 10% greater than the cache access time, what is the hit ratio H?

Task 3

Assume that at time 5 no system resources are being used except for the processor and memory. Now consider the following

events:

At time 5: P1 executes a command to read from disk unit 3.

At time 15: P5's time slice expires.

At time 18: P7 executes a command to write to disk unit 3.

At time 20: P3 executes a command to read from disk unit 2.

At time 24: P5 executes a command to write to disk unit 3.

At time 28: P5 is swapped out.
At time 33: An interrupt occurs from disk unit 2: P3's read is complete.

At time 36: An interrupt occurs from disk unit 3: P1's read is complete.

At time 38: P8 terminates.

At time 40: An interrupt occurs from disk unit 3: P5's write is complete.

At time 44: P5 is swapped back in.

At time 48: An interrupt occurs from disk unit 3: P7's write is complete.

For each time 22, 37, and 47, identify which state each process is in.

If a process is blocked, further identify the event on which is it blocked.

Reference no: EM13927413

Questions Cloud

Goodness of fit test and contingency tables : Births Records of random selected births were obtained a categorized according to the day of the week that they occurred (based on data from the National Center for Health Statistics). Because babies are unfamiliar our schedule of weekdays, a reas..
General process of gathering, organizing, summarizing : The performance of personal and business investments is measured as a percentage, return on investment. What type of variable is return on investment?
Standard deviation and outliers : Create a set of 5 points that are very close together and record the standard deviation. Next, add a 6th point that is far away from the original 5 and record the new standard deviation.
Protecting data warehouses and employee privacy : What should a company consider installing on the network perimeter to prevent direct connections between the internal network and the Internet to help protect its data warehouses and employee privacy?
What is the hit ratio : What is the cost of 1 MByte of main memory?
Simplex method to solve linear programming problem : Use the simplex method to solve this linear programming problem.
Issue of debt securities having stock warrants : Proceeds from an issue of debt securities having stock warrants should NOT be allocated between debt and equity features when
Problem regarding the economic order quantity : Q 1: If the Economic Order Quantity (EOQ) model is used to order material, which of the following represents the total annual variable cost that includes the annual costs of ordering and inventory holding?
What are strategies that leaders can use to manage variables : Identify variables present in the environment (culture, market competition, economics, regional conflicts, regulatory restrictions, etc.) that impact motivational strategies at the individual and organizational levels.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd