emacs-devel
[Top][All Lists]
Advanced

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

Re: [External] : Re: Would you say this information window is well desig


From: Eli Zaretskii
Subject: Re: [External] : Re: Would you say this information window is well designed?
Date: Tue, 23 Feb 2021 21:46:26 +0200

> Date: Tue, 23 Feb 2021 19:36:28 +0000
> From: Peter Dean <laszlomail@protonmail.com>
> Cc: "drew.adams@oracle.com" <drew.adams@oracle.com>, "stefankangas@gmail.com" 
> <stefankangas@gmail.com>, "larsi@gnus.org" <larsi@gnus.org>, 
> "dgutov@yandex.ru" <dgutov@yandex.ru>, "emacs-devel@gnu.org" 
> <emacs-devel@gnu.org>
> 
> I checked and I see yield calls the system scheduler. Could simply
> giving the main thread the highest priority work?

Why the main thread?  The UI could be run in any thread, not
necessarily in the main one.  There's no way to know in advance which
one will run it.

And what if one of the non-main threads wants to ask the user a
question, for example?  It could happen without any intent on the
application level, simply because a thread calls some primitive that
needs to prompt the user.

And finally, if you give the main thread higher priority up front, how
can we make sure the other threads will ever get to run?



reply via email to

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