[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 03/10] introduce systhread layer
From: |
Daniel Colascione |
Subject: |
Re: [PATCH 03/10] introduce systhread layer |
Date: |
Thu, 09 Aug 2012 18:39:37 -0700 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 |
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.
signature.asc
Description: OpenPGP digital signature