Snippets tagged message passing

  • Object oriented as it was supposed to be ?

    The snippet shows implementing object orientation using mail box processor. In this context object orientation have this simple definition: "Objects acts on message passing". The objects created this way are thread safe too :). Not sure how much practical this would be in todays context where object oriented has gone the wrong way.

    26 people like this

    Posted: 13 years ago by Ankur Dhama

  • Cancellable agent

    The snippet implements a wrapper for standard F# agent that can be cancelled using the IDisposable interface. This makes it possible to use the agent locally (e.g. inside asynchronous workflow). When it is no longer needed, the agent's body is cancelled.

    11 people like this

    Posted: 12 years ago by Tomas Petricek

  • The dining philosophers

    The dining philosophers problem implemented using a waiter.

    4 people like this

    Posted: 12 years ago by Alex Muscar

  • Throttling agent

    Agent that can be used for controlling the number of concurrently executing asynchronous workflows. The agent runs a specified number of operations concurrently and queues remaining pending requests. The queued work items are started as soon as one of the previous items completes.

    20 people like this

    Posted: 12 years ago by Tomas Petricek

  • Agent Based Scheduler

    An agent based scheduler, can be sent a single schedule message (ScheduleOnce) and multiple schedule message (Schedule). The schedule messages comprise of a function to receive the message, the message, an initial TimeSpan before the message is scheduled, and another timespan for the schedule repeat. Check out my blog below for more details: http://bit.ly/mK4prb

    8 people like this

    Posted: 12 years ago by 7sharp9

  • Message Passing: Ping Pong

    Message Passing sample inspired by Erlang Ping Pong from here: http://erlang.org/doc/getting_started/conc_prog.html

    3 people like this

    Posted: 7 years ago by Fabio Galuppo