Multiple choice technology programming languages

Why do processes never decrease in size?

  1. They never releases the memory utilized

  2. They release the memory but kernel does not use them

  3. Since they are running

  4. It’s a false statement

Reveal answer Fill a bubble to check yourself
B Correct answer
AI explanation

When a process frees memory back to its own heap/allocator, that memory is often retained by the process (for reuse) rather than being returned to the operating system kernel, so the process's reported memory footprint doesn't shrink. This is a common behavior in memory allocators like glibc's malloc, which keep freed memory around to satisfy future allocations rather than releasing it back to the OS immediately.