Overview and Discussion of Lab 2 Design Expand

Overview and Discussion of Lab 2 Design Expand

Overview and Discussion of Lab 2 Design Expand the work from a single scene to entire play Extend concurrency architecture from monitor object to thread pools using HSHA and/or LF patterns I.e., process a sequence of scene configuration files Some threads will perform parts from the current scene Other threads will be loading parts for the next scene A director thread/role will coordinate all those activities Some or all roles may bind to a specific thread or vice versa (HSHA) or threads may take turns playing roles (LF) Lab 3 will add distribution and service configuration Thread pools on different machines will be coordinated May leverage lab 2 thread architecture (think ahead) Support reconfiguration on-the-fly (states of operations) CSE 532: Lab 2 design overview From A Scene to a Play (HSHA version) 3 main activities Loading parts

Reciting lines Coordination Director [act ii scene 1b] [act ii scene 2a] Play and players As in lab 1 Thread pool (new) Polonius Ophelia After completing a part, return to pool Director (new) Recruits threads from pool to load and perform parts CSE 532: Lab 2 design overview P O P O P O P O P O P K

Q R G K Q G Q King Queen Rosencrantz Guildenstern From One Scene to the Next (LF version) When part ends Thread could go Director fetch its own work[act ii scene 1b] [act ii scene 2a] But needs to know King P K Polonius what to do next R Q Still want scenes P R Queen R G encapsulated Ophelia Director as a role

Threads could be self-directed I.e., look up next task (become the director) rather than wait for a cue CSE 532: Lab 2 design overview P R P R P R P K Q G Q Rosencrantz Guildenstern Key Design Considerations Whether to use HSHA or LF Think about what benefits and risks are involved E.g., design/debugging complexity vs. performance vs. How to relate short- and long-running activities E.g., loading a part from a file while other threads are reciting lines, synchronizing on condition variable, returning to the thread pool, taking on a new role,

Design decisions are again largely yours to make If the specification differs from what you think should be done, please ask about and/or suggest new ideas If its a reasonable alternative, Ill approve it in advance Take notes as you go, write up design in your lab report CSE 532: Lab 2 design overview Some Suggestions Evolve (and debug) your solution incrementally Start with as much of lab 1 as is working well Add and test thread pool semantics for a single scene Add and test director coordination for a single scene Add and test director coordination for multiple scenes Add and test advanced features (leader election, barriers to restrict migration of threads between scenes, etc.) Please start early so I can be of the most help in answering questions, discussing ideas, etc. Where to put the threads will require key choices Those choices may affect how rest of design evolves Some choices may need to be revisited (modularity helps) CSE 532: Lab 2 design overview

Recently Viewed Presentations

  • Plants - Mackay Education

    Plants - Mackay Education

    Vascular plants can be divided into 2 groups. Plants that produce seeds, which can further be divided into 2 groups. Angiosperms - Those that produce flowers. Gymnosperms - Those that do not produce flowers. Plants that do not produce seeds...
  • Chapter 9 Materiality and Risk

    Chapter 9 Materiality and Risk

    Chapter 9 Materiality and Risk Audit Risk CPA Presentation Outline Steps in Applying Materiality Risk in Auditing Planning Model Relationships Evaluating Results Step 1 in Applying Materiality Set preliminary judgment about materiality.
  • Title American Public Works Association (APWA)  Public agencies,

    Title American Public Works Association (APWA) Public agencies,

    Mission: Deliver resources, education, ... and provision of clean water and sanitation services are but a few examples. The way we design, maintain and operate these systems and provide services greatly influences the sustainability of our communities. ... Historic Fourth...
  • A3 PROBLEM SOLVING TOOL: Date:  Contact:  BACKGROUND /

    A3 PROBLEM SOLVING TOOL: Date: Contact: BACKGROUND /

    The right hand column of this A3 form embeds Deming's PDCA or PDSA cycle Plan: Solutions / Countermeasures Do: Action Plan Study and Act: Metrics / Follow-up Problem Solving Process Understand and verify the problem: * * A3 PROBLEM SOLVING...
  • Pedestrian Access Ways in Western Australia

    Pedestrian Access Ways in Western Australia

    Design Out Crime applies typically strong target-hardening, electronic surveillance and motion-sensitive or continuous night lighting, provide alternative pedestrian and cyclist routes where public paths have direct routes through. Terence Love & Paul Cozens (c)2008
  • Superficial cranial wounds and craniocerebral wounds Definition of

    Superficial cranial wounds and craniocerebral wounds Definition of

    Superficial cranial wounds and cranio-cerebral wounds Definition of wounds A wider concept then usual Communication with the interior of the cranial cavity can exist with an undamaged skin Venous anastomoses CSF fistula Wounds Unpenetrated Penetrated Perforant Unpenetrated wounds One or...
  • Safe Drinking Water Information System: Compliance Monitoring ...

    Safe Drinking Water Information System: Compliance Monitoring ...

    Safe Drinking Water Information System Compliance Monitoring Data & NextGen. Greg Fabian, PMP. to. ... the utilities, and consumers to obtain timely information for learning more about their drinking water and performance of drinking water systems for public health protection...
  • Chapter 1 Introduction to Telecommunications

    Chapter 1 Introduction to Telecommunications

    Chapter 1 Introduction to Telecommunications ... real enough time Responsive User friendly interface Ergonomics Flexibility and growth History Telegraph Telephone Computer Transistor Large-Scale Integrated Circuits Satellite Challenge Changing technology Legislative & regulation Changing ...