From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: hw Newsgroups: gmane.emacs.devel Subject: Re: User interaction from multiple threads Date: Tue, 28 Aug 2018 22:47:33 +0200 Organization: my virtual residence Message-ID: <87pny2qkuy.fsf@himinbjorg.adminart.net> References: <838t59j821.fsf@gnu.org> <83pnybdaer.fsf@gnu.org> <837ekicw7i.fsf@gnu.org> <877ekiierh.fsf@himinbjorg.adminart.net> <834lflb2fj.fsf@gnu.org> <83h8jk9l41.fsf@gnu.org> <8336v2994c.fsf@gnu.org> <83bm9q6x7v.fsf@gnu.org> <874lfi863s.fsf@himinbjorg.adminart.net> <83va7x5guc.fsf@gnu.org> <871sakl97g.fsf@himinbjorg.adminart.net> <87va7w8dt8.fsf@gmx.de> <87lg8rj2sa.fsf@himinbjorg.adminart.net> <83y3cr4ylp.fsf@gnu.org> <87bm9nejlv.fsf@himinbjorg.adminart.net> <83k1ob3v82.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1535494090 12384 195.159.176.226 (28 Aug 2018 22:08:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 28 Aug 2018 22:08:10 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Cc: gazally@runbox.com, rms@gnu.org, psainty@orcon.net.nz, emacs-devel@gnu.org, michael.albinus@gmx.de, emacs-devel-bounces+psainty=orcon.net.nz@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 29 00:08:05 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 1fum9c-00034S-Mo for ged-emacs-devel@m.gmane.org; Wed, 29 Aug 2018 00:08:04 +0200 Original-Received: from localhost ([::1]:40204 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fumBi-0003ct-Hk for ged-emacs-devel@m.gmane.org; Tue, 28 Aug 2018 18:10:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39200) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fumBX-0003YK-T8 for emacs-devel@gnu.org; Tue, 28 Aug 2018 18:10:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fumAR-0000qW-Qv for emacs-devel@gnu.org; Tue, 28 Aug 2018 18:08:57 -0400 Original-Received: from mo6-p01-ob.smtp.rzone.de ([2a01:238:20a:202:5301::5]:21943) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fumAF-0000Tq-Rj; Tue, 28 Aug 2018 18:08:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1535494120; s=strato-dkim-0002; d=adminart.net; h=Sender:References:Message-ID:Date:In-Reply-To:Subject:Cc:To:From: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=Z51iBsBHOFdl69FiEsJ3IiwIf3Wbg98l9QRNh3bGdQU=; b=HktkYiD24BwNe+y/lLka14+Li1/gOWWkwKZyVgcaf2Qf0rV2E9Z1kbEg66Z2Y5dy8z Pw/hB1NCly+6PBe6h7zDp9xC3VeL0racV4fQZ8UlDoN5MUsyn52R6+3/EOF5PqdUH4RT 4X7vZv9IsJZHu/XcFDIuJiHoY7UKLpcz6i5Saap6pt96Jfxeb/dc0clLkBfpFXnwhyvz 9DpgxCT2Oq0f53p5HVDIWwGUNUL9hG3Rry4d5kuIaabatkZDKlB06R3bLAjXhD+3aT1J RqwpkxjDi8Vwvh+TZDB/qtk4E6NODHP+gn1aEOx78O0D8j817qbNFHtcJejaabxgJtiL lQyw== X-RZG-AUTH: ":O2kGeEG7b/pS1FS4THaxjVF9w0vVgfQ9xGcjwO5WMRo5c+h5ceMqQWZ3yrBp+AVdIIwXjneEe9k=" X-RZG-CLASS-ID: mo00 Original-Received: from himinbjorg.adminart.net by smtp.strato.de (RZmta 43.21 DYNA|AUTH) with ESMTPSA id j020b1u7SM8T2GF (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Wed, 29 Aug 2018 00:08:29 +0200 (CEST) Original-Received: from lee by himinbjorg.adminart.net with local (Exim 4.90_1) (envelope-from ) id 1fumA0-0001e2-R2; Wed, 29 Aug 2018 00:08:28 +0200 In-Reply-To: <83k1ob3v82.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 28 Aug 2018 08:39:57 +0300") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a01:238:20a:202:5301::5 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:229030 Archived-At: Eli Zaretskii writes: >> From: hw >> Cc: gazally@runbox.com, rms@gnu.org, psainty@orcon.net.nz, >> emacs-devel@gnu.org, michael.albinus@gmx.de, >> emacs-devel-bounces+psainty=orcon.net.nz@gnu.org >> Date: Mon, 27 Aug 2018 20:43:08 +0200 >> >> >> Why doesn't Emacs support executing multiple threads in parallel? >> > >> > Because it's much harder, what with all the global resources an >> > editor has. E.g., consider editing a buffer while another thread >> > decides to modify it or even delete it. >> >> When multiple threads are running serialized, they still could decide >> --- or already have decided --- to do stuff that is no longer wanted or >> possible by the time they get to run (again). Or not? > > How is this different from a single-threaded session? There's always > the danger that an operation becomes irrelevant by the time it is > carried out, but the danger should normally be very low. When another thread can always modify or delete a buffer while the buffer is being edited, then this possibility doesn't speak against running threads in parallel rather than serialized.