From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: User interaction from multiple threads Date: Fri, 24 Aug 2018 20:20:48 -0400 Message-ID: References: <838t59j821.fsf@gnu.org> <87lg92q7ih.fsf@runbox.com> <83a7phdl7r.fsf@gnu.org> <61492e7f622303d02405bedbe65fabae@webmail.orcon.net.nz> <83pnybdaer.fsf@gnu.org> <837ekicw7i.fsf@gnu.org> <877ekiierh.fsf@himinbjorg.adminart.net> <834lflb2fj.fsf@gnu.org> <83h8jk9l41.fsf@gnu.org> Reply-To: rms@gnu.org NNTP-Posting-Host: blaine.gmane.org Content-Type: text/plain; charset=Utf-8 X-Trace: blaine.gmane.org 1535157453 5184 195.159.176.226 (25 Aug 2018 00:37:33 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 25 Aug 2018 00:37:33 +0000 (UTC) Cc: psainty@orcon.net.nz, hw@adminart.net, emacs-devel@gnu.org, emacs-devel-bounces+psainty=orcon.net.nz@gnu.org, gazally@runbox.com To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Aug 25 02:37:29 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ftMa1-0001H2-0a for ged-emacs-devel@m.gmane.org; Sat, 25 Aug 2018 02:37:29 +0200 Original-Received: from localhost ([::1]:44121 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ftMc7-0003jS-5a for ged-emacs-devel@m.gmane.org; Fri, 24 Aug 2018 20:39:39 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59200) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ftMbR-0003jB-VL for emacs-devel@gnu.org; Fri, 24 Aug 2018 20:38:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ftMLF-0007TB-Ap for emacs-devel@gnu.org; Fri, 24 Aug 2018 20:22:15 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:34066) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ftMJt-0004J5-Co; Fri, 24 Aug 2018 20:20:49 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1ftMJs-0006X7-Di; Fri, 24 Aug 2018 20:20:48 -0400 In-Reply-To: <83h8jk9l41.fsf@gnu.org> (message from Eli Zaretskii on Fri, 24 Aug 2018 12:20:30 +0300) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:228883 Archived-At: [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > The idea expressed by several people is that once you start > interacting with some thread's prompt, the other threads are locked > out of interaction, until the interacting thread is done with the > series of prompts that allow it to go on with its business. This might be ok if the thread's further prompts arrive in short succession. But what if it runs for 5 minutes and then asks for input? Should other threads be blocked for those 5 minutes? I think the point of multiple threads is to avoid that. Would a thread explicitly seize the terminal and hold it and later release it? Or would asking for input hold the terminal until the thread exits? > If that's the first prompt in a series of prompts, we should fix the > prompt to tell what password does it ask for. I don't think that is practical to do in all cases. In some, yes. But what if two threads run the same function? The prompt could be identical. > And even if we do require each thread to have a name, what guarantees > do we have that the name will be more informative than the prompts > about which you were worried? If we tell people, "Give your thread a meaningful name if it is going to ask for input", and we explain why, they will mostly do it. When they don't, we can fix it. -- Dr Richard Stallman President, Free Software Foundation (https://gnu.org, https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org)