Concurrency: introduction1 ©Magee/Kramer 2 nd Edition Concurrency State Models and Java Programs Jeff Magee and Jeff Kramer.

Slides:



Advertisements
Similar presentations
Embedded System, A Brief Introduction
Advertisements

Interactive lesson about operating system
Performance Testing - Kanwalpreet Singh.
CSC321 §1 Concurrent Programming 1 CSC 321 Concurrent Programming Course web site Lecturer: Professor N.S. Scott Room 2025,
CSC321 §1 Concurrent Programming 1 CSC 321 Concurrent Programming Course web site
©Ian Sommerville 2000 Software Engineering, 6th edition. Chapter 12Slide 1 Software Design l Objectives To explain how a software design may be represented.
WHAT IS AN OPERATING SYSTEM? An interface between users and hardware - an environment "architecture ” Allows convenient usage; hides the tedious stuff.
Concurrency: model-based design1 ©Magee/Kramer Chapter 8 Model-Based Design.
Slide 1 Concurrency, Dining Philosophers Lecture 14 COMP 201.
Chapter 13 Embedded Systems
The Role of Software Engineering Brief overview of relationship of SE to managing DSD risks 1.
Concurrency ©Magee/Kramer February 05, 2007 Claus Brabrand University of Aarhus Concurrency Spring 2007.
1: Operating Systems Overview
© 2005 Prentice Hall12-1 Stumpf and Teague Object-Oriented Systems Analysis and Design with UML.
OPERATING SYSTEM OVERVIEW
What is Concurrent Programming? Maram Bani Younes.
Instructore: Tasneem Darwish1 University of Palestine Faculty of Applied Engineering and Urban Planning Software Engineering Department Concurrent and.
Concurrency: introduction1 ©Magee/Kramer Concurrency State Models and Java Programs Jeff Magee and Jeff Kramer.
Advanced Operating Systems CIS 720 Lecture 1. Instructor Dr. Gurdip Singh – 234 Nichols Hall –
LOGO OPERATING SYSTEM Dalia AL-Dabbagh
Operating System Review September 10, 2012Introduction to Computer Security ©2004 Matt Bishop Slide #1-1.
B.Ramamurthy9/19/20151 Operating Systems u Bina Ramamurthy CS421.
The Architecture of Secure Systems Jim Alves-Foss Laboratory for Applied Logic Department of Computer Science University of Idaho By, Nagaashwini Katta.
Benjamin Gamble. What is Time?  Can mean many different things to a computer Dynamic Equation Variable System State 2.
Concurrency: introduction1 ©Magee/Kramer 2 nd Edition COMP60611 Fundamentals of Parallel and Distributed Systems Lecture 5 Introduction to Concurrency:
EEL Software development for real-time engineering systems.
1 CSCI 6900: Design, Implementation, and Verification of Concurrent Software Eileen Kraemer August 16 th, 2010 The University of Georgia.
Object-Oriented Modeling Using UML CS 3331 Section 2.3 of Jia 2003.
Java Threads 11 Threading and Concurrent Programming in Java Introduction and Definitions D.W. Denbo Introduction and Definitions D.W. Denbo.
Java Software Solutions Lewis and Loftus Chapter 14 1 Copyright 1997 by John Lewis and William Loftus. All rights reserved. Advanced Flow of Control --
2015 Concurrency: model-based design 1 ©Magee/Kramer 2 nd Edition Chapter 8 Model-Based Design.
Analysis of Concurrent Software Models Using Partial Order Views Qiang Sun, Yuting Chen,
1 Qualitative Reasoning of Distributed Object Design Nima Kaveh & Wolfgang Emmerich Software Systems Engineering Dept. Computer Science University College.
OPERATING SYSTEM SUPPORT DISTRIBUTED SYSTEMS CHAPTER 6 Lawrence Heyman July 8, 2002.
Chapter 2 Processes and Threads Introduction 2.2 Processes A Process is the execution of a Program More specifically… – A process is a program.
1: Operating Systems Overview 1 Jerry Breecher Fall, 2004 CLARK UNIVERSITY CS215 OPERATING SYSTEMS OVERVIEW.
1.
2015 Concurrency: logical properties 1 ©Magee/Kramer 2 nd Edition Chapter 14 Logical Properties Satisfied? Not satisfied?
CSCI 444 / CIS 644 Event Driven Programming. Outline I.What is an event driven system? II.What is event driven programming? III.Course Overview.
© 2006 Pearson Addison-Wesley. All rights reserved 2-1 Chapter 2 Principles of Programming & Software Engineering.
Software Engineering Chapter: Computer Aided Software Engineering 1 Chapter : Computer Aided Software Engineering.
Course: COMS-E6125 Professor: Gail E. Kaiser Student: Shanghao Li (sl2967)
Prof. Hany H. Ammar, CSEE, WVU, and
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 23 Slide 1 Software testing.
Choosing a Formal Method Mike Weissert COSC 481. Outline Introduction Reasons For Choosing Formality Application Characteristics Criteria For A Successful.
1.1 Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9 th Edition Chapter 1: Introduction What Operating Systems Do √ Computer-System Organization.
Concepts, Models and Programs Jeff Kramer and Jeff Magee
Applied Operating System Concepts
Advanced Operating Systems CIS 720
Operating Systems : Overview
Andy Wang COP 5611 Advanced Operating Systems
Operating Systems : Overview
Operating Systems Bina Ramamurthy CSE421 11/27/2018 B.Ramamurthy.
CSCI1600: Embedded and Real Time Software
Operating Systems : Overview
Architectures of distributed systems Fundamental Models
Software Engineering with Reusable Components
Process Description and Control
Operating Systems : Overview
Operating Systems : Overview
Operating Systems : Overview
Operating Systems : Overview
Andy Wang COP 5611 Advanced Operating Systems
Concurrency: Mutual Exclusion and Process Synchronization
Operating Systems : Overview
Process Description and Control
Operating Systems : Overview
Architectures of distributed systems
Operating Systems : Overview
Appendix 3 Object-Oriented Analysis and Design
Presentation transcript:

