To install click the Add extension button. That's it.

The source code for the WIKI 2 extension is being checked by specialists of the Mozilla Foundation, Google, and Apple. You could also do it yourself at any point in time.

4,5
Kelly Slayton
Congratulations on this excellent venture… what a great idea!
Alexander Grigorievskiy
I use WIKI 2 every day and almost forgot how the original Wikipedia looks like.
Live Statistics
English Articles
Improved in 24 Hours
Added in 24 Hours
What we do. Every page goes through several hundred of perfecting techniques; in live mode. Quite the same Wikipedia. Just better.
.
Leo
Newton
Brights
Milds

Joins (concurrency library)

From Wikipedia, the free encyclopedia

Joins is an asynchronous concurrent computing API (Join-pattern) from Microsoft Research for the .NET Framework. It is based on join calculus and makes the concurrency constructs of the language available as a CLI assembly that any CLI compliant language can use.

YouTube Encyclopedic

  • 1/3
    Views:
    737
    98 092
    681 506
  • Joinable and Detached Threads
  • Lecture - 14 Query Processing and Optimization
  • Lecture -1 Introduction to Database Management System

Transcription

Overview

Joins can be used to express concurrency in an application using the joins pattern, usable both for multi-threaded applications as well as for event based distributed applications. The Joins API emulates declarative type-safe expression of synchronization patterns.

The Joins library emulates asynchronous and synchronous methods. An asynchronous method, in Cω and Joins parlance, is one which does not block the caller method, nor does it return any result, whereas a synchronous method blocks the caller method. In the Joins API, synchronous as well as asynchronous methods are implemented as generic delegates. Usage of generics provide type safety. For example, a set of synchronous and asynchronous method can be created and using them to create an object that implements the pattern, as:

public class JoinDemo
{
    public readonly Asynchronous.Channel<int> Queue;
    public readonly Asynchronous.Channel<string> Send;
    public readonly Synchronous<int>.Channel Retrieve; 
    private Join joinPattern = Join.Create();
    
    public JoinDemo()
    {
        joinPattern.Initialize(out Queue);
        joinPattern.Initialize(out Send);
        joinPattern.Initialize(out Retrieve);
    }
}

When asynchronous methods are called, the parameters are put in a channel, which is a queue managed by the Joins runtime. The method can optionally start a new thread to process the parameters in the background, and return the results. When the corresponding synchronous method is called the parameter is returned for further processing. If no parameter is present in the queue when the synchronous method is called, the caller stalls. The Joins runtime schedules which parameter is returned based on whether it is ready.

The synchronization pattern of the methods are defined by joins patterns, which describes what happens when a set of channels are invoked. For example, what happens when Send and Retrieve are called together can be different than Send and Queue.

public void SetPatterns()
{
    join.When(Send).And(Retrieve).Do(s => s);
    join.When(Queue).And(Retrieve).Do(n => n.ToString());
    join.When(Send).And(Queue).And(Retrieve).Do(s => 
                                                {
                                                    Send(s);
                                                    return Retrieve();
                                                });
}

References

External links


This page was last edited on 25 July 2020, at 10:25
Basis of this page is in Wikipedia. Text is available under the CC BY-SA 3.0 Unported License. Non-text media are available under their specified licenses. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc. WIKI 2 is an independent company and has no affiliation with Wikimedia Foundation.