Programmatically find the amount of RAM

Is there a portable way that works on both .Net and Mono in various supported operating systems for the program to find out how much RAM (i.e. physical non-virtual memory) is available on the computer on which it works?

Context is a program whose memory requirement is β€œas large as possible”; he should know how much memory he should strive to allocate without stopping at the swap (thereby stopping and blocking the entire machine).

+3
source share
1 answer

. , " " - . , , .

P.S. swap - , . , .

+3

Source: https://habr.com/ru/post/1751846/


All Articles