[過去ログ]
ふらっと C#,C♯,C#(初心者用) Part141 (1002レス)
ふらっと C#,C♯,C#(初心者用) Part141 http://mevius.5ch.net/test/read.cgi/tech/1544839627/
上
下
前次
1-
新
通常表示
512バイト分割
レス栞
抽出解除
レス栞
このスレッドは過去ログ倉庫に格納されています。
次スレ検索
歴削→次スレ
栞削→次スレ
過去ログメニュー
467: デフォルトの名無しさん (ワッチョイ 4d61-cDLG) [sage] 2019/01/29(火) 18:59:35.28 ID:8rAEnTT80 【参考】 Sleep() の意味は、待つときに、HLT 命令を使うこと。HLT 命令は、特権命令なので ユーザーランド(一般アプリ)のプロセスでは実行できないため、OSのAPIで実行して 貰うしかない。なお、マルチタスクOSで、HLT 命令を実行すると、他のプロセスに実行が 移ることが多い。 多くのアーキテクチャに置いて、HLT 命令は、「busy wait」で待つよりも、 劇的に電力消費と熱の発生を抑えることが出来る: https://en.wikipedia.org/wiki/HLT_(x86_instruction) Almost every modern processor instruction set includes an instruction or sleep mode which halts the processor until more work needs to be done. In interrupt-driven processors, this instruction halts the CPU until an external interrupt is received. On most architectures, executing such an instruction allows the processor to significantly reduce its power usage and heat output, which is why it is commonly used instead of busy waiting for sleeping and idling. http://mevius.5ch.net/test/read.cgi/tech/1544839627/467
469: デフォルトの名無しさん (ワッチョイ 5902-beQY) [] 2019/01/29(火) 20:17:02.92 ID:lSFWGay90 >>465-468 みなさまありがとうございます。 特にSleepの解説は勉強になりました。 パフォーマンスも特に影響無いようで、 一定間隔で処理するのでTimerを利用することにします。 http://mevius.5ch.net/test/read.cgi/tech/1544839627/469
メモ帳
(0/65535文字)
上
下
前次
1-
新
書
関
写
板
覧
索
設
栞
歴
スレ情報
赤レス抽出
画像レス抽出
歴の未読スレ
AAサムネイル
Google検索
Wikipedia
ぬこの手
ぬこTOP
0.032s