Essentials of Computer Organization and Architecture
Essentials of Computer Organization and Architecture
5th Edition
ISBN: 9781284123036
Author: Linda Null
Publisher: Jones & Bartlett Learning
bartleby

Concept explainers

Expert Solution & Answer
Book Icon
Chapter 11, Problem 22E

Explanation of Solution

Performance:

  • The speed of the CPU is a key factor that often decides the performance of the system.
  • Disk access speed is considered to be another factor that is used to determine the performance.
  • The read write operation that is performed on the disk (milliseconds) is considered to take significantly longer access time in comparison with that of the operation that is performed in a CPU (nanoseconds).
  • To improve the performance of the disk access they are different ways present.
  • The algorithm that determines the order in which the data access made in the disk will be beneficial is calculated.

Given:

It is know that there are 100 tracks that are ranged from 0 to 99.

At the beginning the disk arm is considered to be at the position 50 and it will getting move through and towards the lower numbered tracks.

It will require 500 nanoseconds to pass over the track.

The desired track is accessed in 2milliseconds.

The service request order is as follows 48,14,85,35,84,61,30, and 22.

Disk traversed using FCFS (First come First Serve):

The service request is being handled in the way they are being received:

Service requestAccess madeNumber of access
4850-482
1448-1434
8514-8571
3585-3550
8435-8449
6184-6123
3061-3031
2230-228
Total number of disk access268
Total time taken8*2 milliseconds+(268-8)*500 nanoseconds

Therefore, total number of disk access required is “268”.

Disk traversed using SSTF (Shortest Seek Time First):

  • The service request that are from the nearest of the sector to that of the current position of the disk arm are being handled on priority.
  • The list is processed to be generated in the way from the current position of the disk arm and the instances of the next nearest access are being obtained at every instance.
Service requestAccess madeNumber of access
4850-482
6148-6113
8461-8423
8584-851
3585-3550
3035-305
2230-228
1422-148
Total number of disk access110
Total time taken8*2 milliseconds+(110-8)*500 nanoseconds

Therefore, total number of disk access required is “110”...

Blurred answer
Students have asked these similar questions
I need help to solve a simple problem using Grover’s algorithm, where the solution is not necessarily known beforehand. The problem is a 2×2 binary sudoku with two rules: • No column may contain the same value twice. • No row may contain the same value twice.   Each square in the sudoku is assigned to a variable as follows:   We want to design a quantum circuit that outputs a valid solution to this sudoku. While using Grover’s algorithm for this task is not necessarily practical, the goal is to demonstrate how classical decision problems can be converted into oracles for Grover’s algorithm.   Turning the Problem into a Circuit   To solve this, an oracle needs to be created that helps identify valid solutions. The first step is to construct a classical function within a quantum circuit that checks whether a given state satisfies the sudoku rules.   Since we need to check both columns and rows, there are four conditions to verify: v0 ≠ v1   # Check top row   v2 ≠ v3   # Check bottom row…
I need help to solve a simple problem using Grover’s algorithm, where the solution is not necessarily known beforehand. The problem is a 2×2 binary sudoku with two rules: • No column may contain the same value twice. • No row may contain the same value twice.   Each square in the sudoku is assigned to a variable as follows:   We want to design a quantum circuit that outputs a valid solution to this sudoku. While using Grover’s algorithm for this task is not necessarily practical, the goal is to demonstrate how classical decision problems can be converted into oracles for Grover’s algorithm.   Turning the Problem into a Circuit   To solve this, an oracle needs to be created that helps identify valid solutions. The first step is to construct a classical function within a quantum circuit that checks whether a given state satisfies the sudoku rules.   Since we need to check both columns and rows, there are four conditions to verify: v0 ≠ v1   # Check top row   v2 ≠ v3   # Check bottom row…
I need help to solve a simple problem using Grover’s algorithm, where the solution is not necessarily known beforehand. The problem is a 2×2 binary sudoku with two rules: • No column may contain the same value twice. • No row may contain the same value twice.   Each square in the sudoku is assigned to a variable as follows:   We want to design a quantum circuit that outputs a valid solution to this sudoku. While using Grover’s algorithm for this task is not necessarily practical, the goal is to demonstrate how classical decision problems can be converted into oracles for Grover’s algorithm.   Turning the Problem into a Circuit   To solve this, an oracle needs to be created that helps identify valid solutions. The first step is to construct a classical function within a quantum circuit that checks whether a given state satisfies the sudoku rules.   Since we need to check both columns and rows, there are four conditions to verify: v0 ≠ v1   # Check top row   v2 ≠ v3   # Check bottom row…
Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education