Giter Club home page Giter Club logo

project-so's Introduction

Project-SO

Project for operating systems class

Grade

Final grade of the project was 99% out of 100%

Intro

This project is an offload simulator for the class of Operating systems.

How to run

Download

Download files to where you want to run the project.

Compilation

To compile the project, open a console and navigate to the project folder, and then run the command make all to compile the entire project. There will be two executable files which are both executables needed.

Running

To run the project, firstly run ./offload_simulator {config_name}, providing a config file (also available in the project files), to use the already supplied configuration file the command ./offload_simulator config.txt. The server should start, load the configuration and create all processes and threads required by it.
The second part of the project is the ./mobile_node {# of requests to generate} {interval between requests (ms)} {MIPS} {maximum execution time}. This will start a mobile node, which will send requests to the Offload Simulator which will process them.

Note: for the project's intermidiate goal, the connection between mobile nodes and the offload simulator will not be done. Mobile node will only print it's inputs, and the offload simulator will only start the processes and threads required later.

Signals

SIGINT
  • System Manager - Logs "Command Received" and Starts shutdown procedure
SIGTSTP
  • System Manager - Logs "Command Received" and prints out statistics
SIGUSR1
  • Maintenance Manager - Starts Shutdown Procedure
  • System Manager - Starts Shutdown Procedure
  • Task Manager - Starts Shutdown Procedure
  • Edge Server - Starts Shutdown Procedure
  • Monitor - Starts Shutdown Procedure

How the signals are sent:
Task Manager ==(kill)=> System Manager
System Manager ==(kill)=> Maintenance Manager
System Manager ==(kill)=> Task Manager
System Manager ==(kill)=> Monitor
Task Manager ==(kill)=> Edge Server

SIGUSR2
  • System Manager - Print out statistics

How the signals are sent:
Task Manager ==(kill)=> System Manager

project-so's People

Contributors

jmsmonteiro avatar

Watchers

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