Runtime Memory and Jumps Flashcards
How is memory allocation handled in linux?
Each process runs in its own lump of memory called a virtual address space.
What are page tables used for?
Page tables map the virtual memory address to physical addresses.
What are three advantages of Virtual Address Spaces?
Transparency, protection and isolation, flexible memory placement.
What does the setjmp command do?
Saves the contents of the registers to a buffer.
What does the longjmp command do?
Restores the content of the registers from a buffer.
What is concurrency?
Multiple processes accessing one disk and sharing one CPU.
What are the two techniques used to handle Concurrrency?
Time Slicing and Context Switching.
What is parallelism?
Multiple processes running on separate CPUs.
What are coroutines?
Concurrent but not parallel processed used to split a computationally heavy routine.