Video about the scope and lifetime of variables and parameters. The nature and use of local, class level, static and global variables are described in relation to the execution stack and the heap. The difference between value types and reference types is also explained, as is passing parameters by reference or by value. Code examples are written in VB.NET. In particular, this first video describes the layout of the virtual address space of a typical process. It defines a number of terms including program, process, subroutine and method, and introduces the roles of the stack and the heap.Duration: 7 minutes.
This is a lecture video from the Hardware/Software Interface class, which examines key computational abstraction levels below modern high-level languages..Duration: 10 minutes.
This is a lecture video from the Hardware/Software Interface class, which examines key computational abstraction levels below modern high-level languages..Duration: 13 minutes.
Memory management is one of the main functions of an operating system. This video is an overview of the paged and segmented memory management systems. It describes how a segmented memory management system employs segments of different sizes, which can result in fragmented free space and prevent large processes from accessing the memory very often. This is compared with a paged memory management system in which small equal sized pages are used instead. Concepts such as logical and physical memory are explained, as well as the use of secondary storage to provide virtual memory. Duration: 7 minutes.
This series of computer science video tutorials covers the fundamental principles of Random Access Memory and essential concepts of RAM operation. These computer science lessons include the workings of DRAM and SRAM, the role of sense amplifiers, decoders, and the ways in which RAM is organised and accessed.
This computer science video illustrates how the call stack is used to manage the way procedures and functions call each other and pass parameters. Duration: 6 minutes.
Contents: Introduction 1) Three problems solved by virtual memory (not enough RAM, holes in the address space, security), 2) What is virtual memory? 3) how do we implement virtual memory Duration: 14 episodes.
The Lifetime of Automatic, Stack Variables in the C Programming Language Duration: 32 minutes.
Static Memory and Static Lifetimes in the C Programming Language Duration: 46 minutes.
malloc, calloc, realloc, and free - Introducing Dynamic Heap Memory. Duration: 1 hour, 3 minutes.
Tutorial on dynamic memory management in C++. Duration: 30 minutes.
This is an optional video with detailed information about how the heap is managed by the C runtime, how virtual memory and memory paging works, and how the operating system allocates and keeps track of memory pages. Duration: 40 minutes.