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: Blocking calls and threads Date: Thu, 20 Apr 2023 15:00:08 +0800 Message-ID: <87a5z3f37r.fsf@yahoo.com> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9268"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: emacs-devel To: Lynn Winebarger Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Apr 20 09:01:19 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 1ppOIB-0002F9-0n for ged-emacs-devel@m.gmane-mx.org; Thu, 20 Apr 2023 09:01:19 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ppOHO-0004xA-Ta; Thu, 20 Apr 2023 03:00:30 -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 1ppOHL-0004ve-Eb for emacs-devel@gnu.org; Thu, 20 Apr 2023 03:00:28 -0400 Original-Received: from sonic307-56.consmr.mail.ne1.yahoo.com ([66.163.190.31]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ppOHF-0002u7-KV for emacs-devel@gnu.org; Thu, 20 Apr 2023 03:00:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1681974017; bh=NZbwuW75e2Gb+Je9gXX0ndARycZgUYecDC9O02KJ/eg=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=S1OKnVvs0bGJt1OMBwl+A19Lv1sB2ly07GGkPCLoRDLd0ogkjm86uvX9fNMDMUs9U2gsBzsdClH4HHXT77jVhZDSQwAVjAG01eT7GFPlwUQesNOCuSt4stn1QONR0XtfPSeMvuCr/XoR1gk1+shBvMhcYXQZUQ6Pm+t4jqBaGy1hOsvcjmqYjfBCWEMDn6052GLtNt4izOoVyjbxz78oBfT/iiZG+cLwqbHsqOd/dHOtnitT4kGPZHlY7boEh546Udz459yjPFzQa/cVi6mUDidkaMdxxQjQ4j8rAOK0oVhf8bXtDmLWjZfMYe/H9vwIJHmW6hPRpdPFJMH+UBESIA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1681974017; bh=zd5nMK1CygXDR/VrxiB+pbG5K2L7hvtBD8Sy6z5gfaU=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=rTdrkmCxkcmSsKwDwMvKduaRhUt+fhWdpZLiBDQT8rt7wf08kaXCMQEJNBPhMj/hIa2kBl6BEDm6O3bVM1PbnbtxEG2K9xfgWS0MBRfUVWKE+YtLCCIq8mIAasu8gQUaP7fLutGuq/Dz5iEwypi1t/cjv1qKhXk6tXOgz/BItdvmzMhLhwzZxFDt+tyipzrQucklw7+D5hL9UU8107L+ATJqQ6xSxOWCiMYIakg0IGxZGkxZRM8ypjMB9nyzWtPiPTjJbKBLAec2xuu0gE2QqTS5DSi21C9uk4bFnpzUZqV6SMfJX/IoHoV3OyPCFHdZ1GaHRMF+YY+XGy2UKLyRBg== X-YMail-OSG: HaZY3ogVM1mjcj1EQOrM0B3FX443IC.KI7JhJUpyA4beFnTHauN4fm9JGvWd8yY 5k66z3HtJ7bB12KgRwif5MVETbObbNgK3I8xGmP6Fe_tEm6DEODKDdDkpifNi9s.ueP1tGH9LLrQ Vt6SM50NOUckulG054T_TSYM1qkWjJ9AByCXYXHHQ1Thk6xLwHKYDOkfTm0mU7BIVubxc.CUUhkW j_OzgmGWKNZUz5NMzjav.y57mFvORW7sUtE_7gL04TEp6Z7J3W5Uz7m2tUo6VmwyZA6.1qsQnSmL qy.kXUF5LIHjm3KjRsjDCaT.jT7HAfyq8NEvl9x4hr5p5Gn4oE7Ut5sDlXSGonW7OgWpJFHz9lxe kQqWNf88lu1s5VcaAZOw.qjljQOxY_YIQP4.ffEosM3W996U8He8w2u.BLESMu.f9WaMEoiEy7uM 1ayjWQZxh4WavJ_jVks2NpnLu2MGVfJWhG2qE9gG8XnIe6KlE2xNWfPVVgAxFgLrwkAXx9zMkZWN jcjkmCr566HmZ0bQQBBwdYhRce3WJ1E.bzOoSTgEoGbr2S3RMq4PUtT3t5VWEZ6MDfXHe_jGm97Z 3HKqdcMiD03endNdmtVzJENs8Xofo87XGOm0I5L6s.i3FEo7hCUatDJgtiAz2R40lYgxCRMKqvcJ 7G9LF37U6.GrRcrnCCwB5FSoxfdHkJHbJDZUf9.GEQ5naV6fPJRbUHGHkHad24nQDTd8nZeOtPYc hO8LcBxUSIYWj7TpMCARPEXMlRx8P_TgU8ZE_.8wKH8INGpH3Dh.R_6KxsnYVJeyiTVP2KE_NU1A 60ERoQe5JS9VA8NwBGd3xSNnxrH0ItqFRvPowHs7Uy X-Sonic-MF: X-Sonic-ID: 8ea70cd8-7d11-465d-a65f-327d12e62352 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.ne1.yahoo.com with HTTP; Thu, 20 Apr 2023 07:00:17 +0000 Original-Received: by hermes--production-sg3-6d6fb994f6-g4nzb (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID c64fdf1b375dac204a40cd8af69e5cf6; Thu, 20 Apr 2023 07:00:12 +0000 (UTC) In-Reply-To: (Lynn Winebarger's message of "Thu, 20 Apr 2023 01:31:14 -0400") X-Mailer: WebService/1.1.21365 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.190.31; envelope-from=luangruo@yahoo.com; helo=sonic307-56.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, 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:305488 Archived-At: Lynn Winebarger writes: > The thread on how to make asynchronous behavior explicit made me > curious whether making a blocking system call would cause the lisp > thread to yield to other lisp threads (release the global lock). Do > blocking system calls yield the lisp thread, or is there any way in > lisp code to call blocking functions so that the lisp thread will > yield while the system thread blocks? System calls don't currently yield the Lisp thread, apart from pselect.