answer.
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
sladkih
1 month ago
9

Assume a program requires the execution of 50 x 106 FP instructions, 110 x 106 INT instructions, 80 x 106 L/S instructions, and

16 x 106 branch instructions. The CPI for each type of instruction is 1 1, 4, and 2, respectively. Assume that the processor has a 2 GHz clock rate 1.141 [10] <$1.10 By how much must we improve the CPI of FP instructions if we want the program to run two times faster? 1.14.2 [10]
Computers and Technology
1 answer:
ivann1987 [982]1 month ago
3 0

Clarification:

FP - 50 \times 10^6

CPI - 1

INT - 110 \times 10^6,

CPI - 1

I/S - 80 \times 10^6,

CPI - 4

Branch - 16 \times 10^6

CPI - 2

Clock Speed - 2 \times 10^9

Time(old) = \frac{50 x 10^6 + 110 x 10^6 + 4 x ( 80 x 10^6) + 2 x (16 x 10^ 6)}{2 x 10^9}

Time(old) = 256 \times 10^ {-3}

Time(new) = \frac{256 \times 10^{-3}}{2}

                = 128 \times 10^{-3}

                = \frac{CPI(new) x [50 x 10^6 + 110 x 10^6 + 4 x ( 80 x 10^6) + 2 x (16 x 10^ 6)]}{2 x 10^9}

                = 128 \times 10^{-3}

CPI(new) = \frac{-206}{50}

               = -4.12

You might be interested in
CHALLENGE ACTIVITY 2.15.1: Reading and outputting strings. Write a program that reads a person's first and last names, separated
Harlamova29_29 [950]

Response:

#include <iostream>

using namespace std;

int main()

{

   string Fname, Lname;

   cout << "Please enter your first name " <<"Please enter your last name" <<endl;

   cin>>Fname>>Lname;

   cout<<Lname<<", "<<Fname<<endl;

   return 0;

}

Clarification:

This code is coded in the C++ programming language. To begin with, two string variables are declared, namely Fname and Lname for the first and last names, respectively. The C++ cout function is utilized to ask users for their inputs, while the cin function takes in user inputs and stores them in the corresponding variables. The cout operator (<<) arranges the output in accordance with the specification given in the question

8 0
25 days ago
Need 2.5 Code Practice Answers
Natasha_Volkova [941]

Answer:

import random

random.seed(1,10) # Note: seed takes one argument, so this line has an error

a = random.randint(1, 10)

b = random.randint(1, 10)

print("Calculate: " + str(a) + " X " + str(b) + "?")

ans = int(input("Your answer: "))

if ans == a * b:

print("Well done!")

else:

print("That's wrong!")

Explanation:

4 1
1 month ago
Read 2 more answers
A company that allows you to license software monthly to use online is an example of
oksian1 [849]

A business that offers monthly software licensing for online use exemplifies a Subscription model.

Explanation:

Software license agreements authorize individuals or organizations to utilize software applications, with various licensing methods tailored to different financial situations. The main licensing types include Stand-alone, Networked, Site, Cloud, and Subscription.

Subscription:

This approach involves temporarily renting software rather than purchasing it outright. Instead of a one-time full payment, users pay periodically—monthly, quarterly, or yearly.

Subscription licenses are ideal for short-term assignments, temporary employees, or scenarios requiring limited software use.

Currently, subscription licensing is popular because it offers software updates and flexible payment plans. Permanent licenses often have high upfront costs, making subscriptions a more accessible option.

4 0
1 month ago
Read 2 more answers
In Section 8.5.4, we described a situation in which we prevent deadlock by ensuring that all locks are acquired in a certain ord
8_murik_8 [927]

Answer:

Refer to Explanation

Explanation:

Dividing this critical section into two parts:

void transaction(Account from, Account to, double amount)

{

Semaphore lock1, lock2;

lock1 = getLock(from);

lock2 = getLock(to);

wait(lock1);

withdraw(from, amount);

signal(lock1);

wait(lock2);

deposit(to, amount);

signal(lock2);

}

This approach is optimal in practice, as separating the critical section avoids any unintended states (for instance, resulting in withdrawing more funds than available).

The straightforward solution of keeping the critical section intact lies in ensuring that locks are acquired in the same order across all transactions. In this scenario, the locks can be sorted, choosing the smaller one to lock first.

4 0
1 month ago
Brendan is examining a report using the Design view. Which section in the Design view is going to appear only once on the first
maria [954]

The Report Header Section is the part in Design view that appears only on the first page and may include logos and title details.

Clarification:

In Design view, the Create tab allows for report creation with just a click. The Report Wizard can also assist in generating reports with various options.

After initiating a report, you will realize that it contains multiple sections, requiring decisions on the data to be included in each section.

The Report Header Section shows at the top of the first page and only once during the report generation. It features elements like the logo, report title, and current date.

3 0
1 month ago
Other questions:
  • Why were the practitioners of alternative software development methods not satisfied with the traditional waterfall method?
    9·1 answer
  • Represent decimal number 8620 in (a) BCD, (b) excess-3 code, (c)2421 code, and (d) as a binary number
    7·1 answer
  • Read two numbers from user input. Then, print the sum of those numbers. Hint -- Copy/paste the following code, then just type co
    13·2 answers
  • java methods Write a program whose input is a character and a string, and whose output indicates the number of times the charact
    10·1 answer
  • A technician with a PC is using multiple applications while connected to the Internet. How is the PC able to keep track of the d
    8·2 answers
  • A 1.17 g sample of an alkane hydrocarbon gas occupies a volume of 674 mL at 28°C and 741 mmHg. Alkanes are known to have the gen
    14·1 answer
  • Determine the number of bytes necessary to store an uncompressed binary image of size 4000 × 3000 pixels
    11·1 answer
  • This question refers to a standard deck of playing cards. If you are unfamiliar with playing cards, there is an explanation in P
    10·2 answers
  • Which of the following does not describe local alignment algorithm?
    9·1 answer
  • What is a commonly publicized password sql injection string?
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!