Course 1 Week 3 Process Management, Memory Management, and Virtual Memory Flashcards
What is definition of a process? Example?
a program that’s executing
internet browser, text editor
What is the definition of a program? Example?
an application we can run, like Chrome
What’s the difference between a process and a program?
We can have many processes of the same program running at the same time
(Chrome x5 processes, how many chrome windows open)
What resources do we need to run programs?
some like RAM, CPU
What is a time slice in relation to the CPU?
The very short interval of time that a CPU uses to execute a process (one by one)
2 reasons why a computer would be running slowly and CPU resources being maxed out?
- One process may be taking more time slices than it should, next process can’t execute
- Too many processes want CPU time and CPU can’t keep up
What is virtual memory?
Combines hard drive space and RAM to give us more memory for processes
What are “pages”? Where are they stored?
Chunks of a program’s data
Stored in virtual memory when executing process
How do you read and execute pages?
they’re sent to physical memory (RAM)
Why would an application slow down when changing menus?
Computer loaded the page for that application from virtual memory into RAM
Why not store entire applications in RAM?
Wasteful for large applications (small is possible)
Only need a recipe not the whole cookbook
What is “swap space”?
disk space we can use for RAM when virtual memory is stored on hard drive
What does the Kernel handle in terms of memory management and pages?
handles process of taking pages (of data) and swapping them between RAM and virtual memory.