[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: |
Miles Bader |
Subject: |
Re: Are there plans for a multi-threaded Emacs? |
Date: |
17 Nov 2003 13:29:31 +0900 |
"Dhruva Krishnamurthy" <address@hidden> writes:
> Is there some place/person who can elaborate the reason for not
> supporting multi-threading for GNU Emacs. Is it because there is no
> strong case for supporting/requiring a multi-threaded GNU Emacs or the
> sheer complexity in making GNU Emacs a multi-threaded application.
Because it's very hard, or at the least would require a lot of work.
Multi-threading would require all of emacs -- including elisp code -- to
be made thread-safe.
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.
-Miles
--
((lambda (x) (list x x)) (lambda (x) (list x x)))
Re: Are there plans for a multi-threaded Emacs?, Richard Stallman, 2003/11/17