Please anybody know about such thing
IIRC there used to be something called a "job object" where you could do something similar.
My infobase has something from CodeProject that a coder might be able to use for ideas about ways to accomplish it.
Here's the link
to the CodeProject page. But from the looks of it, it's a 32-bit solution and it's pretty old.
Can't comment beyond that. The CodeProject page was part of some research I was doing for a client for something I've long since forgotten about. Apologies.
Funny thing...the old Macintosh operations systems (Prior to OSX) used to have that capability. If you requested "info" on an app (equivalent to "properties" in Windows) you got this window (see below) where you could easily set the min/max amount of RAM use allowed per application
With heavyweight graphic apps like Photoshop and Quark you often had to fiddle with those values to find a setting that minimized app crashes on your machine. Otherwise you'd get one of those dreaded "bomb" notifications.
Back when 8Mb
was considered a full RAM complement, futzing with RAM settings was a big - and necessary - deal.