I am wondering if anyone can give me a good answer or at least point me in the direction of a good link to the following question: Why have I never heard that a computer crashes very fundamentally? Why, when I declare x double, does it remain as double? How is it that there is never a short circuit that robs it of some bytes and makes it whole? Why do we have the belief that when we initialize x to 10, there will never be a power surge that causes it to become 11 or something like that?
I think I need a better understanding of memory. Thanks, and please don't bash me over my head for such a simple / abstract question.
Why have I never heard that a computer crashes very fundamentally?
The hardware is fantastically complex, and there are a huge number of engineers whose job it is to make sure that the equipment is working as intended. Whenever Intel, AMD, etc. They produce chips, they carefully tested the design and ran all kinds of diagnostics before he left the factory. They have an economic incentive for this: if there is a mistake somewhere, it can be very expensive. Take a look at the FDIV example .
Why, when I declare x double, does it remain as double? How is it that there is never a short circuit that robs it of some bytes and makes it whole?
, . , . " 0x243598F0 ". , - - , . , , , , , , "", ", ", .
, x 10, , 11 - ?
! , , , . , -, , :
, . , , , .
, !
AFAIK, . - , . . , , , Excel, , . . , ECC. :
http://en.wikipedia.org/wiki/ECC_memory
" , , 25 000 70 000 ( 2,5-7 × 10-11 / · ) (.. 5 8 ) 8% DIMM, .
1, , . , , . (, , - ). . , , , .
2: . , , , "- , " . , - , .
#X: . , . . . , , . , , CS . , , , "int x = 10" 11 ?