As ThePhantomUpvoter asked: why? The windows resource management engine is pretty good, also in combination with the managed runtime. As you can probably not know about all environment where your application will run, you should not try to predict the resources available in that system. Let the system manage it. But you can specify the
priority[
^] of your process, however this has no direct effect on the memory usage, that is under your control in all situations: you are the one who allocate buffer space and you decide how many data you wish to process at once. The virtual memory architecture is letting you use much more than the physically available memory. However you can use the
actual memory information[
^] to allocate memory for your process depending on the available physical memory. Thus you might have the chance not to be paged - especially on an x64 system. You could also find some low level API functions that you could use to allocate unmanaged memory, or force physical memory allocation. Still, I don't think you would really need such thing.