From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Giuseppe Scrivano Newsgroups: gmane.emacs.devel Subject: Re: multi-threaded Emacs Date: Fri, 05 Dec 2008 08:40:09 +0100 Message-ID: <87oczroysm.fsf@master.homenet> References: <87abbiody1.fsf@master.homenet> <877i6l5d8s.fsf@master.homenet> <874p1npvtj.fsf@master.homenet> <87ej0qci8g.fsf@master.homenet> <87y6yxm7xr.fsf@master.homenet> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1228462843 10803 80.91.229.12 (5 Dec 2008 07:40:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Dec 2008 07:40:43 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 05 08:41:48 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L8VJl-0005bK-1G for ged-emacs-devel@m.gmane.org; Fri, 05 Dec 2008 08:41:41 +0100 Original-Received: from localhost ([127.0.0.1]:49889 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L8VIa-00073I-B4 for ged-emacs-devel@m.gmane.org; Fri, 05 Dec 2008 02:40:28 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L8VIW-00073D-BT for emacs-devel@gnu.org; Fri, 05 Dec 2008 02:40:24 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L8VIU-000731-Sk for emacs-devel@gnu.org; Fri, 05 Dec 2008 02:40:24 -0500 Original-Received: from [199.232.76.173] (port=40552 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L8VIU-00072y-PW for emacs-devel@gnu.org; Fri, 05 Dec 2008 02:40:22 -0500 Original-Received: from mx20.gnu.org ([199.232.41.8]:23073) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L8VIR-0000H3-Ke; Fri, 05 Dec 2008 02:40:19 -0500 Original-Received: from joe.mail.tiscali.it ([213.205.33.54]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L8VIQ-0003yc-RV; Fri, 05 Dec 2008 02:40:19 -0500 Original-Received: from master.homenet (84.222.166.119) by joe.mail.tiscali.it (8.0.022) id 48F74907026F758B; Fri, 5 Dec 2008 08:40:15 +0100 Original-Received: from gscrivano by master.homenet with local (Exim 4.69) (envelope-from ) id 1L8VIH-0002pk-Kr; Fri, 05 Dec 2008 08:40:09 +0100 In-Reply-To: (Richard M. Stallman's message of "Thu, 04 Dec 2008 21:59:03 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by mx20.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:106597 Archived-At: Richard M Stallman writes: > Actually, yielding in QUIT will take a lot of work. It's definitely not > "cooperative" seen from Elisp's point of view (where QUIT can be run > implicitly all over the place). > > I am surprised. Perhaps you're right, but why do you think so? > Anywhere that calls QUIT is a place where it is safe for an error to happen, > so why not a thread switch? The cooperative threads approach moves to Elisp packages more work as they will have explicitly to yield control but it simplifies a lot the C code. I already started to change my code to allow only the execution of a thread at a time and add a `yield' primitive. Giuseppe