View Full Version : Why is software sent to the ram?

08-01-2007, 05:32 AM
i've read the ram wikipedia entry and it doesn't explain this. one other place that looked up why this happens it just stated that it made it faster - could anyone elaborate on that?

thanks in advance.

08-01-2007, 07:20 AM
my thoughts on this is

ram is faster than disk access

If calls made by the program need disk access all the time your disk would be continually spinning, as the program is not normally stored in contiguous clusters but spread out all over the disk platter (even after a defrag) there fore slowing down processing time.

Storing common program elements in ram is more efficient therefore as opposed to continually going back to disk.

08-01-2007, 09:53 AM
Programs can only be executed from memory. When your computer is performing over a billion operations per second the disk just couldn't keep up. Memory is much faster than the disk (by a long way) and currently used areas of memory can be copied to the cache, which is faster still. Some computers (e.g. punch card machines) read their data directly from a solid medium, but for any decent speed this is impractical.