Skip to content

A Banker's Algorithm simulation with an interactive UI, allowing users to allocate and release resources while ensuring system safety in real time.

Notifications You must be signed in to change notification settings

SaiNikhil0904/Bankers-Algorithm

 
 

Repository files navigation

Bankers-Algorithm

Overview:

The Banker's Algorithm is a resource allocation and deadlock avoidance algorithm used in operating systems. It ensures that processes in a system won't end up in a deadlock state by checking whether granting a resource request will leave the system in a safe state or not. In this project, we'll create a simulation of the Banker's Algorithm where users can interactively allocate and release resources to processes and see how the algorithm determines whether the system is in a safe state or not.

Features:

  • Interactive UI: Users can interact with the simulation by allocating and releasing resources to processes.
  • Resource Allocation: Users can allocate resources to processes, and the system will check if the allocation is safe or not.
  • Resource Release: Users can release resources from processes, and the system will reevaluate the state to see if it's still safe.
  • Safe State Indicator: The system will indicate whether the current state is safe or not after each allocation or release action.

Tech Stack:

  • HTML: For structuring the web page.
  • CSS: For styling the UI elements and making the simulation visually appealing.
  • JavaScript: For implementing the logic of the Banker's Algorithm, handling user interactions, and updating the UI dynamically.

About

A Banker's Algorithm simulation with an interactive UI, allowing users to allocate and release resources while ensuring system safety in real time.

Topics

Resources

Stars

Watchers

Forks

Languages

  • JavaScript 50.6%
  • CSS 32.3%
  • HTML 16.2%
  • PHP 0.9%