-
-
Notifications
You must be signed in to change notification settings - Fork 34.2k
Open
Labels
OS-windowsstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
Bug description:
from multiprocessing.conenction import wait
import os
from time import time
print(os.getpid())
start = t
while True:
for pipe in wait([], 1):
pass
print(time()-t)multiprocessing.connection.wait causes 100% CPU load if the object list is empty; otherwise the CPU load very low
CPython versions tested on:
3.12
Operating systems tested on:
Windows
Linked PRs
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
OS-windowsstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Projects
Status
No status