Commit 5245b97
authored
[3.12] pythongh-109649: Enhance os.cpu_count() documentation (python#110169)
* pythongh-109649: Enhance os.cpu_count() documentation
* Doc: Specify that os.cpu_count() counts *logicial* CPUs.
* Doc: Specify that os.sched_getaffinity(0) is related to the calling
thread.
* Fix test_posix.test_sched_getaffinity(): restore the old CPU mask
when the test completes!
* Restore removed text1 parent ce332aa commit 5245b97
2 files changed
Lines changed: 10 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5141 | 5141 | | |
5142 | 5142 | | |
5143 | 5143 | | |
5144 | | - | |
5145 | | - | |
| 5144 | + | |
| 5145 | + | |
| 5146 | + | |
| 5147 | + | |
5146 | 5148 | | |
5147 | 5149 | | |
5148 | 5150 | | |
| |||
5183 | 5185 | | |
5184 | 5186 | | |
5185 | 5187 | | |
5186 | | - | |
5187 | | - | |
5188 | | - | |
5189 | | - | |
5190 | | - | |
| 5188 | + | |
| 5189 | + | |
5191 | 5190 | | |
| 5191 | + | |
| 5192 | + | |
| 5193 | + | |
5192 | 5194 | | |
5193 | 5195 | | |
5194 | 5196 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1205 | 1205 | | |
1206 | 1206 | | |
1207 | 1207 | | |
| 1208 | + | |
1208 | 1209 | | |
1209 | 1210 | | |
1210 | 1211 | | |
| |||
0 commit comments