Skip to content

[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

Notifications You must be signed in to change notification settings

thealifaisal/Simulation-Of-IceCreamShop

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages