From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: Concurrency via isolated process/thread Date: Sat, 08 Jul 2023 08:51:48 +0800 Message-ID: <87ttuffcnv.fsf@yahoo.com> References: <871qhnr4ty.fsf@localhost> <87pm57pns8.fsf@localhost> <87lefvp55t.fsf@yahoo.com> <87sfa28ura.fsf@localhost> <87cz16o8vz.fsf@yahoo.com> <87jzve8r4m.fsf@localhost> <871qhmo5nv.fsf@yahoo.com> <87bkgq8p5t.fsf@localhost> <831qhmjwk0.fsf@gnu.org> <875y6y8nlr.fsf@localhost> <87h6qhnalc.fsf@yahoo.com> <87ilax71wo.fsf@localhost> <831qhli14t.fsf@gnu.org> <87wmzdxewc.fsf@localhost> <83r0plgjeo.fsf@gnu.org> <87o7kpxapo.fsf@localhost> <83mt09gcaf.fsf@gnu.org> <87wmzbc3af.fsf@localhost> <83cz13g811.fsf@gnu.org> <87lefrbvjw.fsf@localhost> <83h6qfecxt.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13627"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Ihor Radchenko , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jul 08 02:52:37 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qHwBh-0003O7-JY for ged-emacs-devel@m.gmane-mx.org; Sat, 08 Jul 2023 02:52:37 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qHwBA-0005vQ-B8; Fri, 07 Jul 2023 20:52:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qHwB9-0005uv-6K for emacs-devel@gnu.org; Fri, 07 Jul 2023 20:52:03 -0400 Original-Received: from sonic313-9.consmr.mail.ne1.yahoo.com ([66.163.185.32]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qHwB7-00082C-Bb for emacs-devel@gnu.org; Fri, 07 Jul 2023 20:52:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1688777519; bh=BX5cHjR7WqMPWQtfXTkzmjgrTRh7NuSVe0qx09K//yg=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=lOFCmegeuva05fHX/Kii140LnyUfxDazus7D5ubfJSpJkfa/wX/9mOaZfhmus0T+ccxZhFQJrIw7snI2wdH4qFZPy0sWDiaCJ3mRzEafh2teXD7UgMPDrk1IPzik78N5R6momJbAq8djVG6bZv+/IR4h1MeFTp1M619C4QYSuM2zJXCU8TCP/qOhND57sDMpcNMJOnBYU0kbNdx3XFprly7o2C0ChAaeMKu3V+kSgt0e1M095rXyf0u3az7amFvvtlunj95QuzREGcYlqr46gpzvaoezAn3jX1AqEllBRVD0dZ76HLOXxuFheOGNnnoei/wIRZ/ZDxWluA43yJgvpA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1688777519; bh=gd/B4yRplndYKZntAyznGTjebGBFQ6HsPTwtbD2vQYx=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=ET9kivkmKJHPAsvWjyAis4dVGijEhVl86bfvE0TqAzvVVU/0AZ3QcPq7GQe05u9a6FRg72VY5jYFUDzQz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j4gLK2SI4zRKuOLVzFEvRauYRWzpD 6PJ0OEc8XbFGd11VCm7BJlp_wbQ25W.nsf.9fDj5fW X-Sonic-MF: X-Sonic-ID: 2d07677c-3ff9-4133-ae6f-6ab686d65534 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic313.consmr.mail.ne1.yahoo.com with HTTP; Sat, 8 Jul 2023 00:51:59 +0000 Original-Received: by hermes--production-sg3-67fd64777-vq8mf (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID adf505ec32c106845fb74e2bdd73c2e5; Sat, 08 Jul 2023 00:51:52 +0000 (UTC) In-Reply-To: <83h6qfecxt.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 07 Jul 2023 22:31:10 +0300") X-Mailer: WebService/1.1.21638 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.185.32; envelope-from=luangruo@yahoo.com; helo=sonic313-9.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:307590 Archived-At: Eli Zaretskii writes: > Programs that use async threads avoid global variables like the > plague. Emacs is full of them. That's not true. Look at any modern Unix kernel, and their detailed locking around traditional Unix data structures, such as allproc, the run queue, the vnode cache, and et cetera.