emacs-devel
[Top][All Lists]
Advanced

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

Re: Threads in emacs implementation


From: Nic Ferrier
Subject: Re: Threads in emacs implementation
Date: Wed, 08 Jun 2005 20:52:26 +0100

Magnus Henoch <address@hidden> writes:

> I've been thinking about using GNU pth to implement threads in Emacs.
> GNU pth only does cooperative threading, and has special non-blocking
> versions of some syscalls (blocking the current thread instead of the
> whole process).  Ideally this would mean that existing
> (i.e. non-yielding) Lisp code would not be affected, and network code
> could be run in a background thread.
>
> The greatest obstacle to this seems to be shallow binding - you'd have
> to unwind one thread's stack and rewind another's when switching
> threads.  Maybe there's an easier way that I don't see...

I don't see why this subject keeps coming up.

We don't need threads in elisp. Just more asynchronous network
implementations.

Anyway, async code is so much more fun to write than threaded
code. Threads are for beginners.


Nic Ferrier




reply via email to

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