12/6/2023 0 Comments Hibernate vs sleep pc![]() ![]() Applications, services, and drivers are notified that a sleep is happening.Sleep takes things one step further by not bothering to write RAM to disk. ![]() It’s usually quicker than a full shutdown and restart because all the software doesn’t have to be individually loaded and initialized from scratch. (Again, hardware drivers are typically the most impacted.) The applications, services, and drivers - all already loaded into RAM - are notified that the system has resumed, in case they need to perform any initialization.The system’s boot process reads the image that was saved into RAM when the machine was placed in hibernation.When you resume from a hibernation state, the process is reversed. The system instructs the hardware to turn off the power, at which point everything in RAM is erased.All the loaded and running programs are included in the exact state they happen to be in, including any data they’ve initialized and maintained. The contents of RAM are written to disk.They still have the option to do something, if they like (drivers, in particular, may still need to set their associated hardware into known states), but it’s also possible that they need do nothing. Applications, services, and drivers are notified that hibernation has been requested.Rather than having all the software shut down and then later re-initialize itself, hibernate attempts to preserve that state in a way that takes less effort. The hibernate process is relatively simple, at least in concept. Frequently, this is nothing more than collecting and maintaining information in the computer’s memory or RAM. One of the common threads in the startup and shutdown processes outlined above is that each process - be it an application, a service, or a hardware driver - needs to initialize itself on start up or clean itself up on shutdown. Sleep and hibernate are two different approaches to optimizing the shutdown and startup process. Once again, each initializes itself into some known state in preparation for whatever task it’s intended to perform.Įven though what I’ve presented is an oversimplification, you can already see that shutting down and starting up are complex processes that take time. Finally, the applications you have configured to run automatically are loaded from disk into RAM and run.The services associated with the various Windows features and functions are loaded from disk into RAM and run, each initializing itself to whatever state is required to perform its task.They typically initialize the hardware that they control. The drivers associated with your hardware are loaded from disk into RAM and initialized.The boot process causes Windows itself to be read from hard disk and placed into RAM, where it can control your machine.When the power is turned back on to restart the computer, a similar sequence happens in reverse from the shutdown process. Finally, any last-minute information is written to disk, and the system instructs the hardware to turn off the power, at which point everything in RAM is erased.The software drivers associated with the hardware in or attached to your machine are also told of the impending shutdown, so they can do the same thing, in addition to turning off the hardware they control (or perhaps resetting it to a safe state, if needed, before power is removed).Any software services that are part of Windows itself are also told of the impending shutdown, so they can perform any necessarily cleanup, writing anything that needs to be preserved to disk for the next time the machine is turned on.They may or may not warn you about any open files you have, after which the program exits and is removed from RAM. Any running programs are told that the system is shutting down.When you shut down or power down your computer, a number of things happen. The primary difference between the two is what happens to the contents of your computer’s RAM, but there are more subtle differences as well.įirst, let’s look at what happens to your computer when you don’t use sleep or hibernate. The idea is that when they’re used, your computer will either shut down faster, start up faster, or both. Sleep (also called “standby”) and hibernate modes are alternatives to shutting down your computer completely.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |