Welcome to the homepage of MC# language! MC# Code examples
MC# Project
Home page 
MC# language 
Documentation 
Publications 
 Code examples 
FAQ 

 
Downloads
MC# Programming 
System
 

 
Related links
Parallel C# 
Polyphonic C# 
SKIF Project 

 
Contacts
 Contacts 


Mono powered

Microsoft .Net powered


 
   [ Русская версия страницы ]    [ Version for printing ]



Choose the type of examples you're interested in:
  Training programs
  Numeric problems
  Graphic algorithms



Training programs
Program: Fibonacci numbers
MC# source: Fib.mcs
Description: This example calculates the n-th Fibonacci number

Program: Fibonacci numbers (2)
MC# source: FibAdv.mcs
Description: Another one example of the n-th Fibonacci number calculation

Program: SumBinTree
MC# source: SumBinTree.mcs
Description: This example shows how to sum the values of binary tree nodes in parallel

Program: Eratosthenes sieve
MC# source: CSieve.mcs
Description: This example shows how to use bidirectional channels in MC#

Program: LineSum
MC# source: LineSum.mcs
Description: This program shows how to calculate the partial sums in parallel

Program: Creation of BDChannels in Main function
MC# source: BDTest.mcs
Description: This example demostrates that we can create bidirectional channels
in any function and pass them to the different movable-methods

Program: Activities Demo
MC# source: ActivityDemo.mcs
Description: This example shows how to create and use Activities in MC#

Program: Multipliers Demo
MC# source: MultipliersDemo.mcs
Description: This example shows how to create and use Multipliers in MC#

Program: Producer-consumer demo
MC# source: BDTest.mcs
Description: This example shows how to use schemes like producer/consumer with BDChannels

Program: Google search service demo
MC# source: GoogleSearch.mcs
Google library: GoogleSearchService.dll
Google library interface: GoogleSearchService.cs
Module that searches links in HTML document: LinksExtractor.cs
Makefile for compilation: Makefile
Description: This example shows:
 - the possibility of DLL-libraries usage in MC# programs;
 - the usage of Web-services in MC# programs;
 - the parallel search of information in Internet through the requests to Google Web service, and parallel data processing of requested information;
 - as the result of execution this program will print the names of all FBI branches in USA (all the information is taken from site http://www.fbi.gov).

Numeric problems
Program: StreamLine
MC# source: streamline.mcs
Description: This program shows how use ArrayWrappers to save serialization/deserialization time

Program: Fft
MC# source: Fft.mcs
Distributed C# source: Fft.cs
Data file generator: input.cs
Description: Fast Fourier transformation

Graphic algorithms (currently work only on Microsoft .Net platforms)
Program: Life (Form)
MC# source: Life.mcs
Distributed C# source: Life.cs
Description: "Life" game of Conway

Program: Mandelbrot (Form)
MC# source: ComputeMandelbrotForm.mcs
Distributed C# source: ComputeMandelbrotForm.cs
Description: Program, that calculates the Mandelbrot set

Program: StreamLine (Form)
MC# source: Unavailable
Distributed C# source: StreamlinePAR_distributed_form.cs
Description: This program shows how use ArrayWrappers to save serialization/deserialization time


Весь Переславль