0 votes 0 votes insufficient info p2 p1 CO and Architecture co-and-architecture + – gate_forum asked Jan 14, 2019 • retagged Jul 22, 2022 by Shubham Sharma 2 gate_forum 705 views answer comment Share Follow See all 3 Comments See all 3 3 Comments reply Satbir commented Jan 14, 2019 reply Follow Share 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 votes 0 votes Hemanth_13 commented Jan 14, 2019 reply Follow Share 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 votes 0 votes Satbir commented Jan 14, 2019 reply Follow Share 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 votes 0 votes Please log in or register to add a comment.
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. Sumit Singh Chauhan answered Nov 19, 2019 Sumit Singh Chauhan comment Share Follow See all 0 reply Please log in or register to add a comment.