r/computerscience • u/AtlasManuel • Apr 21 '25
General Typical computer speeds
Hi everyone,
I understand that most modern processors typically run at speeds between 2.5 and 4 GHz. Given this, I'm curious why my computer sometimes takes a relatively long time to process certain requests. What factors, aside from the CPU clock speed, could be contributing to these delays?
11
Upvotes
View all comments
Show parent comment
2
u/DonutConfident7733 Apr 21 '25
There is also the concept of cache coherence and some apps require certain operations from invalidating cache for all the cores, slowing down the cpu a lot. For example, incrementing a variable atomically, ensuring the new value is visible to all cpu cores, requires support from OS and Cpu and slows down the operations. This value may be needed for some things, such as generating unique ids for items even though multiple cores are performing same operations.