From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ken Raeburn Newsgroups: gmane.emacs.devel Subject: Re: "concurrency" branch updated Date: Thu, 5 Nov 2015 01:29:48 -0500 Message-ID: <6918D53A-8975-404B-B81B-88939244CE7B@raeburn.org> References: <1B30AC54-4A83-4437-8BA8-B80F4ED6AF1A@raeburn.org> <831tc7vyex.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1446705014 21091 80.91.229.3 (5 Nov 2015 06:30:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Nov 2015 06:30:14 +0000 (UTC) Cc: johnw@newartisans.com, eliz@gnu.org, emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 05 07:30:09 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZuE3k-0004Pj-6R for ged-emacs-devel@m.gmane.org; Thu, 05 Nov 2015 07:30:08 +0100 Original-Received: from localhost ([::1]:58740 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZuE3j-0000sd-Jz for ged-emacs-devel@m.gmane.org; Thu, 05 Nov 2015 01:30:07 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46894) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZuE3X-0000sK-ID for emacs-devel@gnu.org; Thu, 05 Nov 2015 01:29:56 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZuE3U-00016g-53 for emacs-devel@gnu.org; Thu, 05 Nov 2015 01:29:55 -0500 Original-Received: from mail-yk0-x232.google.com ([2607:f8b0:4002:c07::232]:34290) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZuE3T-00015Q-Tr for emacs-devel@gnu.org; Thu, 05 Nov 2015 01:29:52 -0500 Original-Received: by ykdr3 with SMTP id r3so114867155ykd.1 for ; Wed, 04 Nov 2015 22:29:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raeburn_org.20150623.gappssmtp.com; s=20150623; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=wJ1AjLLQs4iZ2U9oVSvYNSkCeVN+IlsqUlJgEkCb8y8=; b=sE9+fIIIDKuXtJ3WRq7XtkrzAJgTOCdchKS+wHN5dFyfXJfblahFG9ssKC9PphNM9G +7LczbveQ9J3B/M8Qtr/rT/xvROvkRSJhzc9GJIH6xBgWo7QesCdN2lWf936GOr3pgZn ixSUzZBtSjwG2WHs/XOXq1F3aLAUxSr35SFkBIivfWinnGEKyFbIyRvmHMCI1f9TzzIR EYlITxIv2IeRX+0vZRTxBS4yTLw6MhKdZBZCkmPUV8dvDQsbhJplI+EQDbo++VMC7N69 sdBmF26QYlCWsiLTYSbMA7n58VqOiuODrYjqshsrNUapotxhHwDUixL7FgtYl+S2xuvk R67w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:mime-version:content-type:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=wJ1AjLLQs4iZ2U9oVSvYNSkCeVN+IlsqUlJgEkCb8y8=; b=iwuSqqmjwnuVjhAitMw+8mFyJwqJh2qTBA+RI+HIq0E7itiCZ+D7Y3PviPjIuiikBV 7ohhCPMNONbAbfKalVWAmBAABvqbh7qfZEN7uWzKDL1g6ApnSl0gRAU8pEfmQxg4x2m7 i4qnKFsqXZZUJ+mE2iNYhvAukDygl7fnyUPd99PkBVCpHuxMf/0Ai5Y+bhnfp94L3QgL GdR6Hmc7G08jFOdmA+BKsEe/U90AS9GVgA3FYFMEfucZVF90yiI3Q0C/nIi1ZcF4qe5J VGr7ryzfn0AKyzDJYdShxS0ScCsWc6JwVsF1pLVAdI3OB+KwKqeH3+8WrE4Ueqn20saj n1ZQ== X-Gm-Message-State: ALoCoQlM8zO6b2PDuSx1w6gZImvrxm9c4UCTgvIZfb95pDSPhDJF13D+/dk1+MVOovy6+gii6yne X-Received: by 10.31.6.139 with SMTP id 133mr5280463vkg.125.1446704991326; Wed, 04 Nov 2015 22:29:51 -0800 (PST) Original-Received: from [192.168.17.111] (c-66-31-203-101.hsd1.ma.comcast.net. [66.31.203.101]) by smtp.gmail.com with ESMTPSA id 133sm3704904vkf.9.2015.11.04.22.29.50 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 04 Nov 2015 22:29:50 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.2104) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4002:c07::232 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:193272 Archived-At: > It seems to me that in Emacs there is no need to be able to switch = threads > except when a thread is waiting. That should make things much = simpler. Simpler, yes, but also more limiting. Any large computational task = needs to be written to surrender control now and then, if it might be = used in an Emacs session that also talks to network servers that may = time out and close connections if Emacs ignores them for too long. = I=E2=80=99ve had that happen. Long delays waiting on a file system read = operation (from NFS server or network hiccups) can have a similar = effect, though we can probably arrange for some file operations to = permit switching even if they=E2=80=99re normally quite fast. I think preemptive thread switching (or real concurrent execution) is a = better place to wind up, but cooperative thread switching is a good = start. Ken=