Coder Social home page Coder Social logo

thealifaisal / simulation-of-icecreamshop Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 1.0 2.56 MB

[Operating System Course Project] Ice Cream Factory Problem - This program creates a simulation of an ice cream shop where multiple customers are entertained with preventing race condition. It is written in pure C only.

License: MIT License

C 100.00%
c-plus-plus pthreads deadlock operating-system linux linux-kernel systemcall semaphores syscall multithreading

simulation-of-icecreamshop's Introduction

------------------------------------------------------ Ice Cream Factory Problem --------------------------------------------------

COURSE: OPERATING SYSTEM
OS: LINUX 4.13.1
VERSION: v1.0
LANGUAGE: C

PROJECT OBJECTIVES:

  1. Create A System Call
  2. Use The System Call In The Project
  3. Thread Synchronization
  4. Deadlock Handling
  • Create A System Call [YOUTUBE TUTORIAL] https://www.youtube.com/watch?v=AP-tBd84vbM

    // A Manual Is Also Added To Help Around In Updating The Kernel.

  • System Call A Simple System Call Was Created For Printing The Activities Of A Thread In This Project.

    /[System Call Prototype]/ long sys_PrintStatement(char *buff ,int number);

    // Parameter 1: String To Be Printed // Parameter 2: Integer Passed To Be Printed // Returns 0

  • Makefile // Makefile For System Call Is Also Added.

  • Thread Synchronization Was Implemented With Semaphores.

  • Deadlock Handling Was Implemented With Semaphores.

  • Semaphores // A Manual Is Added To Help In Implementing Semaphores.

  • Threads // A Manual Is Added To Help In Implementing Threads.

  • [USER-LEVEL] Program // The Main Project Also Has Necessary Documentation.

  • Problem That May Occur // Deadlock May Occur When Number Of Threads To Be Created Is Greater Than The Limit Set In The Project // (Which Is 30 Threads For Project v1.0).

simulation-of-icecreamshop's People

Contributors

thealifaisal avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

ahmed-develops

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.