[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: |
Fri, 05 Dec 2008 19:37:05 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
Personally I don't think there is need to use a library that at the
moment is usable only on an architecture, it will be a serious
portability problem for Emacs (that probably after "Hello World" is the
most portable program out there).
All we need for a multi-threaded Emacs can be done quite easily with
pthreads.
Giuseppe
Li Lin <address@hidden> writes:
> SMASH has many different implementations. Basically, we create one
> kernel thread for each CPU(or core) in which a user-level thread
> scheduler runs, and the thread is bounded to the corresponding CPU. The
> context switches among user-level threads are done though a explicit
> call to the function cthread_yield(). However, it is the native
> scheduler that manages the kernel threads.
> So on uniprocessor machines, it is purely cooperative, on multi-CPU(or
> -core) machines it is a mixture of cooperative and preemptive
> threads. However, it is not difficult to modify it so that on
> uniprocessor machine we still have more than one kernel threads.
> I attached Kurt's thesis about SMASH. Although a lot of implementation
> details has changed, his orginal thesis is still a good reference.
> The attachment is a DVI file. If you can read it, then I can send you
> the latex source of it, but you have to compile it by yourself.
Re[2]: multi-threaded Emacs, ak70, 2008/12/03
Re: multi-threaded Emacs, Stefan Monnier, 2008/12/04
Re: multi-threaded Emacs, Tom Tromey, 2008/12/06