From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.help Subject: Re: try-this-for ? Date: Thu, 18 Jan 2018 13:59:17 +0100 Organization: Aioe.org NNTP Server Message-ID: <86vafz4922.fsf@zoho.com> References: <86lggw6vtn.fsf@zoho.com> <86d1277u37.fsf@zoho.com> <86r2qn5qby.fsf@zoho.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1516280357 12887 195.159.176.226 (18 Jan 2018 12:59:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 18 Jan 2018 12:59:17 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 18 13:59:13 2018 Return-path: Envelope-to: geh-help-gnu-emacs@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 1ec9mM-0001ub-1Q for geh-help-gnu-emacs@m.gmane.org; Thu, 18 Jan 2018 13:58:50 +0100 Original-Received: from localhost ([::1]:57683 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ec9oM-0006Hb-6E for geh-help-gnu-emacs@m.gmane.org; Thu, 18 Jan 2018 08:00:54 -0500 X-Received: by 10.223.157.146 with SMTP id p18mr690812wre.10.1516280359644; Thu, 18 Jan 2018 04:59:19 -0800 (PST) Original-Path: usenet.stanford.edu!m70no554792wma.0!news-out.google.com!n14ni6625wmi.0!nntp.google.com!proxad.net!feeder1-2.proxad.net!news.mixmin.net!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 37 Original-NNTP-Posting-Host: zRXoCvQ6k9fneBfYPnB6lQ.user.gioia.aioe.org Original-X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 Mail-Copies-To: never Cancel-Lock: sha1:bUV1fGyyTw9jps9L1nFJQILESSA= Original-Xref: usenet.stanford.edu gnu.emacs.help:221658 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:115775 Archived-At: tomas wrote: >> True concurrency isn't possible even for >> multicore architectures IIUC. > > To a certain extent yes: the processors/cores > have to cooperate to access common resources > (e.g. memory), but as long as they are > operating e.g. from local cache they do run > in parallel. Yes, but I meant with respect to Emacs, can one have, for example (let*((value-one (compute it)) ; on CPU1 (value-two (compute it)) )) ; on CPU2 execute in parallel? > central event loop Is this the KERNEL? > to "keep running", you have to explicitly > (that's the "explicit" part in what I labeled > as "explicitly cooperative") give a chance to > this input queue to run from time to time. > Perhaps (sit-for 0) is your friend (it would > trigger a redisplay), perhaps something else The problem with yielding is it won't work to interrupt something that has put Emacs into a hanged state... -- underground experts united http://user.it.uu.se/~embe8573