Communication entre processus - Threads

Slides:



Advertisements
Présentations similaires
Primary French Presentation 2 Saying How You Are.
Advertisements

Futur Proche au negatif By: Ruth & Louis. When you are not going to do something, then you put ne in front of the verb vais (meaning going) and pas after.
Français La mémoire (2) Les phrases. Nous allons…
Les négatifs et linterrogation Grammaire A. Lélision/La liaison When a verb begins with a vowel or a silent h, je is shortened to j. This is known as.
9e Année - Français Cadre
Welcome to a French lesson Bonjour classe Can you tell me using a verb what have you done yesterday, this morning or before you came to this class?
Échantillonnage de l'eau et des facteurs connexes pour mesurer les caractéristiques physiques, chimiques et microbiologiques de l'eau de surface et des.
Communication entre processus - TCP From Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edition 3, © Addison-Wesley 2001 Chapitre.
Les choses que j aime Learning Objective: To know how to use j aime to talk about things I like to do.
Programmation concurrente
A quoi tu jouais dans le passé? To be able to use the imperfect tense to talk about what you used to do.
Hier c’était lundi vingt-huit octobre
Communication entre processus From Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edition 3, © Addison-Wesley 2001 Chapitre.
Communication entre processus From Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edition 3, © Addison-Wesley 2001 Chapitre.
Communication entre processus From Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edition 3, © Addison-Wesley 2001 Chapitre.
Les Animaux Domestiques
Unité 1: Faisons Connaissance Leçon 2 Famille et copains
Essential Questions How can you express the verb “ to be” in French?
CEG3585/CEG3555 Tutorat 2 Hi ver 2013.
Les Adverbes. What are they? Adverbs describe verbs, adjectives, and other adverbs. They tell how, how much, where, why, or when. Exemple: beaucoup, bien,
Les verbes réfléchis Les normes: Communication 1.2 Comparisions 4.1
Recycled Christmas Cards for our Comenius Partners! "Edité avec le soutien financier de la Commission européenne. Le contenu de cette publication et l'usage.
Classroom vocabulary Review for Quarterly Exam. Martin, tu as un crayon de papier?
Les activités quotidiens On the slides to follow are activities we do each day. Write them down! We will then discuss conjugating and create some sentences.
Les Vêtements Nom Classe. Pour aller à une boum, je vais mettre… Catalogue/site web : ArticleCouleurTaillePrix Total Euros Total $
L’Heure To ask what time it is in French, say: – Quelle heure est-il? To respond, say: – Il est... heure(s). – Ex: 02h00 Il est deux heures. 04h00 Il est.
WALT: GIVE OPINIONS ABOUT MY TOWN
Activities for the first week of the École 1 unit.
WALT: Recognise and use phrases in the past tense with opinions of leisure activities. WILF: To be able to use opinions in the past tense. You must be.
La Revue: Les verbes – ER. La norm: Comparisons 4.1 Understanding the nature of language What is a « regular verb »? How are regular –ER verbs conjugated?
Irregular Adjectives Not all adjectives are made the same.
lundi 17 novembre Tu es comment? What do you look like? Starter: Dictionary challenge: Look up the words in the dictionary. You need the masculine and.
Let’s enjoy making Session 2. Let’s enjoy making: Session 2 Les déménageurs sont arrivés !
Au zoo de Boise: summative assessment For this assessment, you will write a description of animals you see at the Boise Zoo. During your trip, write down.
QUI et QUE (QU’). Un pronom relatif allows us to join deux phrases ensemble quand il y a a repetition of nouns in BOTH SENTENCES. Le commencement de.
OBJECTIF T To be able to recognise negatives o be able to use negatives when talking about food.
© Crown copyright 2011, Department for Education These materials have been designed to be reproduced for internal circulation, research and teaching or.
Aim To recap depuis + to say how long you have been doing something. J’ apprends le français depuis quatre ans. What does this sentence mean? Think of.
WALT: how to tell the time in French WILF: to be able to understand ¼ past, ½ past, ¼ to and o’clock (level 2) to be able to understand all times in French.
© Crown copyright 2011, Department for Education These materials have been designed to be reproduced for internal circulation, research and teaching or.
Landscape with Shapes and Colors My Name. Directions On the following slide you will see a landscape created with only the basic shapes and colors in.
Comparaison Culturel Tips and tricks. 1 st things 1 st Know the general instructions before the test! You will have 4 minutes to read the topic and prepare.
Être (to be) Je suis (I am) Tu es (you are /informal) Il est/elle est (he/she is) Nous sommes (we are) Vous êtes (you are/formal and plural) Ils sont/elles.
Dossier 2 depuis, il y a, pendant, pour. If you are asking a question about the duration of an action that began in the past and still continues in the.
French 1 Chapter 2 Grammar 2
Negative sentences Questions
Do now: translate into English 1.Je voudrais une livre du bœuf. 2.Tu aimes le poisson? 3.Vous prenez du poulet avec (with) des pommes de terre? 4.Nous.
Unité 9 : les repas Leçon 35 : Un Client Difficile Ordering food in a restaurant Partie B : les pronoms compléments à l’impératif.
J’habite dans une petite maison. J’habite dans une maison jumellé.
Traffic Sign Recognition Jacob Carlson Sean St. Onge Advisor: Dr. Thomas L. Stewart.
Les questions Grammaire: p
Les robots de la maison Je mets la table.
The passive voice La voix passive.
IDL_IDL bridge The IDL_IDLBridge object class allows an IDL session to create and control other IDL sessions, each of which runs as a separate process.
Qu’est-ce que c’est? 1A.1 Nouns & Articles p
“Depuis”.
Salim Bachi is a writer who was born in Algeria and who now lives in France and who writes in French.
Les questions et les mots interrogatifs
Nous allons apprendre…
Qui est-ce? NB: This version of Guess Who has been created using copyright free images from There are versions of the game available to.
Questions Synthesis.
Task while waiting for everyone to finish writing the WALT and WILF
les instructions Bonjour la classe, sortez vos affaires
Dans ma Salle de classe
Travail de cloche Quelle est la chose la plus surprenant que vous avez lu dans le lecture pour aujourd’hui.
S1 - descriptions To be able to describe yourself in French
Transcription de la présentation:

