GithubHelp home page GithubHelp logo

load-balancer's Introduction

Load Balancer

Load Balancer is an educational project for the Operating System course held by Dr. Mahdi Kargahi. This project aims to filter files content and to sort them ascending/descending by the field attribute.

How does it work?

The primary process is the LoadBalancer which separates input files into workers' processes. Then Worker processes filter files content by the indicated attributes and send them to the Presenter process. The presenter sort contents and merge them to the last filtered data. Pipes specify all the interconnections and message passing. (Unnamed pipes between LoadBalancer and workers, and Named pipe between workers and presenter).

How to run it?

Run the following commands in the root directory of each process [LoadBalancer/Worker/Presenter]

mkdir build
cd build
cmake ..
make
./[executable_file]

Inputs

After running LoadBalancer executable file your input should have the following format:

(<field name> = <corresponding filtering value> - )*( <sorting value = ascend/descend> - )? prc_cnt = n – dir = <relative dataset address> 

All the input files contents should be like the following sample:

brand model ram hdd price 
apple pro 16 512 30
apple pro 16 246 26

load-balancer's People

Contributors

moridi avatar

Stargazers

Hassan Najm avatar

Watchers

James Cloos 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.