GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — os.process_cpu_count(): get the number CPUs usable by the current process · Issue #109649 · python/cpython Closed Labels type-featureA feature request or enhancementA feature request or enhancement DescriptionFeature or enhancementos.cpu_count() returns the total number of CPUs that the current machine has. On Unix, sched_setaffinity() can reduce the number of CPU "usable" by a process. Currently, os.cpu_count() docstring contains a recipe how to get the number of usable CPUs: I propose to add an affinity optional keyword-only parameter to os.cpu_count() which would return UPDATE: Rename usable parameter to affinity. Linked PRs
Activity
MetadataMetadataAssigneesLabelstype-featureA feature request or enhancementA feature request or enhancement ProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |