CIS 644 Thus. Oct. 28, 1999 W10B … misc. questions … thread, Runable … communication patterns.

Slides:



Advertisements
Similar presentations
NAGIOS AND CACTI NETWORK MANAGEMENT AND MONITORING SYSTEMS.
Advertisements

Executional Architecture
Concurrency Important and difficult (Ada slides copied from Ed Schonberg)
CSCC69: Operating Systems
1 Chapter 5 Threads 2 Contents  Overview  Benefits  User and Kernel Threads  Multithreading Models  Solaris 2 Threads  Java Threads.
Introduction to Network Analysis and Sniffer Pro
Chapter 4 Threads, SMP, and Microkernels Patricia Roy Manatee Community College, Venice, FL ©2008, Prentice Hall Operating Systems: Internals and Design.
UML Class and Sequence Diagrams Violet Slides adapted from Marty Stepp, CSE 403, Winter 2012 CSE 403 Spring 2012 Anton Osobov.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 5: Threads Overview Multithreading Models Threading Issues Pthreads Solaris.
Erlang concurrency. Where were we? Finished talking about sequential Erlang Left with two questions  retry – not an issue; I mis-read the statement in.
1 Foundations of Software Design Lecture 1: Course Overview Intro to Binary and Boolean Marti Hearst SIMS, University of California at Berkeley.
Course Map The Java Programming Language Basics Object-Oriented Programming Exception Handling Graphical User Interfaces and Applets Multithreading Communications.
1 Chapter 4 Threads Threads: Resource ownership and execution.
Multithreading in Java Nelson Padua-Perez Chau-Wen Tseng Department of Computer Science University of Maryland, College Park.
© 2004, D. J. Foreman 2-1 Concurrency, Processes and Threads.
50.003: Elements of Software Construction Week 5 Basics of Threads.
What is the output generated by this program? Please assume that each executed print statement completes, e.g., assume that each print is followed by an.
Online Stock Trading System
Fall CIS 764 Database Systems Engineering L3: Two Assignments Relating to J2EE.
Introduction CSE 1310 – Introduction to Computers and Programming
CS 3305 Course Overview. Introduction r Instructor: Dr Hanan Lutfiyya r Office: MC 355 r hanan at csd dot uwo ca r Office Hours: m Drop-by m Appointment.
CS 0004 –Lecture 1 Wednesday, Jan 5 th, 2011 Roxana Gheorghiu.
PRESENTATION 2 Sri Raguraman CIS 895 Kansas State University.
(C) 2009 J. M. Garrido1 Object Oriented Simulation with Java.
Advanced Operating Systems CIS 720 Lecture 1. Instructor Dr. Gurdip Singh – 234 Nichols Hall –
CS 162 Discussion Section Week 1 (9/9 – 9/13) 1. Who am I? Kevin Klues Office Hours:
1 Lecture 4: Threads Operating System Fall Contents Overview: Processes & Threads Benefits of Threads Thread State and Operations User Thread.
UNIT - 1Topic - 2 C OMPUTING E NVIRONMENTS. What is Computing Environment? Computing Environment explains how a collection of computers will process and.
DUE Hello World on the Android Platform.
Network Management Tool Amy Auburger. 2 Product Overview Made by Ipswitch Affordable alternative to expensive & complicated Network Management Systems.
Introduction CSE 1310 – Introduction to Computers and Programming Vassilis Athitsos University of Texas at Arlington 1.
Real Time Operating Systems Lecture 10 David Andrews
1 Confidential Enterprise Solutions Group Process and Threads.
Fall CIS 764 Database Systems Engineering L1: Introduction to … CIS 764 Enterprise Database Systems Engineering: Software.
CS 346 – Chapter 4 Threads –How they differ from processes –Definition, purpose Threads of the same process share: code, data, open files –Types –Support.
1 Concurrency Architecture Types Tasks Synchronization –Semaphores –Monitors –Message Passing Concurrency in Ada Java Threads.
Operating Systems and Systems Programming CS162 Teaching Staff.
Source: Operating System Concepts by Silberschatz, Galvin and Gagne.
CIS 644 Thurs. Sept. 30, 1999 W6B … assignment: 2ed object model … patterns … Java … assignment: Java … patterns.
CIS 644 Tues. Nov 16, 1999 W13A … Software architecture.
Design and Implementation of a Rationale-Based Analysis Tool (RAT) Diploma thesis from Timo Wolf Design and Realization of a Tool for Linking Source Code.
PRESENTATION 2 Sri Raguraman CIS 895 Kansas State University.
1 VxWorks 5.4 Group A3: Wafa’ Jaffal Kathryn Bean.
Three small projects for an „Advanced Programming in Java” course Ioan Jurca „Politehnica” University of Timisoara Romania.
C H A P T E R E L E V E N Concurrent Programming Programming Languages – Principles and Paradigms by Allen Tucker, Robert Noonan.
CSC 520 – Advanced Object Oriented Programming, Fall, 2010 Thursday, October 14 Week 7, UML Diagrams
CIS 644 Tues. Nov. 23, 1999 W14A … Threads, Notification Chaps. 4, 5.
CIS 644 Thurs. Oct. 7, 1999 W7B … call for Video Class model … discuss previous pattersn.
CIS 644 Aug. 31, Off campus …. Registered, but not “alive” Guozden, C Harrison, W Pallack, R Rubio, J Schleifer, D Sun, W not registered: Ali, Y.
1 5-High-Performance Embedded Systems using Concurrent Process (cont.)
Embedded Real-Time Systems Processing interrupts Lecturer Department University.
Concurrent Programming in Java Based on Notes by J. Johns (based on Java in a Nutshell, Learning Java) Also Java Tutorial, Concurrent Programming in Java.
Threads, SMP, and Microkernels Chapter 4. Processes and Threads Operating systems use processes for two purposes - Resource allocation and resource ownership.
Copyright ©: Nahrstedt, Angrave, Abdelzaher, Caccamo1 University of Illinois at Urbana-Champaign Welcome to CS 241 Systems Programming University of Illinois.
USING ANDROID WITH THE INTERNET. Slide 2 Lecture Summary Getting network permissions Working with the HTTP protocol Sending HTTP requests Getting results.
Introduction to threads
Operating Systems Dr. Sadi Seker.
A brief intro to: Parallelism, Threads, and Concurrency
Microprocessors Personal Computers Embedded Systems Programmable Logic
Advanced Operating Systems CIS 720
Topics Covered What is Real Time Operating System (RTOS)
Operating System (013022) Dr. H. Iwidat
Chapter 4: Multithreaded Programming
CIS 644 Tues. Sept. 7, 1999 blank.
Chapter 4: Threads.
Lecture 4- Threads, SMP, and Microkernels
Threads and Concurrency
Concurrency, Processes and Threads
Slide design: Dr. Mark L. Hornick
CIS 644 Thurs. Sept. 23, W5B … scenarios … signatures …. review
Presentation transcript:

