首页 > 试题广场 >

Give two reasons why caches ar

[问答题]
Give two reasons why caches are useful.What problems do they solve?What problems do they cause?If a cache can be made as large as the device for which it is caching (for instance,a cache as large as a disk),why not make it that large and eliminate the device?
推荐
Caches are useful when two or more components need to exchange data,and the components perform transfers at differing speeds.Caches solve the transfer problem by providing a buffer of intermediate speed between the components.If the fast device finds the data it needs in the ***,it need not wait for the slower device.The data in the *** must be kept consistent with the data in the components.If a component has a data value change,and the datum is also in the ***,the *** must also be updated.This is especially a problem on multiprocessor systems where more than one process may be accessing a datum.A component may be eliminated by an equal-sized ***,but only if:(a) the *** and the component have equivalent state-saving capacity (that is,if the component retains its data when electricity is removed,the *** must retain data as well),and (b) the *** is affordable,because faster storage tends to be more expensive.
发表于 2018-05-05 21:20:04 回复(0)