From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: dhruva Newsgroups: gmane.emacs.devel Subject: QUERY: w32 sub process implementation Date: Mon, 20 Aug 2007 01:15:40 +0530 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1187552754 14317 80.91.229.12 (19 Aug 2007 19:45:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 19 Aug 2007 19:45:54 +0000 (UTC) To: "Emacs Devel" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 19 21:45:52 2007 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 1IMqid-0000Yu-Gh for ged-emacs-devel@m.gmane.org; Sun, 19 Aug 2007 21:45:51 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IMqid-0008F9-6y for ged-emacs-devel@m.gmane.org; Sun, 19 Aug 2007 15:45:51 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IMqia-0008Cc-0J for emacs-devel@gnu.org; Sun, 19 Aug 2007 15:45:48 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IMqiV-00086f-5W for emacs-devel@gnu.org; Sun, 19 Aug 2007 15:45:47 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IMqiV-00086a-3d for emacs-devel@gnu.org; Sun, 19 Aug 2007 15:45:43 -0400 Original-Received: from nf-out-0910.google.com ([64.233.182.184]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IMqiU-0000ir-Mk for emacs-devel@gnu.org; Sun, 19 Aug 2007 15:45:42 -0400 Original-Received: by nf-out-0910.google.com with SMTP id f5so569204nfh for ; Sun, 19 Aug 2007 12:45:40 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=D4hHz3LMZkc4z/10KgukQqxmyfmYhf9mRC8fJ/SlX3Wr407cAp/yyvUPU7e3572xQSuYBb4AUtxLA3XoxL9OLBIPszkgnVTqL3eGf9wPHxPAFvZMwRbZ8HhA3JMy5uxsmYsEY3pQQwHJNsx29EvzN922gGvmgRKPZKc0FLIVcSg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=bpsTK5c/VQ8DmKAdzZicG3QBkTy75UYVgYtwZczcyPIp0RV9A7D+4N4zKJuhfWHm3PGfXQmu+rULOjivAkXHeUJJ4qvAKWVweE3LsD3d+eCy4E8Ab4tm+J1u0on66HjDMEUQYSKOfPeZM11omXJb1gdlCopoNIP2cVGQ8/0hJyU= Original-Received: by 10.78.137.7 with SMTP id k7mr1585163hud.1187552740454; Sun, 19 Aug 2007 12:45:40 -0700 (PDT) Original-Received: by 10.78.206.20 with HTTP; Sun, 19 Aug 2007 12:45:40 -0700 (PDT) Content-Disposition: inline X-Detected-Kernel: Linux 2.6 (newer, 2) 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:76772 Archived-At: Hi, In the win32 specific implementation, Emacs creates processes in a thread. Every sub process of has a corresponding thread in emacs. The thread entry function is reader_thread which reads a char or accepts a connection and waits till the char is read by the main emacs thread/read-eval-print loop. Using ASYNC read and registering callbacks in wait, I feel we can completely do away with threads for sub procs. I would like to have your views before I start making large changes (in my local copy). If this is not an area of concern, I could concentrate on other portions. -dky -- Dhruva Krishnamurthy Contents reflect my personal views only!