[Mono-list] System.Diagnostics.ProcessThread on Mono/Linux?

Markus Ewald cygon at nuclex.org
Tue Jan 19 04:42:33 EST 2010


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:


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)?


More information about the Mono-list mailing list