May 08, 2009 How to force one thread running on a single cpu in multi-cpu system | ||||
---|---|---|---|---|
| ||||
hello How to force one thread running on a single cpu in multi-cpu system but without switching,just like the thread in windows iocp model. thanks |
May 08, 2009 Re: How to force one thread running on a single cpu in multi-cpu system | ||||
---|---|---|---|---|
| ||||
Posted in reply to davesun | davesun wrote:
> hello
> How to force one thread running on a single cpu in multi-cpu system but
> without switching,just like the thread in windows iocp model.
A thread pool perhaps? Like a producer-consumer model? That's basically how Windows IOCP works anyway. If you use Tango, look at the documentation for tango.core.sync.Condition, or core.sync.Condition for D 2.0.
|
Copyright © 1999-2021 by the D Language Foundation