Skip to content

ronald-hove/deadlock-detection-in-c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deadlock Detection in C

C Language

Overview

This project provides an implementation of a deadlock detection algorithm in C. Deadlocks are a critical issue in concurrent systems where two or more processes are unable to proceed because each is waiting for the other to release resources. This project aims to detect such deadlocks to ensure the smooth execution of concurrent processes.

Features

  • Implementation of deadlock detection algorithms.
  • Sample test cases to demonstrate the detection of deadlocks.
  • Easy to understand and modify codebase.

Getting Started

Prerequisites

  • C compiler (e.g., GCC)
  • Git (for cloning the repository)

Installation

  1. Clone the repository:

    git clone https://github.com/ronald-hove/deadlock-detection-in-c.git
    cd deadlock-detection-in-c
  2. Compile the code:

    gcc -o deadlock_detection main.c
  3. Run the executable:

    ./deadlock_detection

Usage

Modify main.c to add or modify test cases for deadlock detection. The current implementation includes sample processes and resource allocation to demonstrate the functionality.

Contributing

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature-branch).
  3. Make your changes.
  4. Commit your changes (git commit -m 'Add new feature').
  5. Push to the branch (git push origin feature-branch).
  6. Create a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contact

Ronald Hove - LinkedIn - GitHub

Acknowledgments

  • Resources and inspiration from various online tutorials and articles.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published