Universität Dortmund System Software (2) Peter Marwedel TU Dortmund, Informatik 12 Germany 2012 年 11 月 28 日 These slides use Microsoft clip arts. Microsoft.

Slides:



Advertisements
Similar presentations
Technische universität dortmund fakultät für informatik informatik 12 Models of computation Peter Marwedel TU Dortmund Informatik 12 Graphics: © Alexandra.
Advertisements

Fakultät für informatik informatik 12 technische universität dortmund Resource Access Protocols Peter Marwedel Informatik 12 TU Dortmund Germany 2008/12/06.
Fakultät für informatik informatik 12 technische universität dortmund Imperative model of computation Peter Marwedel TU Dortmund, Informatik 12 Graphics:
Technische universität dortmund fakultät für informatik informatik 12 Specifications and Modeling Peter Marwedel TU Dortmund, Informatik 12 Graphics: ©
Technische universität dortmund fakultät für informatik informatik 12 Discrete Event Models Peter Marwedel TU Dortmund, Informatik 12 Germany
Technische universität dortmund fakultät für informatik informatik 12 Specifications and Modeling Peter Marwedel TU Dortmund, Informatik
TU/e Service Discovery Mechanisms: two case studies / IC2002 Service Discovery Mechanisms: Two case studies Control point Device UPnP Terminal Domain Host.
MPI Message Passing Interface
COM vs. CORBA.
Petri Nets Jian-Jia Chen (slides are based on Peter Marwedel)
Technische universität dortmund fakultät für informatik informatik 12 Specifications, Modeling, and Model of Computation Jian-Jia Chen (slides are based.
Technische universität dortmund fakultät für informatik informatik 12 Discrete Event Models Jian-Jia Chen (slides are based on Peter Marwedel) TU Dortmund,
Hardware/ Software Partitioning 2011 年 12 月 09 日 Peter Marwedel TU Dortmund, Informatik 12 Germany Graphics: © Alexandra Nolte, Gesine Marwedel, 2003 These.
Dr. Kalpakis CMSC 621, Advanced Operating Systems. Fall 2003 URL: Distributed System Architectures.
MACHINE-INDEPENDENT VIRTUAL MEMORY MANAGEMENT FOR PAGED UNIPROCESSOR AND MULTIPROCESSOR ARCHITECTURES R. Rashid, A. Tevanian, M. Young, D. Golub, R. Baron,
Fakultät für informatik informatik 12 technische universität dortmund Specifications - Session 5 - Peter Marwedel TU Dortmund Informatik 12 Germany Slides.
System Software (2) Peter Marwedel TU Dortmund, Informatik 12 Germany 2013 年 11 月 26 日 These slides use Microsoft clip arts. Microsoft copyright restrictions.
Fakultät für informatik informatik 12 technische universität dortmund Imperative languages Peter Marwedel TU Dortmund, Informatik 12 Graphics: © Alexandra.
Universität Dortmund Middleware Peter Marwedel TU Dortmund, Informatik 12 Germany Graphics: © Alexandra Nolte, Gesine Marwedel, 2003 These slides use Microsoft.
Technical Architectures
CS 501: Software Engineering Fall 2000 Lecture 16 System Architecture III Distributed Objects.
1 Concurrent and Distributed Systems Introduction 8 lectures on concurrency control in centralised systems - interaction of components in main memory -
Software Engineering and Middleware: a Roadmap by Wolfgang Emmerich Ebru Dincel Sahitya Gupta.
3.5 Interprocess Communication Many operating systems provide mechanisms for interprocess communication (IPC) –Processes must communicate with one another.
Threads 1 CS502 Spring 2006 Threads CS-502 Spring 2006.
3.5 Interprocess Communication
Fakultät für informatik informatik 12 technische universität dortmund Universität Dortmund Middleware Peter Marwedel TU Dortmund, Informatik 12 Germany.
Polaris Financial Technologies Welcomes the members of Hyderabad chapter for the 2nd event on 4 th July 14 held by PACE (The Testing Practice)
1 I/O Management in Representative Operating Systems.
.NET Mobile Application Development Remote Procedure Call.
Client/Server Architecture
September 2011 At A Glance The API provides a common interface to the GMSEC software information bus. Benefits Isolates both complexity of applications.
Middleware for P2P architecture Jikai Yin, Shuai Zhang, Ziwen Zhang.
Course Outline DayContents Day 1 Introduction Motivation, definitions, properties of embedded systems, outline of the current course How to specify embedded.
Lecture 4: Parallel Programming Models. Parallel Programming Models Parallel Programming Models: Data parallelism / Task parallelism Explicit parallelism.
Beyond DHTML So far we have seen and used: CGI programs (using Perl ) and SSI on server side Java Script, VB Script, CSS and DOM on client side. For some.
9/14/2015B.Ramamurthy1 Operating Systems : Overview Bina Ramamurthy CSE421/521.
ICOM 5995: Performance Instrumentation and Visualization for High Performance Computer Systems Lecture 7 October 16, 2002 Nayda G. Santiago.
COM vs. CORBA Computer Science at Azusa Pacific University September 19, 2015 Azusa Pacific University, Azusa, CA 91702, Tel: (800) Department.
1 Chapter 38 RPC and Middleware. 2 Middleware  Tools to help programmers  Makes client-server programming  Easier  Faster  Makes resulting software.
CS 390- Unix Programming Environment CS 390 Unix Programming Environment Topics to be covered: Distributed Computing Fundamentals.
Architectures of distributed systems Fundamental Models
Evaluation and Validation Peter Marwedel TU Dortmund, Informatik 12 Germany 2013 年 12 月 02 日 These slides use Microsoft clip arts. Microsoft copyright.
Hwajung Lee.  Interprocess Communication (IPC) is at the heart of distributed computing.  Processes and Threads  Process is the execution of a program.
Distributed Object Frameworks DCE and CORBA. Distributed Computing Environment (DCE) Architecture proposed by OSF Goal: to standardize an open UNIX envt.
Alternative Architecture for Information in Digital Libraries Onno W. Purbo
Presented By:- Sudipta Dhara Roll Table of Content Table of Content 1.Introduction 2.How it evolved 3.Need of Middleware 4.Middleware Basic 5.Categories.
CS 501: Software Engineering Fall 1999 Lecture 12 System Architecture III Distributed Objects.
CS533 - Concepts of Operating Systems 1 The Mach System Presented by Catherine Vilhauer.
Middleware Services. Functions of Middleware Encapsulation Protection Concurrent processing Communication Scheduling.
Software Engineering Chapter: Computer Aided Software Engineering 1 Chapter : Computer Aided Software Engineering.
The Mach System Silberschatz et al Presented By Anjana Venkat.
AMQP, Message Broker Babu Ram Dawadi. overview Why MOM architecture? Messaging broker like RabbitMQ in brief RabbitMQ AMQP – What is it ?
G.v. Bochmann, revised Jan Comm Systems Arch 1 Different system architectures Object-oriented architecture (only objects, no particular structure)
Rights Management for Shared Collections Storage Resource Broker Reagan W. Moore
Introduction to Operating Systems Concepts
Last Class: Introduction
2. Specification and Modeling
University of Technology
Knowledge Byte In this section, you will learn about:
Embedded System Design Specifications and Modeling
Operating Systems : Overview
Inventory of Distributed Computing Concepts and Web services
Chapter 4: Threads.
Multiple Processor Systems
Operating Systems : Overview
Operating Systems : Overview
Operating Systems : Overview
Overview of AIGA platform
Specifications and Modeling
Presentation transcript:

Universität Dortmund System Software (2) Peter Marwedel TU Dortmund, Informatik 12 Germany 2012 年 11 月 28 日 These slides use Microsoft clip arts. Microsoft copyright restrictions apply. © Springer, 2010

- 2 -  p. marwedel, informatik 12, 2012 TU Dortmund Structure of this course 2: Specification 3: ES-hardware 4: system software (RTOS, middleware, …) 8: Test 5: Evaluation & validation (energy, cost, performance, …) 7: Optimization 6: Application mapping Application Knowledge Design repository Design Numbers denote sequence of chapters

- 3 -  p. marwedel, informatik 12, 2012 TU Dortmund Increasing design complexity + Stringent time-to- market requirements  Reuse of components Reuse requires knowledge from previous designs to be made available in the form of intellectual property (IP, for SW & HW).  HW  Operating systems  Middleware (Communication libraries, data bases, …)  ….

- 4 -  p. marwedel, informatik 12, 2012 TU Dortmund Models of computation considered in this course Communication/ local computations Shared memory Message passing Synchronous | Asynchronous Undefined components Plain text, use cases | (Message) sequence charts Communicating finite state machines StateChartsSDL Data flow Scoreboarding + Tomasulo Algorithm (  Comp.Archict.) Kahn networks, SDF Petri nets C/E nets, P/T nets, … Discrete event (DE) model VHDL*, Verilog*, SystemC*, … Only experimental systems, e.g. distributed DE in Ptolemy Imperative (Von Neumann) model C, C++, Java [libraries] C, C++, Java with libraries CSP, ADA | * Classification based on semantic model

- 5 -  p. marwedel, informatik 12, 2012 TU Dortmund Pthreads  Shared memory model  Consists of standard API -Originally used for single processor -Locks ( mutex, read-write locks) Based on W. Verachtert (IMEC): Introduction to Parallelism, tutorial, DATE 2008

- 6 -  p. marwedel, informatik 12, 2012 TU Dortmund PThreads Example threads = (pthread_t *) malloc(n*sizeof(pthread_t)); pthread_attr_init(&pthread_custom_attr); for (i=0;i<n; i++) pthread_create(&threads[i], &pthread_custom_attr, task, …); for (i=0;i<n; i++) { pthread_mutex_lock(&mutex); pthread_mutex_unlock(&mutex); } for (i=0;i<n; i++) pthread_join(threads[i], NULL); void* task(void *arg) { … pthread_mutex_lock(&mutex); pthread_mutex_unlock(&mutex); return NULL } Based on W. Verachtert (IMEC): Introduction to Parallelism, tutorial, DATE 2008

- 7 -  p. marwedel, informatik 12, 2012 TU Dortmund Pthreads  Consists of standard API -Locks ( mutex, read-write locks) -Condition variables -Completely explicit synchronization -Synchronization is very hard to program correctly  Typically supported by a mixture of hardware (shared memory) and software (thread management)  Exact semantics depends on the memory consistency model  Support for efficient producer/consumer parallelism relies on murky parts of the model  Pthreads can be used as back-end for other programming models (e.g. OpenMP) Based on W. Verachtert (IMEC): Introduction to Parallelism, tutorial, DATE 2008

- 8 -  p. marwedel, informatik 12, 2012 TU Dortmund OpenMP Implementations target shared memory hardware Parallelism expressed using pragmas  Parallel loops ( #pragma omp for {…} ; focus: data parallelism)  Parallel sections  Reductions Explicit  Expression of parallelism (mostly explicit) Implicit  Computation partitioning  Communication  Synchronization  Data distribution Lack of control over partitioning can cause problems Based on W. Verachtert (IMEC): Introduction to Parallelism, tutorial, DATE 2008

- 9 -  p. marwedel, informatik 12, 2012 TU Dortmund Models of computation considered in this course Communication/ local computations Shared memory Message passing Synchronous | Asynchronous Undefined components Plain text, use cases | (Message) sequence charts Communicating finite state machines StateChartsSDL Data flow(Not useful)°Kahn networks, SDF Petri nets C/E nets, P/T nets, … Discrete event (DE) model VHDL*, Verilog*, SystemC*, … Only experimental systems, e.g. distributed DE in Ptolemy Imperative (Von Neumann) model C, C++, Java [libraries] C, C++, Java with libraries CSP, ADA | * Classification based on semantic model ° Somewhat related: Scoreboarding + Tomasulo-Algorithm

 p. marwedel, informatik 12, 2012 TU Dortmund OSEK/VDX COM  is a special communication standard for the OSEK automotive OS Standard  provides an “Interaction Layer” as an API for internal and external communication via a “Network Layer” and a “Data Link” layer (some requirements for these are specified)  specifies the functionality, it is not an implementation. © P. Marwedel, 2011 ECU-1ECU-2

 p. marwedel, informatik 12, 2012 TU Dortmund CORBA (Common Object Request Broker Architecture) Software package for access to remote objects; Information sent to Object Request Broker (ORB) via local stub. ORB determines location to be accessed and sends information via the IIOP I/O protocol. Access times unpredictable. Server

 p. marwedel, informatik 12, 2012 TU Dortmund Real-time (RT-) CORBA RT-CORBA  provides end-to-end predictability of timeliness in a fixed priority system.  respects thread priorities between client and server for resolving resource contention,  provides thread priority management,  provides priority inheritance,  bounds latencies of operation invocations,  provides pools of preexisting threads. Inversion Server

 p. marwedel, informatik 12, 2012 TU Dortmund Message passing interface (MPI)  Asynchronous/synchronous message passing  Designed for high-performance computing  Comprehensive, popular library  Available on a variety of platforms  Mostly for homogeneous multiprocessing  Considered for MPSoC programs for ES;  Includes many copy operations to memory (memory speed ~ communication speed for MPSoCs); Appropriate MPSoC programming tools missing. © Photos: Microsoft; De Man/NXP

 p. marwedel, informatik 12, 2012 TU Dortmund MPI (1) Sample blocking library call (for C):  MPI_Send(buffer,count,type,dest,tag,comm) where -buffer: Address of data to be sent -count: number of data elements to be sent -type: data type of data to be sent (e.g. MPI_CHAR, MPI_SHORT, MPI_INT, …) -dest: process id of target process -tag: message id (for sorting incoming messages) -comm: communication context = set of processes for which destination field is valid -function result indicates success

 p. marwedel, informatik 12, 2012 TU Dortmund MPI (2) Sample non-blocking library call (for C):  MPI_Isend(buffer,count,type,dest,tag,comm,request) where -buffer … comm: same as above -request: unique "request number". "handle" can be used (in a WAIT type routine) to determine completion

 p. marwedel, informatik 12, 2012 TU Dortmund Evaluation Explicit  Computation partitioning  Communication  Data distribution Implicit  Synchronization (implied by communic., explicit possible)  Expression of parallelism (implied)  Communication mapping Properties  Most things are explicit  Lots of work for the user (“assembly lang. for parallel prog.”)  doesn’t scale well when # of processors is changed heavily Based on W. Verachtert (IMEC): Introduction to Parallelism, tutorial, DATE 2008

 p. marwedel, informatik 12, 2012 TU Dortmund RT-issues for MPI  MPI/RT: a real-time version of MPI [MPI/RT forum, 2001].  MPI-RT does not cover issues such as thread creation and termination.  MPI/RT is conceived as a potential layer between the operating system and standard (non real-time) MPI. MPI MPI-RT OS

 p. marwedel, informatik 12, 2012 TU Dortmund Universal Plug-and-Play (UPnP)  Extension of the plug-and-play concept  Enable emergence of easily connected devices & simplify implementation of home & corporate environments!  Examples: Discover printers, storage space, control switches in homes & offices  Exchanging data, no code (reduces security hazards)  Agreement on data formats & protocols  Classes of predefined devices (printer, mediaserver etc.)  © P. Marwedel, 2012

 p. marwedel, informatik 12, 2012 TU Dortmund Devices Profile for Web Services (DPWS)  More general than UPnP  … DPWS defines a minimal set of implementation constraints to enable secure Web Service messaging, discovery, description, and eventing on resource-constrained devices. …  DPWS specifies a set of built-in services: -Discovery services … -Metadata exchange services… -Publish/subscribe eventing services…  Lightweight protocol, supporting dynamic discovery, … its application to automation environments is clear. en.wikipedia.org/wiki/Devices_ Profile_for_Web_Services

 p. marwedel, informatik 12, 2012 TU Dortmund Network Communication Protocols - e.g. JXTA -  Open source peer-to-peer protocol specification.  Defined as a set of XML messages that allow any device connected to a network to exchange messages and collaborate independently of the network topology. .. Can be implemented in any modern computer language.  JXTA peers create a virtual overlay network, allowing a peer to interact with other peers even when some of the peers and resources are behind firewalls and NATs or use different network transports. wiki/JXTA

 p. marwedel, informatik 12, 2012 TU Dortmund Increasing design complexity + Stringent time-to- market requirements  Reuse of components Reuse requires knowledge from previous designs to be made available in the form of intellectual property (IP, for SW & HW).  HW  Operating systems  Middleware (Communication libraries, data bases, …)  ….

 p. marwedel, informatik 12, 2012 TU Dortmund Data bases Goal: store and retrieve persistent information Transaction= sequence of read and write operations Changes not final until they are committed Requested (“ACID”) properties of transactions 1.Atomic: state information as if transaction is either completed or had no effect at all. 2.Consistent: Set of values retrieved from several accesses to the data base must be possible in the world modeled. 3.Isolation: No user should see intermediate states of transactions 4.Durability: results of transactions should be persistent. Source: Krishna, Shin, 1997

 p. marwedel, informatik 12, 2012 TU Dortmund Real-time data bases Problems with implementing real-time data bases: 1.transactions may be aborted various times before they are finally committed. 2.For hard discs, the access times to discs are hardly predictable. Possible solutions: 1.Main memory data bases 2.Relax ACID requirements Source: Krishna, Shin, 1997

 p. marwedel, informatik 12, 2012 TU Dortmund Summary  Communication middleware Pthreads OpenMP OSEK/VDX COM CORBA MPI JXTA DPWS  RT-Data bases (brief)