I always had this question that where (RAM / HARD DISK / some other (?) ) is the Heap located ?
if i load a 2 GB file via code in memory then where will it go ?
Also where is this “stack” located in physical place ? RAM ?
Can someone from actual implementation team can let us know this ? because what most people says is its RAM . But i wanted to really really know where and how both ?
Please share some good articles if it’s difficult to answer it here .
When you run a .NET exe, it loads MSCorEE.dll which will host the CLR. CLR will create stack and heap in the process memory. It will look after asking for more memory for the process if it needs it.
They will be located in RAM, although operating system will abstract it from you (e.g. it could be on a swap file).