all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Emacs process and user-level threads
@ 2018-10-05 19:01 Narendra Joshi
  2018-10-05 19:56 ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Narendra Joshi @ 2018-10-05 19:01 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

`htop` output for Emacs shows four threads which are user-level
threads. What does this mean if Emacs is single-threaded?

For example, this is the output I am getting on my machine:

#+begin_src shell
  PID USER      PRI  NI  VIRT   RES   SHR S CPU% MEM%   TIME+  Command                                                                                                   
 4780 narendraj  20   0  723M  229M 35008 S  1.3  6.7  1:00.04 emacs
 4782 narendraj  20   0  723M  229M 35008 S  0.0  6.7  0:00.00 emacs
 4783 narendraj  20   0  723M  229M 35008 S  0.0  6.7  0:00.00 emacs
 4784 narendraj  20   0  723M  229M 35008 S  0.0  6.7  0:00.00 emacs
#+end_src

Thanks,
-- 
Narendra Joshi



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Emacs process and user-level threads
  2018-10-05 19:01 Emacs process and user-level threads Narendra Joshi
@ 2018-10-05 19:56 ` Eli Zaretskii
  2018-10-06  9:18   ` Narendra Joshi
  0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2018-10-05 19:56 UTC (permalink / raw)
  To: help-gnu-emacs

> From: Narendra Joshi <narendraj9@gmail.com>
> Date: Sat, 06 Oct 2018 00:31:27 +0530
> 
> `htop` output for Emacs shows four threads which are user-level
> threads. What does this mean if Emacs is single-threaded?

They are not threads started by the Emacs application code, but by the
various libraries Emacs uses (probably GTK).



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Emacs process and user-level threads
  2018-10-05 19:56 ` Eli Zaretskii
@ 2018-10-06  9:18   ` Narendra Joshi
  0 siblings, 0 replies; 3+ messages in thread
From: Narendra Joshi @ 2018-10-06  9:18 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: help-gnu-emacs

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Narendra Joshi <narendraj9@gmail.com>
>> Date: Sat, 06 Oct 2018 00:31:27 +0530
>> 
>> `htop` output for Emacs shows four threads which are user-level
>> threads. What does this mean if Emacs is single-threaded?
>
> They are not threads started by the Emacs application code, but by the
> various libraries Emacs uses (probably GTK).
>
Okay, got it! Thanks :)

-- 
Narendra Joshi



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-10-06  9:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-05 19:01 Emacs process and user-level threads Narendra Joshi
2018-10-05 19:56 ` Eli Zaretskii
2018-10-06  9:18   ` Narendra Joshi

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.