Get the latest tech news

Memory Management Every Programmer Should Know


What data is put on the stack and what data is put on the heap?

The early C language left all this to developers to manage manually, which is an edge for experienced programmers because of the finer control over the program’s memory. This approach takes the burden off the developer by automatically managing memory by periodically marking objects that are no longer referenced and then cleaning them up. But it needs to perform extra logic when marking and freeing memory, which causes STW (Stop The World), like the program gets stuck, and those times are also indeterminate.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of programmer

programmer

Photo of memory management

memory management

Related news:

News photo

Job Hunting Sucks. This Programmer Filled Out 250 Applications to Find Out Why