C C T B H P N

Lecture #17 - Asynchronous Systems

Web Resources:

UML XML, HTML Code Project Microsoft Developer's Network DevelopMentor XML Sells Brothers Windows Developer's Journal WindowsClient.net DotNetJunkies dotnet quickstart tutorials C# Corner Mono Project Performance Counters

Content:

This lecture is concerned with Asynchronous Systems.
  1. The Syllabus describes topics to be covered, reading material for you to digest before coming to class, and due dates for the assigned projects.
  2. Projects:

    Project #3, Project #4
    Project3HelpF2018 Project4HelpF2018
  3. Asynchronous Communication

    Asynchronous Systems Presentation, pptx, BasicNetThreadDemos Queued Messages
    Deposit messages in a queue for later retrieval by another thread. WPF Thread Demos
    Illustrates use of (1) threads, and (2) asynch awaits to implement long running activities and displaying results in a WPF window. Abstract Task Model
    Illustrates basic use of C# Tasks. Basic Tasks
    Explores asynchronous processing, using Tasks, with combinations of inputs and outputs, and also use of continuations. async await Pattern
    Shows how to use asynch await emphasizing the affect of await's continuation. Asynchronous Calls Demo
    Use delegates asynchronous BeginInvoke and EndInvoke methods. Form with BeginInvoke
    Use the same asynchronous delegate, but now dequeue with a UI thread. ThreadPool Demo
    Dispatch work items to members of a thread pool. Form's BackgroundWorker
    The Form provided BackgroundWorker wraps the use of a ThreadPool to simplify a developer's implementation. You can use the BackgroundWorker with WPF, accorting to this blog post
  4. Queueing

  5. Another interesting way of implementing message passing:
    Cell-based message passing, Blog Discussion
    This demo grew out of the prototype linked below. ADAM-Wrapper-Prototype, updated with Comm component
    All message handlers, e.g., virtually all parts, inherit from AWrapper, except for UIs that already inherit implementation from Form. UIs need to create a message handler that does inherit from AWrapper.
  6. Peer-to-Peer Prototype
    Illustrates use of bilateral remoting with SingleCall activation to establish Peer-To-Peer communication.
  7. Software Structure, pptx
  8. Software Structure Research, pptx
  9. Software Design, ppt