[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: multi-threaded Emacs

From: Giuseppe Scrivano
Subject: Re: multi-threaded Emacs
Date: Sun, 30 Nov 2008 23:25:12 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

Stefan Monnier <address@hidden> writes:

> let-binding, of course.  It's probably the only one that matters
> (besides the internal ones like current_buffer).

Isn't enough to have a separate `specpdl' for every thread?

> That basically means adding lock&unlock around `symbol-value' and
> pretty much every primitive.  I expect this will take a significant
> amount of work, will lead to a significant performance hit, and will not
> expose much parallelism, if any.

We can increase parallelism by adding different critical sections (but
it will be more difficult to handle from Elisp).
In any case I don't expect the code flow to stay long time in a critical
section; mostly they are read/write to global variables that are done


reply via email to

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