Got asked in an interview. They asked to order the following in terms of speed:
- CPU register access,
- Context switch
- Memory access
- Disk seek.
pretty sure the disk seek is the slowest and register access is the fastest, but not quite sure about the two in between. Can anyone explain it a bit?
I happened to find a surprisingly good answer on Yahoo!:
Fastest to slowest:
Although:
(emphasis mine)
I agree with that answer.