From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Experiment with threads - no concurrency? Date: Mon, 06 Sep 2021 20:31:41 +0300 Message-ID: <83pmtlr4oy.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9705"; mail-complaints-to="usenet@ciao.gmane.io" Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Arthur Miller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Sep 06 19:32:42 2021 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 1mNIU6-0002K6-Jr for ged-emacs-devel@m.gmane-mx.org; Mon, 06 Sep 2021 19:32:42 +0200 Original-Received: from localhost ([::1]:47598 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mNIU4-0000se-Up for ged-emacs-devel@m.gmane-mx.org; Mon, 06 Sep 2021 13:32:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53536) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mNIT3-000050-CT for emacs-devel@gnu.org; Mon, 06 Sep 2021 13:31:37 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:47076) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mNIT0-0001Is-FZ; Mon, 06 Sep 2021 13:31:34 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4730 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mNIT0-0000ot-2f; Mon, 06 Sep 2021 13:31:34 -0400 In-Reply-To: (message from Arthur Miller on Mon, 06 Sep 2021 18:35:16 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.devel:274154 Archived-At: > From: Arthur Miller > Date: Mon, 06 Sep 2021 18:35:16 +0200 > Cc: emacs-devel@gnu.org > > Well it woudl be probably misunderstanding on my part, since I thought that > threads are just a wrapper on pthreads The are indeed wrappers of pthreads, but we don't use the pthreads scheduler. > This also leaves me with a question: what is practical use for Emacs threads? Is > there any internal code that uses threads so I can look at a practical example? You can start by looking at the tests for the thread capabilities.