From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Li Lin Newsgroups: gmane.emacs.devel Subject: Re: multi-threaded Emacs Date: Fri, 05 Dec 2008 14:27:04 +0100 Message-ID: <87oczq69cn.fsf@vanilla.net.mt> References: <28ea42436516c786f86df564cafe07e3@vanilla.net.mt> <87prk8mhg9.fsf@vanilla.net.mt> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1228483701 11762 80.91.229.12 (5 Dec 2008 13:28:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Dec 2008 13:28:21 +0000 (UTC) Cc: 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 14:29:26 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 1L8ajn-0000IQ-Av for ged-emacs-devel@m.gmane.org; Fri, 05 Dec 2008 14:28:55 +0100 Original-Received: from localhost ([127.0.0.1]:45592 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L8aic-0003je-KA for ged-emacs-devel@m.gmane.org; Fri, 05 Dec 2008 08:27:42 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L8aiY-0003ii-Ih for emacs-devel@gnu.org; Fri, 05 Dec 2008 08:27:38 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L8aiW-0003hk-UR for emacs-devel@gnu.org; Fri, 05 Dec 2008 08:27:38 -0500 Original-Received: from [199.232.76.173] (port=48836 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L8aiW-0003hV-Lb for emacs-devel@gnu.org; Fri, 05 Dec 2008 08:27:36 -0500 Original-Received: from outmail158.maltanet.net ([194.158.35.158]:56094) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L8aiV-0001T8-93; Fri, 05 Dec 2008 08:27:35 -0500 Original-Received: from [194.158.35.50] (helo=fender50.maltanet.net) by outmail158.maltanet.net with esmtp (Exim 4.67) (envelope-from ) id 1L8aiC-0004MK-Dk; Fri, 05 Dec 2008 14:27:16 +0100 Original-Received: from [195.158.102.15] (helo=localhost) by fender50.maltanet.net with esmtp (Exim 4.67) (envelope-from ) id 1L8ai7-0002p5-6u; Fri, 05 Dec 2008 14:27:11 +0100 In-Reply-To: (Richard M. Stallman's message of "Fri, 05 Dec 2008 07:08:43 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) 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:106610 Archived-At: First, all context switches between user-level threads have to be done manually, i.e. if you need a switch, you have to call cthread_yield(). However, on SMP systems, since we have more than one kernel threads, user-level threads may be interrupted randmonly, but still no user-level context switch will happen unless you yield the CPU explicitly.