Winsights

Memory Management

From a program’s perspective of resources available to it

CPU resources are infinite - as the program is scheduled to run on the CPU based on time allocated to it. More programs/processes means reduced CPU time, hence a delay in overall completion time but completion nonetheless at the expense of time.

I/O resources are infinite - as the I/O (files and network) is accessible and without restriction but larger transfers require an increased amount of time.

Memory resources are finite - the data loaded on the RAM is limited.

Virtual memory mapping?

Swap vs clear

Array size needs to be known upfront. How does the program know the size in advance if it is not specified?

Size of stack frame for a program is determined when it is compiled

Total stack size for the program is determined by the OS and the compiler

Tagged with: