13
MASTER EEA Première année HMEE209 : Programmation Multitâche Alberto BOSIO [email protected] http://www.lirmm.fr/~bosio/HMEE209

MASTER EEA Première année HMEE209 : Programmation Multitâchebosio/HMEE209/01 - introduction.pdf · Première année HMEE209 : Programmation Multitâche ... n La programmation sous

  • Upload
    lamphuc

  • View
    225

  • Download
    0

Embed Size (px)

Citation preview

Page 1: MASTER EEA Première année HMEE209 : Programmation Multitâchebosio/HMEE209/01 - introduction.pdf · Première année HMEE209 : Programmation Multitâche ... n La programmation sous

MASTER EEA

Première année

HMEE209 : Programmation MultitâcheAlberto BOSIO

[email protected]://www.lirmm.fr/~bosio/HMEE209

Page 2: MASTER EEA Première année HMEE209 : Programmation Multitâchebosio/HMEE209/01 - introduction.pdf · Première année HMEE209 : Programmation Multitâche ... n La programmation sous

2

Agendan Introductionn Systèmes Exploitationn Processesn Threadsn IPCn Scheduler

Page 3: MASTER EEA Première année HMEE209 : Programmation Multitâchebosio/HMEE209/01 - introduction.pdf · Première année HMEE209 : Programmation Multitâche ... n La programmation sous

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

Page 4: MASTER EEA Première année HMEE209 : Programmation Multitâchebosio/HMEE209/01 - introduction.pdf · Première année HMEE209 : Programmation Multitâche ... n La programmation sous

4

Introduction

T1

T2

T3

Page 5: MASTER EEA Première année HMEE209 : Programmation Multitâchebosio/HMEE209/01 - introduction.pdf · Première année HMEE209 : Programmation Multitâche ... n La programmation sous

5

Introduction

T1

T2

T3

Page 6: MASTER EEA Première année HMEE209 : Programmation Multitâchebosio/HMEE209/01 - introduction.pdf · Première année HMEE209 : Programmation Multitâche ... n La programmation sous

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

Page 7: MASTER EEA Première année HMEE209 : Programmation Multitâchebosio/HMEE209/01 - introduction.pdf · Première année HMEE209 : Programmation Multitâche ... n La programmation sous

Introductionn Why/Where multitasking?

n General purpose Systemsn Your Computer

n Embedded Systemsn Your tablet/smartphonen Dedicated Control Systems

7

Page 8: MASTER EEA Première année HMEE209 : Programmation Multitâchebosio/HMEE209/01 - introduction.pdf · Première année HMEE209 : Programmation Multitâche ... n La programmation sous

Introductionn Why/Where multitasking?

n General purpose Systemsn Your Computer

n Embedded Systemsn Your tablet/smartphonen Dedicated Control Systems

8

M2 Robotique Automatique

Page 9: MASTER EEA Première année HMEE209 : Programmation Multitâchebosio/HMEE209/01 - introduction.pdf · Première année HMEE209 : Programmation Multitâche ... n La programmation sous

9

Page 10: MASTER EEA Première année HMEE209 : Programmation Multitâchebosio/HMEE209/01 - introduction.pdf · Première année HMEE209 : Programmation Multitâche ... n La programmation sous

Introductionn Why/Where multitasking?

n High Performance Computingn Cloud Computing

10

Page 11: MASTER EEA Première année HMEE209 : Programmation Multitâchebosio/HMEE209/01 - introduction.pdf · Première année HMEE209 : Programmation Multitâche ... n La programmation sous

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

Page 12: MASTER EEA Première année HMEE209 : Programmation Multitâchebosio/HMEE209/01 - introduction.pdf · Première année HMEE209 : Programmation Multitâche ... n La programmation sous

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

Page 13: MASTER EEA Première année HMEE209 : Programmation Multitâchebosio/HMEE209/01 - introduction.pdf · Première année HMEE209 : Programmation Multitâche ... n La programmation sous

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

between tasks?

13