All technological notes.
Memory Segments
segments with different purposes and permissions.physical memory directly, but access the virtual memory mapping to physical memory.Virtual memory is divided into pages with same size; Physical memory is divided into frames with same size.The virtual memory of a process is divided into regions, each of which serves a specific purpose.
Text/CodeText/Code segment is read only and executable.stack, heap is readable and writable.stack: predictable sequential pattern making memory allocation easy and fastheap: in dynamic and random memory allocation,text/code segment
data segment
BSS(Block Started by Symbol) Segment
heap
new keyword in Java.memory allocator to manage the memory available to the program during runtime.memory allocator:
memory leak
Stack
stack frame
stack pointer
stack frame is pushed, the stack pointer advances by the size of the frame.stack overflow
OS Kernel segment