[Mono-list] System.Diagnostics.ProcessThread on Mono/Linux?
Markus Ewald
cygon at nuclex.org
Tue Jan 19 04:42:33 EST 2010
Hi!
I'm trying to port a custom thread pool class to Mono. This thread pool
uses the System.Diagnostics.ProcessThread class to set the
.IdealProcessor property for a thread:
https://devel.nuclex.org/framework/browser/Nuclex.Support/trunk/Source/AffineThreadPool.cs#L200
On Mono, the Process.GetCurrentProcess().Threads property seems to
return an empty collection in all cases, so I guess it's not supported.
Is there another way to set something like a "soft CPU affinity" for a
thread (suggesting a CPU but not forcing it)?
-Markus-
More information about the Mono-list
mailing list