For ~15 years, Python's subprocess.Popen.wait() implemented timeouts using busy-loop polling. This post explains how that was finally replaced with true event-driven waiting on POSIX systems: pidfd_open() + poll() on Linux and kqueue() on BSD / macOS. The result is zero polling and fewer context switches. The same improvement now landing both in psutil and CPython itself.
Posted by
grodola on Wednesday January 28, 2026 @04:50PM
from the gmpy.dev dept.
Posted by
grodola on Wednesday December 24, 2025 @10:53AM
from the gmpy.dev dept.
Posted by
grodola on Saturday October 25, 2025 @09:46AM
from the gmpy.dev dept.
Posted by
grodola on Friday April 26, 2019 @03:20AM
from the grodola.blogspot.com dept.
Posted by
grodola on Thursday October 12, 2017 @08:55AM
from the grodola.blogspot.com dept.
Posted by
grodola on Sunday September 03, 2017 @12:00PM
from the grodola.blogspot.com dept.
Posted by
grodola on Sunday November 06, 2016 @02:52PM
from the grodola.blogspot.com dept.
Posted by
grodola on Sunday October 23, 2016 @11:10AM
from the grodola.blogspot.com dept.
Posted by
grodola on Tuesday October 11, 2016 @08:30PM
from the grodola.blogspot.com dept.
Posted by
grodola on Sunday May 15, 2016 @04:09AM
from the grodola.blogspot.com dept.
Posted by
grodola on Wednesday February 17, 2016 @12:06PM
from the grodola.blogspot.com dept.
Posted by
grodola on Friday February 12, 2016 @12:46PM
from the grodola.blogspot.com dept.
Posted by
grodola on Friday January 15, 2016 @08:21AM
from the grodola.blogspot.com dept.
Posted by
grodola on Wednesday November 25, 2015 @01:37PM
from the grodola.blogspot.com dept.
Posted by
grodola on Friday June 13, 2014 @09:49AM
from the grodola.blogspot.com dept.
Posted by
grodola on Monday March 10, 2014 @09:10PM
from the grodola.blogspot.com dept.
Posted by
grodola on Monday January 13, 2014 @06:44AM
from the grodola.blogspot.com dept.