Giter VIP home page Giter VIP logo

shubh2-0 / deadlock-in-java Goto Github PK

View Code? Open in Web Editor NEW
12.0 1.0 0.0 15 KB

This repository showcases two projects that demonstrate the concept of deadlock in different scenarios. Project 1: Printer Scanner simulates resource deadlock. Project 2: Water Spices presents a practical example. Clone and explore to understand deadlock and resource management. Contributions are welcome.

Java 100.00%
deadlock example-project java practice-project thread

deadlock-in-java's Introduction

DEAD LOCK

image

๐Ÿ”’ A GitHub Repository showcasing projects on Deadlock scenarios

This repository contains two projects that demonstrate the concept of deadlock in different scenarios.

Projects

Example-1: Printer Scanner

๐Ÿ–จ๏ธ๐Ÿ”Ž

This project showcases a simulation of a deadlock scenario between a printer and a scanner. The code demonstrates how two processes can deadlock when they both require exclusive access to shared resources, resulting in a deadlock state. Through this example, you will gain a better understanding of how deadlock can occur and the importance of resource allocation and synchronization.

Example-2: Water Spices

๐Ÿ’ฆ๐ŸŒถ๏ธ

The second project focuses on a deadlock scenario related to water and spices. It presents a practical example where multiple threads attempt to access resources concurrently, leading to a potential deadlock situation. By exploring this example, you will learn about the importance of resource management and techniques to avoid or resolve deadlocks.

Getting Started

To get started with these projects, follow the instructions below:

  1. Clone this repository: git clone https://github.com/Shubh2-0/Deadlock-In-Java.git
  2. Navigate to the respective project directory: cd example-1 or cd example-2
  3. Follow the project-specific instructions provided in the README of each project directory to run the code and observe the deadlock scenarios.

Contributing

If you would like to contribute to this repository, feel free to submit pull requests. Contributions that enhance the understanding of deadlock scenarios or provide additional examples are highly appreciated.

๐Ÿ“ฌ Contact

If you want to contact me, you can reach me through below handles.

linkedinโ€ƒ mail-meโ€ƒ whatsapp-meโ€ƒ


Happy coding! ๐Ÿ˜„๐Ÿš€

deadlock-in-java's People

Contributors

shubh2-0 avatar

Stargazers

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