[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: multi-threaded Emacs
From: |
Stefan Monnier |
Subject: |
Re: multi-threaded Emacs |
Date: |
Mon, 01 Dec 2008 15:34:21 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
> solution, what I would like to optimize using threads is I/O bound and a
> concurrent model can do it only in part. If an Elisp primitive is
> waiting for some data from a file or a socket, Emacs will hang until it
> is ready. This problem can't be solved by concurrent threads that will
Actually, no: while Emacs is waiting for socket data, it can already run
other async code, such as process filters.
So we can solve most I/O bound problems just by using a very coarse
notion of concurrency. We already partly do it, except we're currently
limited to a single stack, which makes coding painful and prevents some
useful cases.
Providing a cooperative threading model will remove this problem. But,
no it's not a "final solution": I hope there never will be a final
solution, because Emacs will always need to evolve.
Stefan
- Re: multi-threaded Emacs, Richard M Stallman, 2008/12/01
- Re: multi-threaded Emacs, Giuseppe Scrivano, 2008/12/01
- Re: multi-threaded Emacs,
Stefan Monnier <=
- Re: multi-threaded Emacs, Richard M Stallman, 2008/12/02
- Re: multi-threaded Emacs, Stefan Monnier, 2008/12/02
- Re: multi-threaded Emacs, Giuseppe Scrivano, 2008/12/02
- Re: multi-threaded Emacs, Stefan Monnier, 2008/12/02
- Re: multi-threaded Emacs, Giuseppe Scrivano, 2008/12/03
- Re: multi-threaded Emacs, Stefan Monnier, 2008/12/03
- Re: multi-threaded Emacs, Richard M Stallman, 2008/12/04
- Re: multi-threaded Emacs, Giuseppe Scrivano, 2008/12/05
- Re: multi-threaded Emacs, Miles Bader, 2008/12/05