From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: list-threads Date: Sun, 29 Jul 2018 09:56:04 +0200 Message-ID: <87o9eqo4q3.fsf@gmx.de> References: <87tvoiq208.fsf@runbox.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1532850891 3110 195.159.176.226 (29 Jul 2018 07:54:51 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 29 Jul 2018 07:54:51 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Emacs Development To: Gemini Lasswell Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 29 09:54:46 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fjgXO-0000is-Cc for ged-emacs-devel@m.gmane.org; Sun, 29 Jul 2018 09:54:46 +0200 Original-Received: from localhost ([::1]:47484 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fjgZV-000515-2z for ged-emacs-devel@m.gmane.org; Sun, 29 Jul 2018 03:56:57 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52668) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fjgYn-00050k-CS for emacs-devel@gnu.org; Sun, 29 Jul 2018 03:56:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fjgYk-0003oZ-9z for emacs-devel@gnu.org; Sun, 29 Jul 2018 03:56:13 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:60171) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fjgYj-0003mP-WC for emacs-devel@gnu.org; Sun, 29 Jul 2018 03:56:10 -0400 Original-Received: from detlef.gmx.de ([212.86.51.86]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0LpbJm-1gE3Yh40BC-00fW7r; Sun, 29 Jul 2018 09:56:06 +0200 In-Reply-To: <87tvoiq208.fsf@runbox.com> (Gemini Lasswell's message of "Sat, 28 Jul 2018 18:11:51 -0700") X-Provags-ID: V03:K1:5jxU/SyJnZUG5euhhDmc1wuiYoVkHa0CANi4ljsnaAFwoxHuNOV Ku5Bkkc1IhlXUKiAR4ayiz/ABs32duE1kL0gdMwMD6N1wxguH5Dy8b6yvMY3RaoZ+LLPn1u MI2en7JDdyluhWivIGu/9b96hknl0QKnXr9i4QQhy3YJ9Kae53p1FjG2Z/QrjESBI9f5O33 leCH7xBbEUBDCx2/bxUdQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:ST/N+TDXycs=:Nm8HsKR3CDMeqj7cdom+1l 5qyZdMcnQyGwFLKQ03u5xN5kLAdVvA0zL7DNy/tzZSv/nKkN3LpW6s/90gB1w9Jty/oR53PaP 1EGjwuvN9YauemSLMd720xkyINVeQxrCyZ5d3844ZZXYuMhRaVSLwG5TFas/f5fQnE4/o8l3d pc+Qz2KPfVQqL6SshgZgwFcqRpKinHu3xahbnZDyFbN6xa9oPO0xlmhtXTd5qoimrEHITChhB Zqt4SGITdzzcYvamF+dYcNBdP7m23UK6XbJ7ZTgSAoCIHB44P9Gg3NKTa6AMpgLKduWzCG1Um 8yIiFwbuIufLeKTrDL3yq1hqIu/o971IXggbBdGbjfhdaxgAaKIO0qzGalXfK2j6CAnBsThkr 2t7IwYROmq3DiwomRA79lQ1Q1HaEKg37gCjNiw9DS+A42lcewYbylLI+rcQLSqJnr6uBrtHMF BPHRWx+95aZ7m5qHuOWJ5IaBsgz+LSuwq94CKNizo+5qUxxgUvdVkMB22V7wU4A+zu/VfVhrK piC0S8ORXWTeSQ5pGdbI/hydJ5/zV28GfyHqGzhAfEJ7z251/uvNO5H9ZFu4gIKkF56ofJmsg DI49KFAMSYcg+9NLrqfYzG47VEoJprYLAEKpc2gZirkXKFfZAwCCGriECGR5yPVlN1otrqJkG w9hRKf6131z6bfjIYBwVCivjGdo2zgblVw+N9CBHWIE2lq+wuOL9YzwKP52H9cN553h7NiMsw nY8RHBkxLE7+ONqKIyINOFVtC0HzZEieJfRHO4wfVlGHQBjLS8X6O9mR7yLIzlFXlYVR6Cgg X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.15.19 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:227939 Archived-At: Gemini Lasswell writes: > Hello All, Hi Gemini, > I've just pushed a commit to scratch/list-threads which might be useful > to those of you working with threads in Emacs. There is a new command > 'list-threads' which produces a tabulated list buffer showing the > currently live threads with their status, sets a timer to keep it > refreshed, and provides two commands, 's q' and 's e' for sending quit > and error signals, respectively, to the thread at point. Nice. I've cherry-picked it into the feature/tramp-thread-safe branch. Works as expected. Just some first thoughts: If I'm visiting many files (say .../emacs/admin/*), there are as many threads as files in that directory, 30+ in this case. Refreshing does not work as fast as hoped - sure, the main thread is just one thread amongst the other threads. Maybe we need some priorization, that a given thread (the main thread here) gets mor hits in thread-yield. What happens if you call list-threads from another thread but the main one? (Haven't tested myself). > Next up I'm going to see if my rusty C skills are up to adding a > 'thread' argument to the backtrace primitives, to make it possible to > generate a backtrace for any thread from the thread list buffer. Sounds very useful. On my wishlist would also be edebug support for threads, this doesn't work at all. Thanks for your work, and best regards, Micghael.