{"provider_name":"Hatena Blog","image_url":null,"url":"https://yohhoy.hatenadiary.jp/entry/20140811/p1","categories":["C++","Boost"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyohhoy.hatenadiary.jp%2Fentry%2F20140811%2Fp1\" title=\"\u8ad6\u7406\uff0f\u7269\u7406\u30d7\u30ed\u30bb\u30c3\u30b5\u30b3\u30a2\u6570\u306e\u53d6\u5f97 - yohhoy\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"yohhoy","title":"\u8ad6\u7406\uff0f\u7269\u7406\u30d7\u30ed\u30bb\u30c3\u30b5\u30b3\u30a2\u6570\u306e\u53d6\u5f97","blog_url":"https://yohhoy.hatenadiary.jp/","type":"rich","version":"1.0","height":"190","blog_title":"yohhoy\u306e\u65e5\u8a18","description":"Boost.Thread 1.56.0\u3067\u306f\u3001\u5f93\u6765\u304b\u3089\u3042\u308b\u30b7\u30b9\u30c6\u30e0\u306e\u8ad6\u7406\u30d7\u30ed\u30bb\u30c3\u30b5\u30b3\u30a2\u6570\u53d6\u5f97\u95a2\u6570\u306b\u52a0\u3048\u3066\u3001\u7269\u7406\u30d7\u30ed\u30bb\u30c3\u30b5\u30b3\u30a2\u6570\u53d6\u5f97\u95a2\u6570\u304c\u8ffd\u52a0\u3055\u308c\u305f\u3002 #include <boost/thread.hpp> int vnum = boost::thread::hardware_concurrency(); // \u8ad6\u7406\u30b3\u30a2\u6570 int pnum = boost::thread::physical_concurrency(); // \u7269\u7406\u30b3\u30a2\u6570 // \u4f8b\uff1a\u8ad6\u74068\u30b3\u30a2/\u7269\u74064\u30b3\u30a2\u74b0\u5883\u306a\u3089\u3070 vnum==8 && pnum==4 unsigned hardware_concurrency() noexecp\u2026","author_url":"https://blog.hatena.ne.jp/yohhoy/","width":"100%","published":"2014-08-11 00:00:00","provider_url":"https://hatena.blog"}