control memory usage

If my question sounds a bit weird it is because i’m not sure if i’m asking the right thing. Here it goes:

  1. When running a script in python(blender), which memory of my computer does it use?

  2. Purpose question: Is it possible to control through a py script the usage of that memory?
    (let’s say create a ‘while/for loop’ script that will use 80% of that memory. for example, adding primitive planes till memory usage reaches 80% of total)

  1. how many do you think there are?

  2. only indirectly, you better use C/C++ if you need to do memory management yourself

Alright, I was guessing it wouldn’t be that simple. I’ve just started playing around with loops and thought ‘what if’.
Thank you Codemanx, seems like I’ve lots of homework to do for now.