Please tell me C++/Java code which utilize memory more than 70% .
For Example we have 3 Virtual machine and in memory resources we want to test the
memory utilization as per memory resources allocated by user.
I want to test the Memory utilization but after executing the code i am unable to test the same.
As i am new to this so help me more on this.
Let we have 3 Virtual machine V1,V2,V3
For V1 - Set shared resource as High
For V2 - Set shared resources as Normal 
For V3 - Set shared resources as Normal  
So it means total is 2 GB then V1 get 1 GB and V2,V3 gets 512 MB each . So i want to test using programming if some one changes the Shared or reservation or Limit then how it works.
Code to utilize memory more than 70%