Thread overview | |||||
---|---|---|---|---|---|
|
February 06, 2011 Setting thread priority | ||||
---|---|---|---|---|
| ||||
How do you set the priority of a thread, or otherwise control how much CPU time it gets? It appears that std.thread had an answer for this, but it has been removed from Phobos by the looks of things. On a side note, why is std.thread still in the online documentation if it was removed long ago? What's the point of having a tool to automatically generate documentation if we're going to have out of date docs anyway? |
February 06, 2011 Re: Setting thread priority | ||||
---|---|---|---|---|
| ||||
Posted in reply to Peter Alexander | Peter Alexander Wrote:
> How do you set the priority of a thread, or otherwise control how much CPU time it gets?
Use core.thread. And I believe the method name is setPriority.
|
February 07, 2011 Re: Setting thread priority | ||||
---|---|---|---|---|
| ||||
Posted in reply to Peter Alexander | Am 06.02.2011 02:58, schrieb Peter Alexander:
> How do you set the priority of a thread, or otherwise control how much
> CPU time it gets?
depends on operating system - on windows: set the priority to high does not help if your system isn't under pressure ...
|
Copyright © 1999-2021 by the D Language Foundation