GithubHelp home page GithubHelp logo

justcodeandchill / processstimulate Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 48 KB

This is a simple kernel in O.S.

Java 100.00%
computer-science-algorithms operating-system java programming threads

processstimulate's Introduction

Processstimulate

Prequiste

Java environment. You can download the JDK at https://www.oracle.com/java/technologies/javase-downloads.html Your Favorite Java IDE. Recommended using Eclipse at https://www.eclipse.org/downloads/

Installing

To get this project set up on your machine, please clone the project or download it as .ZIP file at https://github.com/JustCodeandChill/Processstimulate.git

Running

Open the src folder with your Java IDE and run the "Main.java" file

Problem statement:

Simulate the following process of the kernel of an O.S :

  • Dispatching, scheduling transitioning
  • Dispatching following a round robin technique and priority
  • Change the status of the process accordingly

Assumption

  • All processes are arrived at time 0, before being fed into the system.
  • The OS is fairly simple: It will not deal with I/O process that require user interaction, time delay. Thus, no I/O process will appear in the system. The provided process is simple, it just prints out some text.
  • The system in question 1 only demonstrate a simple interacting flow between components of the operating system depends on the methods (Round Robin or Priority Queue).

Main functionalities

In 4 classes: OperatingSystem.java, ProcessWareHouse.java, Scheduler.java, Dispatcher.java, they have the start() method that will be called to do that component specific missions (storing, scheduling, picking process). The CPU.java has the toExecute() method that execute the given process.

Basic Structure

There are 4 main components in this stimulation namely ProcessWareHouse (in ProcessWareHouse.java โ€“ similar term used: PWH), Scheduler (in Scheduler.java), Dispatcher (in Dispatcher.java) and CPU (in CPU.java). They interact in Operating System class (in OperatingSystem.java). Each has different purposes and interleave with each other.

Datagram

image

Author

Bao Tran

processstimulate's People

Contributors

justcodeandchill avatar

Watchers

 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.