From: Daniel Colascione <dancol@dancol.org>
To: Tom Tromey <tromey@redhat.com>
Cc: Emacs discussions <emacs-devel@gnu.org>
Subject: Re: [PATCH 03/10] introduce systhread layer
Date: Thu, 09 Aug 2012 18:39:37 -0700 [thread overview]
Message-ID: <50246659.80200@dancol.org> (raw)
In-Reply-To: <87mx23etza.fsf@fleche.redhat.com>
[-- Attachment #1: Type: text/plain, Size: 1002 bytes --]
On 8/9/2012 12:38 PM, Tom Tromey wrote:
> This introduces the low-level system threading support. It also adds
> the global lock. The low-level support is a bit over-eager, in that
> even at the end of the present series, it will not all be used. I
> think thiat is ok since I plan to use it all eventually.
>
> I've only implemented the pthreads-based version. I think it should
> be relatively clear how to port this to other systems, though.
>
> I'd also like to do a "no threads" port that will turn most things
> into no-ops, and have thread-creation fail. I was thinking perhaps
> I'd make a future (provide 'threads) conditional on threads actually
> working. Thoughts on this?
If threads don't execute simultaneously anyway (and if I understand your design
correctly, the global lock ensures they don't), then it might be worthwhile to
also support a "green threads" implementation like GNU Pth or Windows fibers in
order to avoid OS-level context switch overhead.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 259 bytes --]
next prev parent reply other threads:[~2012-08-10 1:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-09 19:38 [PATCH 03/10] introduce systhread layer Tom Tromey
2012-08-10 1:39 ` Daniel Colascione [this message]
2012-08-13 10:21 ` Ken Raeburn
2012-08-13 13:21 ` Stefan Monnier
2012-08-13 14:22 ` Tom Tromey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=50246659.80200@dancol.org \
--to=dancol@dancol.org \
--cc=emacs-devel@gnu.org \
--cc=tromey@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.