CIS 644 Thus. Oct. 28, 1999 W10B … misc. questions … thread, Runable … communication patterns

Exam1 … covers: class & scenario models open book … < 1.5 hours Tues Nov 2. on campus … in class off campus … sent 4:30pm C.T. or fax it back

administrative: > corrections to GRADES file are being made … will be reposted later. > CIS web server was “killed” this week … temporarily moved … … some scripts may not work CIS644 local pages should be OK now. > I keep up with “urgent” … rest may wait for a while (will post patterns lists later)

?? are GRADES 4 digits SSN number?... they are KSU student ID number. ?? send back off-campus homework … no … just class discussion ?? post “my answer” … no … posted TA’s answer

?? “1.5” hours for exam … on-campus... up to 90 minutes … off-campus … honor system will draw some diagrams … FAX is OK … “asap” if you want to use Rose or other tool, great … don’t count that as part of exam time.

review questions: "class variables", "class markers" (page 21) c getList( ; list) … there are times with class methods are required Coad’s use of class methods for collections is optional … not my preference

my preference: theAirports LOOP | getAirport( ; anAirport) -->| | anAirport | | getInfo( ) >| ENDLOOP translates: loop { anAirport = theAirports.getAirport( i ); }

??is this related to aggregation vs composition ?? … no … I see A vs C as who owns the items who is responsible for keeping refs UML … what are the items "part of"

?? c new(passenger; aReservation) … converts to Java as: aReservation = new Reservation(passenger)

?? Airports | c remove( anAirport) -->| could translate as: class Airports { Airport[ ] items; … void remove( integer i) { items[ i ] = null ; } }

?? * getValues( ; values) … * indicates a loop … calls to multiple objects from the collection

threads use comments: threads are used in: CIS625 distributed Processing CIS725 Computer Networks

I use Solaris threads & Posix threads. I use the ACE framework (thread details are hidden within) … at Motorola

at Sprint:...Every application … is multi-threaded... created our own thread classes in C++ ( inconsistencies with the standard class) e.g. * credit card validation (C++) … allows concurrent requests * vendor communication (C++) … allows concurrent requests * orders system (Java).. Enterprise Java Beans framework (hidden multi-threads )

.. some Java threads... more with multi-tasking in real-time OS (OS-9, iRMX, Unison, VersaDos) using C …these OS's have features such as: mailboxes, signals, shared memory for intertask communication semaphores to control access

we use concurrency...in modeling aircraft systems for real-time simulation threads (multiple processes) are becoming more common in systems we are developing

?? was there only one thread in the Video Store?? … Chap 1 … yes … real… no… need to define the "system" arch. assume: one processor, many agents in PD … should be multiple Agent tasks, each with own UI

continuing into Chaps 4 & 5: Coad: "this is easy" :-( UML: objects: passive vs active active: process vs thread ADA: object vs task

Java: Runable interface defines run() but is not per se active object Thread implements Runable and is active object Runable object can be executed "in" (with ??) its own thread. … pass object to Thread(Obj). or, Runable object can make its own thread, as Sensor version p. 194

or.. Thread can execute several different runable objects (…invoke their run() ) … in sequence, of course.

threads can have priorities … but current JVMs do not guarentee exact mapping of priorities !! Lea recommends: HI … for system critical threads LO … for background threads Coad mapping … p. 192 :-(

visual representation of active objects: … at Java level, only Thread is really active, … at design (abstract) level, Runable objects can be "active" :-( Coad does not show bold boxes __ __ Ada: /__ / for Task vs [__] for obj.

skim Chap 4, 5 for overview: several different forms for communication passive (polling) timer active (source notifies its listeners) message vs notification: of course, at Java level, notification implemented as message

End