[問題] Thread pool core的分配

看板C_and_CPP (C/C++)作者 (天罪)時間14年前 (2012/03/13 13:02), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
開發平台(Platform): (Ex: VC++, GCC, Linux, ...) Windows 7(Visual Studio 2008) 額外使用到的函數庫(Library Used): (Ex: OpenGL, ...) boost 問題(Question): 我用一個架構在boost::thread上的library - boost::threadpool 對我的程式做平行化 http://threadpool.sourceforge.net/ 我發現這個lib產生的thread似乎不會自動分配到每顆core上去跑, 平台是logical 八核心, 跑八個infinite loop thread,大概只有兩顆在high usage, 我想知道有沒有其他的thread pool library是已經有幫忙在windows下做 每個core的分配(load balancing)? 或我如果要在windows下實做load balance的 thread pool 的話用哪套工具比較方便(win32、pthread、or OpenMp...)? 多謝解答~ -- ∕ ╱ ▆▄▅▆ ﹨ ≡█▆ 犧牲五樓 ∕ ╱ ▃▅▅▆▆ ▆▃▁≡ 召喚L2M!! ▃▆ ∕╱ ◣ ◢ █◣ ∕ ﹨ █▅▃ ▃▄█▂▂▃∕ ﹨∥ ╲﹨∕╱ ∕ ﹨ ██▃ ∥﹨∥ ╱ ╴ ψbloodlime ∥﹨ ████ ﹨ ████  ̄ ̄ ̄╱ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.123.101.98
文章代碼(AID): #1FNjJtum (C_and_CPP)
文章代碼(AID): #1FNjJtum (C_and_CPP)