1080 instructions would be executed during the program's runtime.
How to find the number of instructions
To calculate the number of instructions executed in a program's runtime, you need to know the number of instructions executed per clock cycle.
number of Instructions = clock frequency * runtime
Given:
Clock frequency = 3 GHz = 3 * 10⁹ Hz
runtime = 360 ns = 360 * 10⁻⁹ s
number of Instructions = 3 * 10⁹ * 360 * 10⁻⁹
number of Instructions = 1080
compete question
if a computer has clock freq of 3 ghz, and a program on that computer has a runtime of 360 ns, how many instructions executed in the prog runtime?