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: Wed, 05 Jul 2023 08:34:38 +0800 Message-ID: <87lefvp55t.fsf@yahoo.com> References: <871qhnr4ty.fsf@localhost> <83v8ezk3cj.fsf@gnu.org> <87v8ezpov0.fsf@localhost> <83r0pnk2az.fsf@gnu.org> <87pm57pns8.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36385"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , emacs-devel@gnu.org To: Ihor Radchenko Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jul 05 02:35:24 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 1qGqUN-0009G5-5B for ged-emacs-devel@m.gmane-mx.org; Wed, 05 Jul 2023 02:35:23 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qGqTu-0003YN-Bz; Tue, 04 Jul 2023 20:34:54 -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 1qGqTq-0003Xx-R3 for emacs-devel@gnu.org; Tue, 04 Jul 2023 20:34:51 -0400 Original-Received: from sonic310-25.consmr.mail.ne1.yahoo.com ([66.163.186.206]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qGqTo-0000Ch-Lz for emacs-devel@gnu.org; Tue, 04 Jul 2023 20:34:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1688517287; bh=Gjnk+mAauR/IJ9pl9sLB2pXmX0QcnOPVLFMYlktmD7M=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=dwbWpWpYkpy7tCqRnJQNzRaqOzYW7BmRLCf4xFdAe4uJUqAqsn6z/8YdRlPu+SCC85A+W1KKE0Xu28k3xGUEb23WUbAJ6Mv3Qidw7mWevnz/DuYh0RF+NS099HECneSGpWwPem9eVLAlzvWPvZzn4ggm9xrZs8dRNRw0r6JtHQs5akV2tPivgMj4ojJ2zK0pAghnUNE0LNGFJF/r60CoG4PjcEEfNaVrA/cysuQpHJNNKejGuZYahn4/RduOZc6WuL34SXui7VoBDielCtUeBMrAaNtMwkiik9Vv+NKyZJGszAUtEPfGZ/4mLtNZZb/z2HUqCPf23XPfgLzHo1p/rA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1688517287; bh=cd/jjB5WEUc7nq4sCsteX6kZEQEQLParV13Hz27J0La=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=TWmU3c3y0+qyXK8ZcNbfYtFFegnF40wxKNJJKVokqGZ7FL+zKuhZgqGcz3Xbff6JIRmVfnDJ/TUWxzexQUEk/AKR4tZHJBzdNjmXvmuJ/51lI9JPwy1JY6/Hs85qgp1Mv8o9VuRl3LFOhaFEbREtzYd6B+kz5TXYVEp+G/Fj++wU7Z3H4U9JN685P6a9ZSj7EimS8GVKMIxObkfOnXKAfSheaxXzH+X1tjVS7z5qf3VCfumZuuVSM2LB+LJAWEb5GxD5z5Vsjvz/k+p1Hfpbiva5GEqRRRpSmYI4i38NjX7EcCXYCclg+rkj9Atv17bgH71DzUK3nKCeNZxs9FV3zg== X-YMail-OSG: pJaw.H0VM1nTael82QqO3smW32k3gNHBrp1LdLzU.aurOLxOv.DWLNuK7jQn9WA AAoo2K.fO7vTZO4XJNYv4aIT9X7XuPwLewRoAFOGvjpGRStcTb1k4.yuQ8P14IuvMRdjkoClQ9Xp ixS8X4nHM3ofrScWVjZcT5MYeOePDBJqOq_oAAEQu6KkYMktK6lCP1aZGtkBFFBuG86cB1ajWKfR ASWWezNMTzBNUqpbqaY1DrCwn8eIcDUqeLuimgtXouQJ6dVPdnjF6umL3hkJlz.iRNZqZM3LFezn Z8isw3ppxX_kdRr2n3xVXZyRhMVHBZbl2MVgtzfyE4suXMS5Oif8lGYVYe9GICgTYcZG2J1PRQ0A 05OysGLV.CU_g7v3Ni9fzgwIFch7q3orH7quGYUrosF_2e9stXuNSHT8ZMrjIYi6cK013X2.xkgq GBDAKq2TB_4tZEGIR0SBR_MpCDW5ZtJiAeZFeZehTelca8vw3xmIv7mDSU2zFThVEWwuA7AD2Lfi oiwf2qUEDLIdf0uwbNzrp0cJH_VYpa2N_1bEIktlzWq6zc6qwqVTC_kI_DLVGV14HoRRFUuoHD7n cyvnadslMdo_tKBLRKHT17bHBVmq4N_2dwQkG1XimU.dQJn1zqGQ4gVIhqSkFg4hDz9_OmuDJZEz XUJIiTjP2HgO6ulTt9z.aFUSEOAtCpQxZWg5U5b9aDdMjunxZyvowNWGXnkKxbjyUjBT6NeY0KBh 4.o3udVCSa7iuCGd6QZO26sXF8jqu67KItv11YTP_Q1TY.Us5eu2ULSI8BdLaIWPY3XnijhIwWkR dCVa6qk5qJ3Sxxd2MIuJnw7dTXNHqKcIyNyaAR38Nn X-Sonic-MF: X-Sonic-ID: e29f8e9d-f4b3-4228-807f-9a1276875d19 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.ne1.yahoo.com with HTTP; Wed, 5 Jul 2023 00:34:47 +0000 Original-Received: by hermes--production-sg3-67fd64777-6fgkn (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID d73c51bf768b60875301617a8835bb9d; Wed, 05 Jul 2023 00:34:42 +0000 (UTC) In-Reply-To: <87pm57pns8.fsf@localhost> (Ihor Radchenko's message of "Tue, 04 Jul 2023 17:52:23 +0000") X-Mailer: WebService/1.1.21612 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.186.206; envelope-from=luangruo@yahoo.com; helo=sonic310-25.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:307446 Archived-At: Ihor Radchenko writes: > But why is it a problem? Isn't it normal for a C++ thread to get pointer > to the parent heap? For Emacs async process, it can, for example, be a > pointer to obarray. How will you interlock access to obarray? What if both processes call gensym at the same time?