From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Nic Ferrier Newsgroups: gmane.emacs.devel Subject: Re: Are there plans for a multi-threaded Emacs? Date: 03 Dec 2003 20:01:47 +0000 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <87ptf5zn4k.fsf@kanga.tapsellferrier.co.uk> References: <87oevbes4h.fsf@emacswiki.org> <20031117040607.C6C5D79B72@server2.messagingengine.com> <87ekvpx18d.fsf@emptyhost.emptydomain.de> <4nad6cikxy.fsf@holmes.bwh.harvard.edu> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1070482071 14124 80.91.224.253 (3 Dec 2003 20:07:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 3 Dec 2003 20:07:51 +0000 (UTC) Cc: Ted Zlatanov , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed Dec 03 21:07:47 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1ARdHn-00062B-00 for ; Wed, 03 Dec 2003 21:07:47 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1ARdHn-0004I4-00 for ; Wed, 03 Dec 2003 21:07:47 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AReDO-0004L9-03 for emacs-devel@quimby.gnus.org; Wed, 03 Dec 2003 16:07:18 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AReBc-0003qb-QN for emacs-devel@gnu.org; Wed, 03 Dec 2003 16:05:28 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1ARe9w-0003VZ-Bb for emacs-devel@gnu.org; Wed, 03 Dec 2003 16:04:14 -0500 Original-Received: from [80.168.153.201] (helo=tf1.tapsellferrier.co.uk) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ARe9v-0003VH-Ip; Wed, 03 Dec 2003 16:03:43 -0500 Original-Received: from [80.168.156.74] (helo=kanga.tapsellferrier.co.uk) by tf1.tapsellferrier.co.uk with esmtp (Exim 3.35 #1 (Debian)) id 1ARdC7-0001tK-00; Wed, 03 Dec 2003 20:01:55 +0000 Original-Received: from localhost ([127.0.0.1] helo=kanga.tapsellferrier.co.uk ident=nferrier) by kanga.tapsellferrier.co.uk with esmtp (Exim 3.35 #1 (Debian)) id 1ARdBz-0001FV-00; Wed, 03 Dec 2003 20:01:47 +0000 Original-To: rms@gnu.org In-Reply-To: Original-Lines: 24 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:18335 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:18335 Richard Stallman writes: > I think migrating Emacs towards a threading model is possible: > > - start with all primitive or ELisp functions assumed NOT thread-safe > > - allow threads to run, but any access to a function needs to be > synchronous. At first, this will effectively make threads simple > switched tasks, and will probably make Emacs slower. > > Many sections of Lisp code would need to have locking in order > to run correctly with multiple threads. For instance, everything > of the form > > (setq global-list (cons foo global-list)) > > would need locking. And anything doing similar things using dynamic scope as well (at least when a variable isn't local to the function but from a previously called function). So that's about everything. Nic