r/explainlikeimfive • u/blitzkrieg_dms • Nov 17 '12
ELI5: Why does turning off and on a computer seem to fix a problem.
I know the whole "have you tried turning it off and on again" this is a bit of a joke, but it seem help is some circumstances. Is it just ignoring the problem and hoping it goes away or are the some settings that "fix" them selves on restart.
6
Upvotes
17
u/[deleted] Nov 17 '12
Say you were playing a chess game, and noticed that somehow (incorrectly) both bishops were on the same color square. This is sort of like a software "bug", since the chess game is no longer operating normally.
If you took all the pieces off the board and set up a new game, it would fix the problem of the bishops being on the wrong colored square. Of course, you'd also lose everything about the current game in the process.
7
u/ZankerH Nov 17 '12
Basically, a bunch of stuff resets itself to the default settings when you do so. For example, RAM is "volatile" memory, it gets wiped out when you turn the computer off and has to be reloaded from the hard drive. But mostly it isn't any particular thing about how computers in general work, but how an OS handles persistence.
2
u/Amarkov Nov 17 '12
Say that one of the programs you use has a bug that only shows up when the program has been running for a week. There's no way that the testers are going to catch that bug; it would take way too much time to do that. So if you run into a problem with it, you can just restart your computer. Then the program will no longer have been running for a week, so the bug won't happen.