[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Threads in emacs implementation
From: |
Magnus Henoch |
Subject: |
Re: Threads in emacs implementation |
Date: |
Wed, 08 Jun 2005 20:01:23 +0200 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (berkeley-unix) |
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...
Magnus
- Threads in emacs implementation, Denis Bueno, 2005/06/06
- Re: Threads in emacs implementation, Miles Bader, 2005/06/06
- Re: Threads in emacs implementation, Ken Raeburn, 2005/06/07
- Re: Threads in emacs implementation,
Magnus Henoch <=
- Re: Threads in emacs implementation, Magnus Henoch, 2005/06/08
- Re: Threads in emacs implementation, Nic Ferrier, 2005/06/08
- hidden buffers for async (was Re: Threads in emacs implementation), Nic Ferrier, 2005/06/08
- Re: hidden buffers for async (was Re: Threads in emacs implementation), Miles Bader, 2005/06/08
- Re: hidden buffers for async (was Re: Threads in emacs implementation), Richard Stallman, 2005/06/09
- Re: hidden buffers for async, Nic Ferrier, 2005/06/09