From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard M Stallman Newsgroups: gmane.emacs.devel Subject: Re: multi-threaded Emacs Date: Tue, 02 Dec 2008 11:02:38 -0500 Message-ID: References: <87abbiody1.fsf@master.homenet> <877i6l5d8s.fsf@master.homenet> <874p1npvtj.fsf@master.homenet> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: ger.gmane.org 1228233813 13673 80.91.229.12 (2 Dec 2008 16:03:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Dec 2008 16:03:33 +0000 (UTC) Cc: emacs-devel@gnu.org To: Giuseppe Scrivano Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 02 17:04:35 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 1L7Xjm-0000Cj-Aq for ged-emacs-devel@m.gmane.org; Tue, 02 Dec 2008 17:04:34 +0100 Original-Received: from localhost ([127.0.0.1]:49290 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L7Xic-00016O-0r for ged-emacs-devel@m.gmane.org; Tue, 02 Dec 2008 11:03:22 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L7XiM-00011A-Nf for emacs-devel@gnu.org; Tue, 02 Dec 2008 11:03:06 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L7XiL-00010v-Sg for emacs-devel@gnu.org; Tue, 02 Dec 2008 11:03:05 -0500 Original-Received: from [199.232.76.173] (port=40773 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L7XiL-00010s-E3 for emacs-devel@gnu.org; Tue, 02 Dec 2008 11:03:05 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]:58057) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L7XiK-00070R-Vq for emacs-devel@gnu.org; Tue, 02 Dec 2008 11:03:05 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1L7Xhu-0006DQ-HE; Tue, 02 Dec 2008 11:02:38 -0500 In-reply-to: <874p1npvtj.fsf@master.homenet> (message from Giuseppe Scrivano on Mon, 01 Dec 2008 19:57:44 +0100) 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:106432 Archived-At: If an Elisp primitive is waiting for some data from a file or a socket, Emacs will hang until it is ready. This is a real issue, but the solution is so easy that it is not a real problem. Activies that can wait a long time use wait_reading_process_output which already implements some parallelism. Naturally we would arrange to enable thread-switching there. IMHO, concurrent threads itself are not very useful, they can be useful if considered a first step in the direction of a real parallelism. If "concurrent threads" means "threads that can only switch where the program lets them", they are very useful in Emacs for the sake of multiple terminals.