看板 C_and_CPP 關於我們 聯絡資訊
先謝謝各位日前不吝指導,以下為心得分享: 後來發現 MSDN undocument 其實不少,可能是那些 api 還沒發展完 也可能是用起來實在是太複雜了,後來我才知道原來有所謂 undocument 網站 http://undocumented.ntinternals.net/ 最後翻到, 要知道 user mode 直接調用 undocument api 便可 ( 也有請 os 為 vista / win7 協助測試是否有問題 ) http://codepad.org/v2lF9u3C 手邊 AMD 雙核, xp sp3, 實測出來 user mode address: 0x0001 0000 ~ 0x7ffe ffff 較讓人感到意外的是: ActiveProcessors=3, NumberProcessors=2, 不知道這是怎麼回事 XD --------- system undocument 東西真的太多了, 預計取得下列東西 1. 測 CPU 時脈 2. 每個 processor CPU 使用率 3. 每個 processor 下,每個 process 佔 CPU 使用率 (應會用到 SetProcessAffinityMask) 4. 每個 processor 下,每個 thread 佔 CPU 使用率 (應會用到 SetThreadAffinityMask) 上述 3,4 有點小問題,若將 Process 指定在 CPU1 後,才進行 CreateThread, 這樣的話還要再調用 SetThreadAffinityMask 將該 thread 指定到 CPU1 嗎? (即,Process 在 CPU1 執行,該 thread 有可能會於其它 CPU 下執行嗎?) 謝謝回答! 若各位已有部份經驗或資源 (net address or keyword),請不吝指導, 小弟感激不盡 -- YouLoveMe() ? LetItBe() : LetMeFree(); -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 180.177.73.222 ※ 編輯: tropical72 來自: 180.177.73.222 (04/18 15:07)
purpose:文件:http://msdn.microsoft.com/library/ms724509.aspx 04/18 16:13
purpose:http://en.wikipedia.org/wiki/CPUID 我沒用過 04/18 16:16
tropical72:謝謝 p 大 :) 04/18 22:04