Coder Social home page Coder Social logo

cact's Introduction

CACT

A simple implementation of actor model in C, allowing only one system to work at the same time.

Example programs

n | ./silnia

Computes n! using the actor model in which actors calculate their part and then send the message with calculated data to the next actor.

./macierz

Runs a programme which accepts as input 2 integers a, b which represent dimensions of a matrix and after that 2ab integers representing consecutive values of matrix cells and times that simulate the time taken to compute certain values. For example:

2 3
4 1 2 1 7 1
10 20 30 40 50 60

Represents a matrix

  _ _ _ _ _ _ _   
| 4  | 2  | 7  |  
| 10 | 30 | 50 |  
  _ _ _ _ _ _ _

The programme after 1 + 1 + 1 ms will print 13 (4+2+7), and after next 20 + 40 + 60 ms will print 90 (10 + 30 + 50).

This example calculates row sums of given matrix by using b actors that send messeges with prefix sums to each other.

cact's People

Contributors

kozakusek avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.