[Top][All Lists]
[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 21:47:22 +0100 |
jhd <address@hidden> writes:
>>> 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.
>
> Async network code won't take advantage of multiple CPU:s. Threads
> do.
Pth, for example, won't take advantage of multiple CPUs.
I think elisp is always going to need a huge amount of blocking to use
OS threads because of the nature of dynamic scope.
Emacs does already get an advantage from multiple CPUs because it uses
co-processes a lot. Co-processes are much less burdensome on
multi-core architectures. The best way to handle co-processes is with
async IO.
Nic
- 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, 2005/06/08
- 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
- Re: hidden buffers for async, Luc Teirlinck, 2005/06/09
- Re: hidden buffers for async, Nic Ferrier, 2005/06/09
- Re: hidden buffers for async, Richard Stallman, 2005/06/10