[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: |
Ted Zlatanov |
Subject: |
Re: Are there plans for a multi-threaded Emacs? |
Date: |
Thu, 04 Dec 2003 08:14:49 -0500 |
User-agent: |
Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (usg-unix-v) |
On Thu, 04 Dec 2003, address@hidden wrote:
> Dynamic binding causes no trouble for multiple threads if each
> thread has its own binding stack and switching threads swaps the
> bindings.
>
> However, code like
>
> (setq global-list (cons foo global-list))
>
> is a completely separate issue. The problem here is that thread
> switching needs to be prevented between the access to global-list
> and the modification of global-list. Of course, the potential for
> collision exists because global-list may be referred to elsewhere.
> But it does not depend on dynamic bindings. If nobody ever binds
> global-list, if its global binding is the only one, the problem
> still occurs.
Why not just lock all other threads that use that global symbol (it is
bound in that thread)? I apologize if I'm missing the point here.
Ted
- Re: 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 <=
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, 2003/12/06
Re: Are there plans for a multi-threaded Emacs?, Martin Stjernholm, 2003/12/07