➜

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

作者 vstinner
收信人 paul.moore, robbuckley, steve.dower, tim.golden, vstinner, zach.ware
日期 2017-06-06.12:53:23
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1496753603.09.0.0109750133525.issue30581@psf.upfronthosting.co.za>
In-reply-to
内容
On Windows, os.cpu_count() is currently implemented with:

"GetSystemInfo(&sysinfo); return sysinfo.dwNumberOfProcessors;"

https://msdn.microsoft.com/en-us/library/windows/desktop/ms724958(v=vs.85).aspx

It seems to return the number of *logical* CPUs:

"""
dwNumberOfProcessors

    The number of logical processors in the current group.

Note: For information about the physical processors shared by logical processors, call GetLogicalProcessorInformationEx with the RelationshipType parameter set to RelationProcessorPackage (3).
"""

It seems like you have two physical CPU packages. Maybe the function only returns infos from the first package?
历史
日期 用户 动作 参数
2017-06-06 12:53:23vstinner修改recipients: + vstinner, paul.moore, tim.golden, zach.ware, steve.dower, robbuckley
2017-06-06 12:53:23vstinner修改messageid: <1496753603.09.0.0109750133525.issue30581@psf.upfronthosting.co.za>
2017-06-06 12:53:23vstinner链接issue30581 messages
2017-06-06 12:53:23vstinner创建