Giter Club home page Giter Club logo

diseaseaggregator's Introduction

diseaseAggregator

project in c/cpp for Systems Programming course in universiry for processes

Script create_infiles.h

execution instructions: $ ./create_infiles.sh diseasesFile.txt countriesFile.txt


The script is used to create the input files required for the execution of the project.

Main project

compilation instructions: $ make execution instructions: $ ./diseaseAggregator โ€“w -b -i <input_dir>


This project is an extesion of the diseaseMonitor project (https://github.com/mar-kan/diseaseMonitor) with about the same functionality but processes were added to this version, using forks.

2 executionables were created, diseaseAggregatorMain, which starts the program, and WorkerMain, which is called through the child processes of the diseaseAggregator.

When the program starts, all input files are divided between the workers (processes) that are created. When the process is over and the data structures full, the user may input a command from the menu outputed and the aggregator sends the command to a worker. The worker searches its records and sends the results back to the aggregator that finally prints it.


Communication

The communication between the aggregator and the workers is succeeded by messages in the following format:

    2 bytes for size of its name
    its name
    ready! when the writing is done to show the change of the state of the workers.
    
    When a worker hasn't founnd any results for a query, it writes "no_result".

diseaseaggregator's People

Contributors

mar-kan avatar

Stargazers

 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.