emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Surprisingly high use of file descriptors


From: Robert Pluim
Subject: Re: Surprisingly high use of file descriptors
Date: Thu, 05 May 2022 09:51:03 +0200

>>>>> On Thu, 05 May 2022 10:47:26 +0300, Eli Zaretskii <eliz@gnu.org> said:

    Eli> FTR, on MS-Windows the implementation uses a file handle per watch
    Eli> (one watch for each directory), but that handle is not monitored by
    Eli> the emulated pselect.  It also creates one thread per each watch.  The
    Eli> maximum number of file handles per process on MS-Windows is AFAIK very
    Eli> large (in the millions), and the maximum number of threads per process
    Eli> is on the order of tens of thousands.

That sounds like something Someone™ could use to write a proper 'poll'
emulation ☺️ (I think gnulib has one, but I haven't looked at it).

Robert
-- 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]