Top "Memory-management" questions

Process of dynamically allocating and freeing portions of physical memory in order to respond to program requests with, if possible, fairness and no starvation among the requesters.

Deleting an object in C++

Here is a sample code that I have: void test() { Object1 *obj = new Object1(); . . . delete obj; } I run it in …

c++ object memory-management new-operator
Python memory leaks

I have a long-running script which, if let to run long enough, will consume all the memory on my system. …

python debugging memory-management memory-leaks
Memory address of variables in Java

Please take a look at the picture below. When we create an object in java with the new keyword, we …

java memory-management jvm hashcode memory-address
How to get memory usage at runtime using C++?

I need to get the mem usage VIRT and RES at run time of my program and display them. What …

c++ linux memory-management
How to delete multiple pandas (python) dataframes from memory to save RAM?

I have lot of dataframes created as part of preprocessing. Since I have limited 6GB ram, I want to delete …

python memory-management pandas dataframe ram
Difference between logical addresses, and physical addresses?

I am reading Operating Systems Concept and I am on the 8th chapter! However I could use some clarification, or …

memory-management memory-address tlb mmu
How do malloc() and free() work?

I want to know how malloc and free work. int main() { unsigned char *p = (unsigned char*)malloc(4*sizeof(unsigned char)); …

c++ c memory-management malloc free
How to dynamically allocate memory space for a string and get that string from user?

I want to read input from user using C program. I don't want to use array like, char names[50]; because …

c string memory-management malloc dynamic
Max value of Xmx and Xms in Eclipse?

Now my settings for these in the ini file are: -Xms768M -Xmx1024M When setting them higher, eclipse doesn't …

java eclipse jvm memory-management application-settings
How to deal with bad_alloc in C++?

There is a method called foo that sometimes returns the following error: terminate called after throwing an instance of 'std::…

c++ memory-management bad-alloc