D
defn noob
How can I check how many cores my computer has?
Is it possible to do this in a Python-app?
Is it possible to do this in a Python-app?
How can I check how many cores my computer has? Is it possible to do
this in a Python-app?
How can I check how many cores my computer has?
Is it possible to do this in a Python-app?
If you're using Windows, get PyWin32:
win32api.GetSystemInfo
tuple = GetSystemInfo()
Retrieves information about the current system.
Win32 API References
Search for GetSystemInfo at msdn, google or google groups.
Return Value
The return value is a tuple of 9 values,
which corresponds to the Win32 SYSTEM_INFO structure.
The element names are:
dwOemId
dwPageSize
lpMinimumApplicationAddress
lpMaximumApplicationAddress
dwActiveProcessorMask
dwNumberOfProcessors
dwProcessorType
dwAllocationGranularity
(wProcessorLevel,wProcessorRevision)
(0, 4096, 65536, 2147418111, 3L, 2, 586, 65536, (6, 3846))
|
processors
Why do you care? Python can't use more than one of them at
a time anyway.
defn said:How can I check how many cores my computer has?
Is it possible to do this in a Python-app?
defn said:How can I check how many cores my computer has?
Is it possible to do this in a Python-app?
Why do you care? Python can't use more than one of them at
a time anyway.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.