From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Peter Dean Newsgroups: gmane.emacs.devel Subject: Re: [External] : Re: Would you say this information window is well designed? Date: Tue, 23 Feb 2021 17:32:09 +0000 Message-ID: References: <87im6jepft.fsf@gnus.org> <83eeh6vmg2.fsf@gnu.org> <835z2ivknw.fsf@gnu.org> Reply-To: Peter Dean Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26776"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "drew.adams@oracle.com" , "stefankangas@gmail.com" , "larsi@gnus.org" , "dgutov@yandex.ru" , "emacs-devel@gnu.org" To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Feb 23 18:33:17 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lEbYi-0006rD-JT for ged-emacs-devel@m.gmane-mx.org; Tue, 23 Feb 2021 18:33:16 +0100 Original-Received: from localhost ([::1]:49036 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lEbYh-0007H4-Lp for ged-emacs-devel@m.gmane-mx.org; Tue, 23 Feb 2021 12:33:15 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53078) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lEbXq-0006rd-AZ for emacs-devel@gnu.org; Tue, 23 Feb 2021 12:32:22 -0500 Original-Received: from mail-40140.protonmail.ch ([185.70.40.140]:58607) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lEbXo-0000rY-0c; Tue, 23 Feb 2021 12:32:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1614101536; bh=1XavNFnrzNmTc8pJT3HKE0pfIwHDS5Fly5SJuSY6sCo=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=t8S5FcYrrjEA3qrhlI4hly6SPWm76zGbAghvL3fD/8H72RCM75nGZK9cLt0x9y18J MP/HLu5BqX4xMZvQ8DQzAZvhKaZep4gWZ36FEQG/P4JtCAGm+G/Z+GmUwzoOpmi709 CcaqkQCKhMI9tWS4J4U7stHedxHroAbTaApqqt7c= In-Reply-To: <835z2ivknw.fsf@gnu.org> Received-SPF: pass client-ip=185.70.40.140; envelope-from=laszlomail@protonmail.com; helo=mail-40140.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:265541 Archived-At: > > There's no simple explanation, not in terms that would be easily > understood, unless you are familiar with the implementation details. > The best I can do is say that our threads don't yield frequently > enough, nowhere near the frequency that you seem to assume. Thanks. I thought if a thread calls thread-yield very often (e.g. in ever iteration of a loop) then it lets the UI process pending events every time it yields. But if I understand you correctly, even if the thread calls thread-yield explicitly, it is not a guaranteed that the UI processes events and stay responsive. If this the case then I wonder what the possible uses for threads are.