When we start threads in a Java program, is there any way for us to assign memory limit to each one of them?
Java
I mean we assign something like this for a
In a word, no.
There is no concept of heap memory "owned" by a particular thread.
You can, however, tweak the maximum stack size (each thread has its own stack), but I doubt this is what you're after.