MASTER EEA Première année HMEE209 : Programmation Multitâchebosio/HMEE209/01 -...

Preview:

Citation preview

MASTER EEA

Première année

HMEE209 : Programmation MultitâcheAlberto BOSIO

alberto.bosio@lirmm.frhttp://www.lirmm.fr/~bosio/HMEE209

2

Agendan Introductionn Systèmes Exploitationn Processesn Threadsn IPCn Scheduler

Référencesn Web:

n http://www.emse.fr/~mbeig//COURS/UNIX2002/unix_toc.htmln ……

n Le tout en poche: UNIX, de Dave Taylor et James C. Armstrong Jr, Simon & Schuster Macmillan, ISBN 2-7440-0515-0.

n PC poche: Langage C, de Gerhard Willms, Micro Application, ISBN 2-7429-0738-6.

n La programmation sous UNIX, de Jean-Marie Rifflet, Ediscience, ISBN 2-84074-013-3.

n Programmation système en C sous LINUX, de Christophe Blaess, Eyrolles, ISBN 2-212-09136-2.

3

4

Introduction

T1

T2

T3

5

Introduction

T1

T2

T3

Introductionn Why/Where multitasking?

n Run multiple programs at a time appear to be running simultaneously

n Browser: scroll pages during downloadn Multimedia: play sound and video at the same

timen Parallel computation allows to increase the

throughputn the quantity of information processed in a

given period by a computer6

Introductionn Why/Where multitasking?

n General purpose Systemsn Your Computer

n Embedded Systemsn Your tablet/smartphonen Dedicated Control Systems

7

Introductionn Why/Where multitasking?

n General purpose Systemsn Your Computer

n Embedded Systemsn Your tablet/smartphonen Dedicated Control Systems

8

M2 Robotique Automatique

9

Introductionn Why/Where multitasking?

n High Performance Computingn Cloud Computing

10

Introductionn Why/Where multitasking?

n System On a Chipn MPSoC

11

Multi-core architectures •  Different chips combined into a single package

or different cores combined into a single chip •  How many cores?

–  Dual-cores, quad-cores –  Many-cores ! tens or hundreds of cores

•  Example: shared-cache dual-ore architecture:

Core 0

CPU

L1 Cache

Core 1

CPU

L1 Cache

L2 Cache

Introductionn Why/Where multitasking?

n System On a Chipn MPSoC

12

Multi-core architectures •  Different chips combined into a single package

or different cores combined into a single chip •  How many cores?

–  Dual-cores, quad-cores –  Many-cores ! tens or hundreds of cores

•  Example: shared-cache dual-ore architecture:

Core 0

CPU

L1 Cache

Core 1

CPU

L1 Cache

L2 Cache M2 Systèmes Electroniques

Intégrés

Questions…?n How different tasks are created?n How many tasks?n What about synchronization?n What about data communication

between tasks?

13

Recommended