Disk Access (slowest)
Context Switch
Memory Access
Register Access (fastest)
There are some potential variances in these :
Disk access may be significantly faster at times due to caching ... so can memory access (CPUs sometimes manage a caches from main memory to help speed up access and avoid competition for the bus).
Memory access could also be as slow or slightly slower than disk access at times, due to virtual memory page swapping.
Context switching needs to be extremely fast in general ... if it was slow then your CPU could begin to spend more time switching between processes than actually performing meaningful work when several processes are running concurrently.
Register access is nearly instantaneous.
2006-08-02 06:13:43
·
answer #1
·
answered by Arkangyle 4
·
2⤊
1⤋
1 2 3 4
2006-08-02 05:45:11
·
answer #2
·
answered by Anonymous
·
0⤊
0⤋
Consider what operations are involved in each case and to what extreme you consider.
Slowest: Context switch. Must make several CPU changes. Can require several CPU cycles. Store state and load new routine. http://en.wikipedia.org/wiki/Context_switch
Next: Read disk (HDD). Must go out to a peripheral device. Disk must spin to access the portion to be read. Data is being duffered to the CPU.
Next: Read from memory. RAM is faster than HDD. Data must be read in.
Fastest: Read CPU registry. This can be done within a single CPU cycle.
It is actually impossible to determine exactly where to place "context switch" since it depends upon your processor and how much change is necessary. In the minimum case, it is generally faster to read one byte from the HDD or memory cache than do a context switch where you store your state and load a new routine.
2006-08-02 05:44:34
·
answer #3
·
answered by Plasmapuppy 7
·
0⤊
0⤋
disk read - if of course the slowest.
context switch - what kind of context switch? are you talking about bank switching?
read from memory - this is a little slower than reading a CPU register.
read cpu registry - if you mean register, this is fastest.
2006-08-02 05:49:12
·
answer #4
·
answered by kurtrisser 4
·
0⤊
0⤋
I asked the same question 2 times, and haven't got an answer
2016-08-23 03:24:09
·
answer #5
·
answered by ginger 4
·
0⤊
0⤋
i do not know what you mean but i have a program called tune up your computer and it can do it all.. and it is free for 30 days..it is called tune up utilities..gets rid of mistakes on your computer, optimiser of your computer..tells you how much memory your computer is using..cleans disk and hard drives..defragments your computer ...i think you should check into this...
2006-08-02 05:48:51
·
answer #6
·
answered by sanangel 6
·
0⤊
0⤋
disk read
context switch
read from memory
read cpu registry
2006-08-02 05:47:30
·
answer #7
·
answered by Anonymous
·
0⤊
0⤋
disk read
context switch
read cpu registry
read from memory
2006-08-02 05:45:09
·
answer #8
·
answered by Thor 5
·
0⤊
0⤋
context switch
disk read
read from memory
read cpu registry
... you get the benefit of doubt...
2006-08-02 05:48:13
·
answer #9
·
answered by Anonymous
·
0⤊
0⤋
disk read
read from memory
context switch (no clue what this is)
read cpu registry
2006-08-02 05:46:01
·
answer #10
·
answered by dtstuff9 6
·
0⤊
0⤋