Answer the question
In order to leave comments, you need to log in
Is it possible to reserve RAM at all !? And so that no one touches it (well, tobish, my prescribed commands were executed in it)?
Answer the question
In order to leave comments, you need to log in
Can.
To do this, you need to write your own operating system.
Your ideas about how the memory of modern operating systems work are far from reality.
In order to limit the use of computing resources by programs, Job Objects exist .
I think you can book! there are programs that make a virtual disk. Despite the fact that it is in RAM, and the speed is appropriate.
But if you just need to protect RAM from reading from other programs, it's better to implement it differently.
All modern operating systems have a function to use the so-called "virtual memory". That is, (greatly simplifying) when the system exhausts the entire capacity of RAM, it begins to write data to a special file on the hard drive, giving programs the appearance of more RAM. Accordingly, it is quite difficult to create a situation in which the launch of a scheduled task will be impossible due to lack of RAM.
If, however, it is critical for the program being launched to run in real RAM (for reasons of speed, or because of the built-in check for the type of addressable memory in the program itself), I can advise you to write and run the same task with a script that will unload before starting the critical program some capacious process, thus freeing up RAM.
to the question of virtual memory management in windows:
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question