Concurrency: introduction1 ©Magee/Kramer 2 nd Edition Concurrency State Models and Java Programs Jeff Magee and Jeff Kramer

Concurrency: introduction2 ©Magee/Kramer 2 nd Edition What is a Concurrent Program? A sequential program has a single thread of control. A concurrent program has multiple threads of control allowing it perform multiple computations in parallel and to control multiple external activities which occur at the same time.

Concurrency: introduction3 ©Magee/Kramer 2 nd Edition Concurrent and Distributed Software? Interacting, concurrent software components of a system: single machine -> shared memory interactions multiple machines -> network interactions

Concurrency: introduction4 ©Magee/Kramer 2 nd Edition Why Concurrent Programming?  Performance gain from multiprocessing hardware parallelism.  Increased application throughput an I/O call need only block one thread.  Increased application responsiveness high priority thread for user requests.  More appropriate structure for programs which interact with the environment, control multiple activities and handle multiple events.

Concurrency: introduction5 ©Magee/Kramer 2 nd Edition Do I need to know about concurrent programming?  Therac - 25 computerised radiation therapy machine Concurrent programming errors contributed to accidents causing deaths and serious injuries.  Mars Rover Problems with interaction between concurrent tasks caused periodic software resets reducing availability for exploration. Concurrency is widespread but error prone.

Concurrency: introduction6 ©Magee/Kramer 2 nd Edition a Cruise Control System  Is the system safe?  Would testing be sufficient to discover all errors? When the car ignition is switched on and the on button is pressed, the current speed is recorded and the system is enabled: it maintains the speed of the car at the recorded setting. Pressing the brake, accelerator or off button disables the system. Pressing resume re-enables the system. buttons

Concurrency: introduction7 ©Magee/Kramer 2 nd Edition models A model is a simplified representation of the real world. Engineers use models to gain confidence in the adequacy and validity of a proposed design.  focus on an aspect of interest - concurrency  model animation to visualise a behaviour  mechanical verification of properties (safety & progress) Models are described using state machines, known as Labelled Transition Systems LTS. These are described textually as finite state processes (FSP) and displayed and analysed by the LTSA analysis tool.

Concurrency: introduction8 ©Magee/Kramer 2 nd Edition modeling the Cruise Control System Later chapters will explain how to construct models such as this so as to perform animation and verification. LTS of the process that monitors speed. LTSA Animator to step through system actions and events.

Concurrency: introduction9 ©Magee/Kramer 2 nd Edition programming practice in Java Java is  widely available, generally accepted and portable  provides sound set of concurrency features Hence Java is used for all the illustrative examples, the demonstrations and the exercises. Later chapters will explain how to construct Java programs such as the Cruise Control System. “Toy” problems are also used as they exemplify particular aspects of concurrent programming problems!

Concurrency: introduction10 ©Magee/Kramer 2 nd Edition course objective This course is intended to provide a sound understanding of the concepts, models and practice involved in designing concurrent software. The emphasis on principles and concepts provides a thorough understanding of both the problems and the solution techniques. Modeling provides insight into concurrent behavior and aids reasoning about particular designs. Concurrent programming in Java provides the programming practice and experience.

Concurrency: introduction11 ©Magee/Kramer 2 nd Edition Book Concurrency: State Models & Java Programs, 2 nd Edition Jeff Magee & Jeff Kramer WILEY 1 st edition

Concurrency: introduction12 ©Magee/Kramer 2 nd Edition Course Outline 2. Processes and Threads 3. Concurrent Execution 4. Shared Objects & Interference 5. Monitors & Condition Synchronization 6. Deadlock 7. Safety and Liveness Properties 8. Model-based Design 9.Dynamic systems 10. Message Passing 11. Concurrent Software Architectures Concepts Models Practice 12. Timed Systems 13. Program Verification 14. Logical Properties The main basic Advanced topics …

Concurrency: introduction13 ©Magee/Kramer 2 nd Edition Web based course material  Java examples and demonstration programs  State models for the examples  Labelled Transition System Analyser (LTSA) for modeling concurrency, model animation and model property checking.

Concurrency: introduction14 ©Magee/Kramer 2 nd Edition Summary  Concepts we adopt a model-based approach for the design and construction of concurrent programs  Models we use finite state models to represent concurrent behavior.  Practice we use Java for constructing concurrent programs. Examples are used to illustrate the concepts, models and demonstration programs.