in CO and Architecture retagged by
688 views
0 votes
0 votes

  1. insufficient info
  2. p2
  3. p1
in CO and Architecture retagged by
688 views

3 Comments

cpu time = (n*CPI)/f

where  n -> no. of instructions.

          CPI -> clock cycles per instruction

           f-> frequency of instruction.

in this question they have asked which Process has low CPU time(high performance) and n can be taken as constant
0
0

I think performance in number of instructions executed per second, but no of instructions executed depends on CPI as well. As we got the number of instructions per sec , P2's performance is better.

Correct me if I'm wrong.

0
0

yes @Hemanth_13

we can also check as

p1 : CPI = 2 and executes 2 billion instruction per second

=> it executes 4 billion clock cycles per second.

p2 : CPI = 1 and executes 8 billion instruction per second

=> it executes 8 billion clock cycles per second.

since p2 can execute more number of clock cycles per second

=> P2 is faster than P1.

=> P2 performance is better.

      

0
0

1 Answer

0 votes
0 votes
Here it is clear that P2 executes 8 million instructions per second. While the P1 executes only 4 million instructions per second.

And we know that performance is measured in term of response time so clearly P2 is better.

Related questions