Date: August 30, 2024

Topic: Introduction to Processes

Recall

Process Attributes

Notes

Process Attributes

Processes are like an order of toys


A process is an application that is executed

Multiple launches of the same application creates multiple processes

What is a Process?

The OS manages hardware on behalf of applications

Applications:

Process:


A process encapsulates all data for a running application

A process contains:

What does a Process Look Like?

Types of States

Text and data

Heap - may not be contiguous and is dynamic

V represents the virtual addresses used

V represents the virtual addresses used

Stack - contiguous and fixed

Feature Stack Heap
Memory Allocation Static (Fixed size) Dynamic (Variable size)
Contiguous? Yes No
Speed Fast Slower
Management Automatic (by compiler) Manual (or automatic in GC)
Size Limit Typically small, fixed Larger, limited by RAM
Use Cases Function calls, local vars Dynamic memory, large data

<aside> 📌 SUMMARY: A process is an instance of an application being executed. It encapsulates all data for a running application through the different states

</aside>


Date: August 30, 2024

Topic: Memory Management


<aside> 📌 SUMMARY: OS use page tables to map virtual memory from an application to physical memory in either the DRAM or disk. Virtual addresses are unique to the process.

</aside>