Giter Site home page Giter Site logo

ice-cream-factory-problem's Introduction

Ice-Cream-Factory-Problem

OPERATING SYSTEM PROJECT REPORT

Group Members:

  • Ali Jafar
  • Rafay Ahmad
  • Ahmad Ali Ansari

Requirements:

  • COURSE: OPERATING SYSTEM
  • OS: LINUX 6.5.1
  • LANGUAGE: C

Objectives:

  • Create a system call to monitor thread activities

  • Integrate the system call into the ice cream factory project

  • Use synchronization to make sure threads function effectively

  • Effectively Handle Deadlocks

  • For Creating the system calls and configurating the kernal we followed the following link: [YOUTUBE LINK]: https://youtu.be/85qGRoaOkhQ?feature=shared


System Calls: The Project Consist of 5 System Calls:

  • Ice Cream Count
  • Number of Flavors
  • Out of Bounds
  • Revenue
  • Shop Closure

  • Ice Cream Count: Ice cream count system calls takes 4 arguments Prints the amount of flavors left at the end of the day
  • Number of Flavors: Number of Flavors prints the prompt when there are no more flavors available.
  • Out of Bounds: Check if the number of tickets provided by the user is within the set limits.
  • Revenue: Prints all the Statistics of the day on closure i.e number of customers, total revenue etc
  • Shop Closure: Indicates that the shop is now closed.

Synchronization and Deadlocks: We Implemented Semaphores to counter deadlocks and Synchronize all the threads to avoid race condition problem.

ice-cream-factory-problem's People

Contributors

s1lent18 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.