From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: multi-threaded Emacs Date: Tue, 09 Dec 2008 14:40:34 -0500 Message-ID: References: <87abbiody1.fsf@master.homenet> <877i6l5d8s.fsf@master.homenet> <874p1npvtj.fsf@master.homenet> <87ej0qci8g.fsf@master.homenet> <87y6yxm7xr.fsf@master.homenet> <87hc5gyn9x.fsf@master.homenet> <87ej0ixx97.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 1228851684 14602 80.91.229.12 (9 Dec 2008 19:41:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Dec 2008 19:41:24 +0000 (UTC) Cc: Giuseppe Scrivano , emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 09 20:42:28 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 1LA8T2-0004QO-Ke for ged-emacs-devel@m.gmane.org; Tue, 09 Dec 2008 20:42:00 +0100 Original-Received: from localhost ([127.0.0.1]:37814 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LA8Rr-0002Qc-Ce for ged-emacs-devel@m.gmane.org; Tue, 09 Dec 2008 14:40:47 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LA8Rn-0002QJ-0s for emacs-devel@gnu.org; Tue, 09 Dec 2008 14:40:43 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LA8Rk-0002Q3-KL for emacs-devel@gnu.org; Tue, 09 Dec 2008 14:40:41 -0500 Original-Received: from [199.232.76.173] (port=60054 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LA8Rk-0002Q0-Do for emacs-devel@gnu.org; Tue, 09 Dec 2008 14:40:40 -0500 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:42583) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LA8Rg-0003Ky-So; Tue, 09 Dec 2008 14:40:37 -0500 Original-Received: from alfajor.home (vpn-132-204-232-76.acd.umontreal.ca [132.204.232.76]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id mB9JfCxQ013557; Tue, 9 Dec 2008 14:41:12 -0500 Original-Received: by alfajor.home (Postfix, from userid 20848) id C2C491C91C; Tue, 9 Dec 2008 14:40:34 -0500 (EST) In-Reply-To: (Richard M. Stallman's message of "Tue, 09 Dec 2008 12:26:28 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3165=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:106728 Archived-At: >> What is the condition for thread-switching in your latest version? > The `yield' primitive must be explicitly called. > I think that interface won't work very well, because it would require > changing every Lisp program to make it cooperate with other threads. > We need to put this into the C level. I think if `yield' is called in accept-process-output and read_char, the remaining places where `yield' might be needed will be fairly few. Stefan