[Mono-list] To set process priority for Unix

Jonathan Pryor jonpryor at vt.edu
Mon May 28 07:23:58 EDT 2007


On Mon, 2007-05-28 at 10:08 +0530, ~ * ~ Srijith Unni ~ * ~ wrote:
>        Thanks for your help, I was able to reduce the priority of the
> process by using P/Invoke and making calls to setpriority(), but
> ideally shouldn`t the Process class encapsulate the working
> irrespective of the underlying operating system.

Arguably, yes, and Jonathan Chambers has provided some patches to
enhance the Process class in this fashion.  I don't know how that's
going though...

> Also is it possible for you to shed some light on the
> Mono.Unix.Process class and how it works.? 

What exactly do you want to know about UnixProcess?  It's a
System.Diagnostics.Process-like wrapper over the near-equivalent POSIX
system calls, and exhibits some of the limitations of POSIX as well
(e.g. you can't list all processes on the system, you can't wait on an
arbitrary process, only child processes, etc.).

Do you have any specific questions about it that aren't answered by the
documentation?

Thanks,
 - Jon




More information about the Mono-list mailing list