Results 1 to 3 of 3

Thread: How does shutdown and boot work in Windows 7

  1. #1
    HappyAndyK's Avatar
    HappyAndyK is online now Site Administrator
    Join Date
    Jun 2008
    Posts
    7,558

    Default How does shutdown and boot work in Windows 7

    What takes place after you click on the Shutdown button in Windows 7!

    Shutdown entails:

    1.The user initiates a shutdown by selecting “shut down” from the Start menu, or by pressing the power button; or an application initiates shutdown by calling an API such as ExitWindowsEx() or InitiateShutdown().
    2.Windows broadcasts messages to running applications, giving them a chance to save data and settings. Applications can also request a little extra time to finish what they’re doing.
    3.Windows closes the user sessions for each logged on user.
    4.Windows sends messages to services notifying them that a shutdown has begun, and subsequently shuts them down. It shuts down ordered services that have a dependency serially, and the rest in parallel. If a service doesn’t respond, it is shut down forcefully.
    5.Windows broadcasts messages to devices, signaling them to shut down.
    6.Windows closes the system session (also known as “session 0”).
    7.Windows flushes any pending data to the system drive to ensure it is saved completely.
    8.Windows sends a signal via the ACPI interface to the system to power down the PC.

    What takes place when you start a Windows 7 PC!

    A boot entails:

    1.After pressing the power button, the PC’s firmware initiates a Power-On Self Test (POST) and loads firmware settings. This pre-boot process ends when a valid system disk is detected.
    2.irmware reads the master boot record (MBR), and then starts Bootmgr.exe. Bootmgr.exe finds and starts the Windows loader (Winload.exe) on the Windows boot partition.
    3.Essential drivers required to start the Windows kernel are loaded and the kernel starts to run, loading into memory the system registry hive and additional drivers that are marked as BOOT_START.
    4.The kernel passes control to the session manager process (Smss.exe) which initializes the system session, and loads and starts the devices and drivers that are not marked BOOT_START.
    5.Winlogon.exe starts, the user logon screen appears, the service control manager starts services, and any Group Policy scripts are run. When the user logs in, Windows creates a session for that user.
    6.Explorer.exe starts, the system creates the desktop window manager (DWM) process, which initializes the desktop and displays it.

    Download paper and read more at Windows On/Off Transition Performance Analysis.

    Go here to see Video: Windows 8 will startup in 3 seconds | The Windows Club.


  2. #2
    SKK's Avatar
    SKK
    SKK is offline Windows Enthusiast
    Join Date
    Aug 2011
    Location
    Rohtak
    Posts
    122

    Default

    valuable info

  3. #3
    whs's Avatar
    whs
    whs is offline Gold Member
    Join Date
    Oct 2008
    Posts
    1,421

    Default

    Firmware reads the master boot record (MBR), and then starts Bootmgr.exe
    Here I would add a mention that the MBR is on the first 512 bytes of the HDD and that the bootmgr is on the "active" partition. A lot of people mix up the bootmgr and the MBR and have no clue where those are located.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22