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:00:49 +0100 Organization: Aioe.org NNTP Server Message-ID: <86r2qn5qby.fsf@zoho.com> References: <86lggw6vtn.fsf@zoho.com> <86d1277u37.fsf@zoho.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1516277064 22545 195.159.176.226 (18 Jan 2018 12:04:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 18 Jan 2018 12:04:24 +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:04:20 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 1ec8vI-0004YI-Ri for geh-help-gnu-emacs@m.gmane.org; Thu, 18 Jan 2018 13:04:00 +0100 Original-Received: from localhost ([::1]:54791 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ec8xI-00017m-PQ for geh-help-gnu-emacs@m.gmane.org; Thu, 18 Jan 2018 07:06:04 -0500 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.xs4all.nl!newsfeed9.news.xs4all.nl!newsfeed.eweka.nl!eweka.nl!feeder3.eweka.nl!news.unit0.net!news.mixmin.net!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 56 Original-NNTP-Posting-Host: zRXoCvQ6k9fneBfYPnB6lQ.user.gioia.aioe.org Original-X-Complaints-To: abuse@aioe.org Cancel-Lock: sha1:s0132TM8+fhAZYurJ+35drOeEs8= X-Notice: Filtered by postfilter v. 0.8.2 Mail-Copies-To: never Original-Xref: usenet.stanford.edu gnu.emacs.help:221654 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:115772 Archived-At: tomas wrote: > Up to now, Emacs Lisp's model of concurrency > seems to be explicitly cooperative. "seems to be explicitly" :) ? True concurrency isn't possible even for multicore architectures IIUC. The perceived concurrency, how does that work if it isn't Unix-style preemptive with priorities and a scheduler etc.? For example, with `list-processes', is that really all cooperative stuff handled by the idle timer? I thought the idle timer did font lock and such lightweight not-really-necessary background work whenever it got the chance, however that must be something else as it isn't listed. By the way, if Emacs cannot preempt, when the idle timer does background work during a lack-of-input respite, does that mean, when you start typing again, the background work isn't preempted either, only it is programmed like (when t (do-something step-1) (check-if-OK-to-continue) ; ... (do-something step-n) ) so despite not being preemptable, perceived concurrency is achieved as everything is so fast anyway? > For one, if you want to wield more computing > power in one process: remember, the box you > bought has at least two cores, and each core > not dedicated to Emacs is one core wasted. I remember writing a post on this very list how to dedicate one core entirely to Emacs! It must be lost somewhere in the archives. What I remember it made Emacs run slightly faster :) I guess one can achieve virtually the same with nice(1) and/or not running anything else :)) -- underground experts united http://user.it.uu.se/~embe8573