I want to limit the number of threads I create based on the amount of free physical memory. For instance I want to stop making new threads once I reach the point that there is only 7GB of real memory left. How would I do so?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use
Devices.ComputerInfoto get the total amount of free physical memory: