eli5 Why does turning your device on and off often solve a technical issue?

337 views

eli5 Why does turning your device on and off often solve a technical issue?

In: 11

16 Answers

Anonymous 0 Comments

Because your device runs programs. They’re intended to do particular things in particular orders. But writing perfect code is near-impossible, and there are always many, many things that can go wrong (because testing code is also hard, and labour-intensive, and finding every bug almost impossible). So there are always weird things that can go wrong.

Run the code long enough, and something will. And once it does, all bets are off – the program is in unknown territory, doing unknown things, and not doing what you want it to do any more. And it doesn’t known it’s lost, let alone how to get back out.

So you turn the device off and on, and all the programs start again at the beginning again, doing things they’re supposed to. Not lost anymore. Until next time.

Anonymous 0 Comments

To add to what others have said, turning it off and on is also a very easy and generally fast thing for the average user to do. A power user could potentially use the task manager or command prompt to fix some issues without needed a restart, but only very quick fixes would be worth the time.

Anonymous 0 Comments

As programs run, they take in and produce data that is kept in the RAM. Sometimes that data can cause a program to run completely in circles or at least in directions that it’s not supposed to run. By shutting the computer down everything is halted, all the data in the RAM is erased and the program starts anew, with normal data.

It’s like shouting “Fuck this shit! We’re not getting anywhere. Let’s start from the beginning.” and then you start from the beginning and maybe this time things go right.

Anonymous 0 Comments

When you turn a device off it’s starting from a known State (off)

The longer a device runs the more of a chance of undefined behavior. Which causes issues.

Anonymous 0 Comments

Modern computers do a *lot*. Between the hardware components, operating system, and applications running on a computer, there are a ton of little conversations happening all the time. Each layer of the conversation has its own requirements, and not everything knows what everything else needs. This is by design, and frequently true whether we’re talking about a desktop computer or a thermostat.

When you turn your computer on, it has done a difficult-to-overstate amount of verification and work to faciliate your ability to sign in. Once you’re signed in, even more work happens because most people like to use computers for more than just space heaters. The really impressive part is that so much of this is effecitvely hidden from you, the user.

Imagine playing Jenga with a tower that had millions of pieces that move around constantly – some you care about, others you don’t. In this game, so many pieces have already moved by the time you put your hand on your first piece that it doesn’t even look like a tower anymore.

Computers have been Jenga towers for a ***LONG*** time, and they’ve gotten ***VERY*** good at recognizing when they’re about to be unstable, to the point that they can endure many pieces being out of place and everything will continue to run fine. They can be smart enough to not allow you to even think about pulling a particular piece, as it will certainly cause a [computer] crash.

Even while you’re playing your particular pieces, others are still moving without (and because of) your actions. Some peices (like device drivers) are so critical that they will insist on re-building the tower every time they get moved.

Eventually, moving pieces around gets difficult – they take longer to move, don’t slide in and out as easily as when you started, and may not even fit in areas they’re supposed to. That’s when you can either carry on until the tower falls (crash) or demand it rebuild itself (reboot), so that you can resume moving your desired pieces around easily and without frustration.

Anonymous 0 Comments

Imagine a whiteboard. The longer you use that whiteboard without erasing it, the more problems you’re likely to run into. It’ll become a struggle as you try and fit things into little gaps, and even if you could erase a few things here and there you’d still probably have to break up long things into multiple parts and accidentally erase or overwrite something important every now and again.

Computer memory is kind of like this. No software is perfect (including the operating system like Windows, MaxOS, Android, IOS, etc.) and the longer it runs the more clutter and small errors it generates in memory (IE: the metaphorical whiteboard). Restarting a device is the equivalent of completely erasing the whiteboard and starting from a clean slate.

Anonymous 0 Comments

A simple way I have heard it explained is to think of it as communication between two people A calls B and B responds and this is repeated. Then, for some unknown reason A accidently calls C and then waits for B to respond and it doesn’t happen. A keeps calling C and waiting for B to respond and the system crashes.

So, you turn it off and it severs the connection between A and C (and A and B). Then when you turn it back on again, A boot up tells A to call B and wait for a reply. So A initiates a call to B and B replies and all works fine.

The on/off sequence basically starts it over – it does not correct the reason why A suddenly called C but in most instances it is not a “problem” it is just a glitch and does not repeat.

Anonymous 0 Comments

It makes sense when you consider what turning on means for the state of the device. Almost all electronics have a default startup sequence which places them in a very specific and organized state, which is thoroughly tested and stable.

During operation, as devices change states, they can build up things in memory (and for devices which run applications, those applications enter states of their own, which can conflict between applications, etc) and in the absence of tools to return devices to a clean state, restarting will correctly guarantee a stable state of operation.

Anonymous 0 Comments

Information is stored in 1 and 0.

1 means “on” and 0 means “off.”

This can vary to be “signal or no signal,” “charge or no charge,” “true or false” or similar variations on “on” and “off.”

Long strings if these make up information. (10011101 as an example of an 8-bit byte.)

Sometimes, a computer fails to put a 1 or a 0 where it belongs. Many times, these can self correct.

Sometimes, they don’t. The more.of this garbage data that accumulates, the worse a computer can run as it can sometimes run into things like “I need this address for 10011100 but it already has 10100011 in it! Is anyone using this value at this address? No? Cool. Let me clear and use that!” And various other slowdowns.

When you restart, you’re basically clearing all of the ones and zeroes that might be a little out if place from operating and re-reads and realigns all the ones and zeroes to their starting positions. Much like starting with a clean kitchen makes for easier cooking rather than having to clean dishes and surfaces as you go before cooking, you’ve given the computer a fully cleaned and organized kitchen to tear apart whilst cooking once more!

Anonymous 0 Comments

Errors and bugs are often not immediately catastrophic. So the program and computer can move on, but the error or bug might stick around and cause problems later on. A restart clears the whole system and lets it begin with a clean slate again.