{"action":"opened","issue":{"url":"https://api.github.com/repos/seanmonstar/num_cpus/issues/5","labels_url":"https://api.github.com/repos/seanmonstar/num_cpus/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/seanmonstar/num_cpus/issues/5/comments","events_url":"https://api.github.com/repos/seanmonstar/num_cpus/issues/5/events","html_url":"https://github.com/seanmonstar/num_cpus/issues/5","id":68310804,"number":5,"title":"Possible to get hyper threading?","user":{"login":"faern","id":332294,"avatar_url":"https://avatars.githubusercontent.com/u/332294?v=3","gravatar_id":"","url":"https://api.github.com/users/faern","html_url":"https://github.com/faern","followers_url":"https://api.github.com/users/faern/followers","following_url":"https://api.github.com/users/faern/following{/other_user}","gists_url":"https://api.github.com/users/faern/gists{/gist_id}","starred_url":"https://api.github.com/users/faern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/faern/subscriptions","organizations_url":"https://api.github.com/users/faern/orgs","repos_url":"https://api.github.com/users/faern/repos","events_url":"https://api.github.com/users/faern/events{/privacy}","received_events_url":"https://api.github.com/users/faern/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-14T09:05:00Z","updated_at":"2015-04-14T09:05:00Z","closed_at":null,"body":"It would be very nice if it was possible to ask this library if HT is present or not.\r\nOften when doing computationally intensive work in thread pools and similar using the full number of threads is not desired (at least not in my experience).\r\nHaving an X-core cpu with HT will make this library return 2X. Not very strange, this is how it usually works. The downside is that doing heavy computation on 2X threads gives very little performance boost compared to X threads and has the downside that it slows down the computer very much, specially if the same computer run anything with a GUI.\r\n\r\nWould this be possible to query from the OS? Maybe I can have a look at this myself, but I don't have time now so I leave this here."}}