[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Are there plans for a multi-threaded Emacs?
From: |
Kai Grossjohann |
Subject: |
Re: Are there plans for a multi-threaded Emacs? |
Date: |
Sat, 06 Dec 2003 20:58:28 +0000 |
User-agent: |
Gnus/5.1003 (Gnus v5.10.3) Emacs/21.2 (gnu/linux) |
Miles Bader <address@hidden> writes:
> Consider a simple bit of elisp code: (setq GLOBAL (cons 'x GLOBAL))
> In a pre-emptively threaded emacs, another thread could run between
> accessing GLOBAL and setting it. Whoops.
Somebody suggested to avoid this by putting big locks around
everything and then to relax them.
I made the suggestion to "just" let the implementor of the new thread
code worry about such things: if you start a new thread then you're
responsible for letting it run code that doesn't access globals in
problematic ways.
Apparently, the big-lock suggestion is better, but why?
Kai
- non-blocking auto-save (was: Are there plans for a multi-threaded Emacs?), (continued)
- Re: Are there plans for a multi-threaded Emacs?, Nic Ferrier, 2003/12/03
- Re: Are there plans for a multi-threaded Emacs?, Stefan Monnier, 2003/12/03
- Re: Are there plans for a multi-threaded Emacs?, Robert J. Chassell, 2003/12/03
- Re: Are there plans for a multi-threaded Emacs?, Richard Stallman, 2003/12/04
- Re: Are there plans for a multi-threaded Emacs?, Stefan Monnier, 2003/12/04
- Re: Are there plans for a multi-threaded Emacs?, Thien-Thi Nguyen, 2003/12/04
- Re: Are there plans for a multi-threaded Emacs?, Richard Stallman, 2003/12/04
- Re: Are there plans for a multi-threaded Emacs?, Ted Zlatanov, 2003/12/04
- Re: Are there plans for a multi-threaded Emacs?, Stefan Monnier, 2003/12/04
Re: Are there plans for a multi-threaded Emacs?,
Kai Grossjohann <=
Re: Are there plans for a multi-threaded Emacs?, Martin Stjernholm, 2003/12/07