[問題] Thread pool core的分配
開發平台(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
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章