Stats: 3,179,034 members, 7,906,861 topics. Date: Wednesday, 31 July 2024 at 05:24 PM |
Nairaland Forum / Science/Technology / Webmasters / I Need Help Answering A Question. (538 Views)
A Question And Answer Website Finally Launched By A Nairalander / A Question For Drupal Experts.using Views Filters For Multiple Vocabularies / I'm Building A Question & Answer Website? Who Want To Join Me? (2) (3) (4)
I Need Help Answering A Question. by puscifer: 11:51am On Aug 18, 2013 |
Hi, i need help for the following question: computer A has a clock cycle time of 250ps and a CPI of 2.0 for some program, and computer B has a clock time of 500ps and a CPI of 1.2 for the same program. Which computer is faster for this program and by how much ? Also, i will post the second question later. |
Re: I Need Help Answering A Question. by Dermie: 4:06pm On Aug 19, 2013 |
Computer A is faster. Proof: Each computer is executing the same program (with the same inputs), so the number of instructions is the same; call this number N First, find the number of clock cycles for each computer CPU Clock cyclesA = N instructions x 2.0 cycles/instruction CPU Clock cyclesB = N instructions x 1.2 cycles/instruction Next, compute the CPU time for each computer CPU timeA = CPU Clock cyclesA x Clock cycle timeA = N x 2.0 x 250 ps = 500 x N ps CPU timeB = CPU Clock cyclesB x Clock cycle timeB = N x 1.2 x 500 ps = 600 x N ps Computer A takes less time and is thus faster. |
Re: I Need Help Answering A Question. by puscifer: 11:05am On Aug 20, 2013 |
Dermie: Computer A is faster.thanks. |
Re: I Need Help Answering A Question. by puscifer: 11:23am On Aug 20, 2013 |
this is the 2nd question, A program run in 10s on computer A, which has a 4GHZ clock. A computer designer wants to build a computer B, that will run this program in 6s.the designer has determined that a substantial increase in the block rate is possible, but this increase will affect the rest of the CPU design, causing computer B to require 1.2 times as many clock cycles as computer A for this program. What clock rate should the designer target ? |
(1) (Reply)
Webmasters Plz Help! / How To Get Page Rank Above 1 / Got Adsense And Have'nt Made A Dime?
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 10 |