當作業系統處於睡眠模式時,計算機的cpu是活動的嗎?

當你把你的作業系統置於睡眠模式時,到底有多少活動仍然在你的電腦硬體的“引擎蓋下”發生?今天的超級使用者問答帖子有一個很好的解釋,可以幫助好奇的讀者更多地瞭解他的系統和計算機是如何工作的。...

當作業系統處於睡眠模式時,計算機的cpu是活動的嗎?

當你把你的作業系統置於睡眠模式時,到底有多少活動仍然在你的電腦硬體的“引擎蓋下”發生?今天的超級使用者問答帖子有一個很好的解釋,可以幫助好奇的讀者更多地瞭解他的系統和計算機是如何工作的。

今天的問答環節是由SuperUser提供的,SuperUser是Stack Exchange的一個分支,是一個由社群驅動的問答網站分組。

照片由Asif A.Ali(Flickr)提供。

問題

超級使用者讀取器cpx想知道當作業系統處於睡眠模式時計算機的CPU是否處於活動狀態:

Suppose you have a Windows operating system installed on your computer and you toggle the system into sleep mode before putting it away. To the best of my knowledge, there would be no programs or processes running. Would the processor still be running or active in the background in some manner or capacity and utilizing power?

When you perform any action with modern computers running Windows 7, 8.1, or 10 (i.e. opening the lid, pressing a button, touching the mouse), it immediately turns itself on without having to press the power button. Is it because the CPU was actively waiting for those events to occur while in low power mode?

當作業系統處於睡眠模式時,計算機的CPU是活動的嗎?

答案

超級使用者貢獻者DavidPostill為我們提供了答案:

Is a CPU Active in Sleep Mode?

It depends. There are different sleep states (S1 to S4) and the CPU state is not the same in all of them.

  • The CPU is stopped in sleep state S1
  • The CPU is powered off in sleep states S2 or greater

Sleep is normally sleep state S3, but the BIOS can sometimes be configured to use sleep state S1 instead (used when resume from S3 does not work properly).

  • powercfg -a (can be used to see what sleep states a PC supports)

Example Output:

007Ys3FFgy1gpdwcer0e3j30hd054mxh

System Sleep States

States S1, S2, S3, and S4 are the sleeping states. A system in one of these states is not performing any computational tasks and appears to be off. Unlike a system in the shutdown state (S5), however, a sleeping system retains memory state, either in the hardware or on disk. The operating system need not be rebooted to return the computer to a working state.

Some devices can wake the system from a sleeping state when certain events occur, such as an incoming call to a modem. In addition, on some computers, an external indicator tells the user that the system is merely sleeping.

With each successive sleep state, S1 to S4, more of the computer is shut down. All ACPI-compliant computers shut off their processor clocks at S1 and lose system hardware context at S4 (unless a hibernate file is written before shutdown), as listed in the secti*** below. Details of the intermediate sleep states can vary depending on how the manufacturer has designed the machine. For example, on some machines certain chips on the motherboard might lose power at S3, while on others such chips retain power until S4. Furthermore, some devices might be able to wake the system only from S1 and not from deeper sleep states.

System Power State S1

System power state S1 is a sleeping state with the following characteristics:

Power C***umption

  • Less c***umption than in S0 and greater than in the other sleep states, processor clock is off and bus clocks are stopped, software resumption
  • Control restarts where it left off

Hardware Latency

  • Typically no more than two seconds

System Hardware Context

  • All context retained and maintained by hardware

System Power State S2

System power state S2 is similar to S1 except that the CPU context and contents of the system cache are lost because the processor loses power. State S2 has the following characteristics:

Power C***umption

  • Less c***umption than in state S1 and greater than in S3, processor is off, bus clocks are stopped (some buses might lose power), software resumption
  • After wake-up, control starts from the processor’s reset vector

Hardware Latency

  • Two seconds or more, greater than or equal to the latency for S1

System Hardware Context

  • CPU context and system cache contents are lost

System Power State S3

System power state S3 is a sleeping state with the following characteristics:

Power C***umption

  • Less c***umption than in state S2, processor is off and some chips on the motherboard might also be off

Software Resumption

  • After the wake-up event, control starts from the processor’s reset vector

Hardware Latency

  • Almost indistinguishable from S2

System Hardware Context

  • Only system memory is retained; CPU context, cache contents, and chipset context are lost

System Power State S4

System power state S4, the hibernate state, is the lowest-powered sleeping state and has the longest wake-up latency. To reduce power c***umption to a minimum, the hardware powers off all devices. Operating system context, however, is maintained in a hibernate file (an image of memory) that the system writes to disk before entering the S4 state. Upon restart, the loader reads this file and jumps to the system’s previous, pre-hibernation location.

If a computer in state S1, S2, or S3 loses all AC or battery power, it loses system hardware context and therefore must reboot to return to S0. A computer in state S4, however, can restart from its previous location even after it loses AC or battery power because operating system context is retained in the hibernate file. A computer in the hibernate state uses no power (with the possible exception of trickle current).

System power state S4 has the following characteristics:

