emacs-devel
[Top][All Lists]
Advanced

[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





reply via email to

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