Tasks, Threads, and Processes
for the Rest of Us
Zakarya BABAHAJ Anass REBBAG
Co-Speaker Speaker Blabla CONF- 5.0
Plan
1 Introduction
5 What is a scheduler ?
2 Program, Processes, Threads
6 Scheduler Algorithms classification
3 Tasks
4 Concurrency vs Parallelism
7 Inter-Thread vs Inter Process
communication
Program
A program is a set of instructions written in a programming language.
Process
Code Segment Data Segment Heap Stack Registers
Example
Thread
A Unit of execution within a process
Single-Threaded Process
Stack Registers
Code Segment Data Segment Heap
Thread 1
Multi-Threaded Process
Stack Registers
Thread 1
Code Segment Data Segment Heap
Stack Registers
Thread 2
Thread
Tasks
A Unit of execution within a process
Concurrency vs Parallelism ?
4 8
4 Threads 8 Threads
Concurrency vs Parallelism ?
Concurrency vs Parallelism ?
Thread 1
Thread 2
Concurrency vs Parallelism ?
Scheduler
Scheduler Algorithms classification
Inter-Thread vs Inter Process communication
Memory Space Memory Space Memory Space
Thread 1
Process 1 Process 2
Thread 2
Inter-Thread vs Inter Process communication
Nomade - 2024
Merci pour votre écoute !
NOMADE