Power C***umption

  • Off, except for trickle current to the power button and similar devices, software resumption
  • System restarts from the saved hibernate file. If the hibernate file cannot be loaded, rebooting is required. Reconfiguring the hardware while the system is in the S4 state might result in changes that prevent the hibernate file from loading correctly.

Hardware Latency

  • Long and undefined. Only physical interaction returns the system to a working state. Such interaction might include the user pressing the ON switch or, if the appropriate hardware is present and wake-up is enabled, an incoming ring for the modem or activity on a LAN. The machine can also awaken from a resume timer if the hardware supports it. System hardware context.
  • None retained in hardware. The system writes an image of memory in the hibernate file before powering down. When the operating system is loaded, it reads this file and jumps to its previous location.

Source: System Sleeping States

Further Reading


有什麼要補充的解釋嗎?在評論中發出聲音。想從其他精通技術的Stack Exchange使用者那裡瞭解更多答案嗎?在這裡檢視完整的討論主題。

  • 發表於 2021-04-09 23:12
  • 閱讀 ( 38 )
  • 分類:網際網路

你可能感興趣的文章

雙引導作業系統的10個風險

考慮安裝第二個作業系統,並想知道風險?在你的電腦上安裝Windows和Linux可以讓你兩全其美。但這並不總是一帆風順的。雙重啟動可能會導致問題,其中一些問題很難預見。 ...

  • 發佈於 2021-03-11 01:07
  • 閲讀 ( 60 )

管理和控制windows關閉的4個工具

...的所有程式都是免費的、輕量級的,這意味著它們不會使系統資源過載。 ...

  • 發佈於 2021-03-13 02:27
  • 閲讀 ( 37 )

分割槽表:錯誤的含義及避免方法

...案分佈在這些部門就足夠了。當您儲存一個檔案時,您的作業系統開始將其資料一次一個扇區地寫入硬碟,直到完全儲存為止。稍後開啟檔案時,arm將一次讀取一個扇區,直到再次載入檔案。如果扇區位於一起,則它們構成一個...

  • 發佈於 2021-03-13 14:42
  • 閲讀 ( 50 )

linux中的程序是什麼?

... 最終,當作業完成時,終端中將出現一行,類似於: ...

  • 發佈於 2021-03-27 02:21
  • 閲讀 ( 60 )

8個警告標誌您的mac可能有問題(以及如何修復)

...看起來像DOA有很多原因。這可能是電纜、SMC、軟體更新或作業系統升級失敗的問題。 如果Mac無**常啟動,請嘗試以下可能的修復方法: 檢查電纜。確保所有東西都已插好,牆上的插座已開啟(如果適用)。先檢查一下這個總是...

  • 發佈於 2021-04-02 19:32
  • 閲讀 ( 61 )

提高mac效能的10個快速步驟

...腦需要大約5-10GB的可用空間來進行內務管理。把它想象成作業系統的呼吸空間。 單擊螢幕右上角的Apple圖示,然後單擊About This Mac。在“儲存”選項卡下,您將看到當前硬碟使用情況的明細,以及可用空間的大小。如果主驅動器...

  • 發佈於 2021-04-02 21:41
  • 閲讀 ( 74 )

什麼是“系統空閒程序”,為什麼要佔用這麼多cpu?

...如果不是全部)CPU。但是系統空閒程序就是這樣;一個由作業系統產生的空閒程序。如果這個程序不停地讓你的處理器處理一些事情,你的系統可能會凍結。 換句話說,系統空閒程序使用的CPU資源只是沒有被使用的CPU資源。如...

  • 發佈於 2021-04-03 15:38
  • 閲讀 ( 48 )

當你開啟電腦的時候到底發生了什麼?

...EFI可以做的不僅僅是初始化硬體,它實際上是一個很小的作業系統。例如,Intel CPU具有Intel管理引擎。這提供了多種功能,包括為Intel的主動管理技術提供動力,該技術允許對商務PC進行遠端管理。 uefi或bios可切換到引導裝置 在...

  • 發佈於 2021-04-04 02:37
  • 閲讀 ( 50 )

htg解釋道:windows中的高階電源設定是什麼?

...有一個單獨的設定,您可以為每個選項更改。一些windows10系統使用“現代待機”,選項很少。 視窗頂部的框允許您在系統的電源計劃之間快速選擇,以便您可以從此視窗調整其所有設定。您當前使用的電源計劃被標記為“[活動]...

  • 發佈於 2021-04-04 06:34
  • 閲讀 ( 477 )

什麼是作業系統?

作業系統是管理計算機上所有硬體和其他軟體的主要軟體。作業系統,也被稱為“作業系統”,與計算機硬體介面,並提供應用程式可以使用的服務。 作業系統做什麼? 作業系統是裝置上的核心軟體集,它將所有的東西都放...

  • 發佈於 2021-04-05 02:31
  • 閲讀 ( 48 )
gxk3810
gxk3810

0 篇文章

作家榜

  1. admin 0 文章
  2. 孫小欽 0 文章
  3. JVhby0 0 文章
  4. fvpvzrr 0 文章
  5. 0sus8kksc 0 文章
  6. zsfn1903 0 文章
  7. w91395898 0 文章
  8. SuperQueen123 0 文章

相關推薦