Communication entre processus - Threads http://java.sun.com/docs/books/tutorial/essential/concurrency/procthread.html

Plan Caractéristiques des protocoles de communication entre processus dans un système réparti Principes généraux communication par datagrammes Client-serveur Communication de groupe par flots (streams) construction de protocoles pour les patterns de communication client-serveur : requête-réponse groupe : même message est envoyé à plusieurs processus données représentation des objets dans les messages références à des objets distants

Création de threads

Thread.sleep(4000); t.join(); synchronized Le thread courant s’arrête jusqu’à ce que t ait terminé synchronized

Énoncé synchronized C1 et c2 ne sont pas utilisés en même temps Inutile de bloquer l’ensemble de l’objet

Création et gestion des threads Interface Executor execute(Runnable command) (new Thread(r)).start(); === e.execute(r); Interface ExecutorService Runnable ou Callable Interface ScheduledExecutorService schedule(Callable<V> callable, long delay, TimeUnit unit) scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) initialDelay, initialDelay+period, then initialDelay + 2 * period, etc. scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit) Delai fixe entre la fin de l’action courante et le début de l’action suivante

Threads pools New threads are created using a ThreadFactory. La création de threads demande beaucoup de ressources en mémoire On ne peut pas se permettre de lancer un thread par requête http sans réfléchir public class ThreadPoolExecutor factory methods Executors.newCachedThreadPool() unbounded thread pool, with automatic thread reclamation, Executors.newFixedThreadPool(int) fixed size thread pool Executors.newSingleThreadExecutor() single background thread New threads are created using a ThreadFactory. If not otherwise specified, a Executors.defaultThreadFactory() New tasks submitted in method execute(java.lang.Runnable) will be rejected when when the Executor has been shut down, when the Executor uses finite bounds for both maximum threads and work queue capacity, and is saturated