[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: Richard Stallman
Subject: Re: Are there plans for a multi-threaded Emacs?
Date: Thu, 04 Dec 2003 02:33:47 -0500

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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]