Week 9b - Message-Passing Communications

Web Resourses:

Content:

This lecture is concerned with Message-passing Communication 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 #4 is due at the end of next week.
  3. Interactive Help with Project #4

    • Project #4 structure
    • Message-passing
    • Client UI
    • Other problems?
  4. 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

  5. Peer-to-Peer communication Prototype
    Illustrates use of one-way message passing to establish Peer-To-Peer communication.