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.
- Implementation of deadlock detection algorithms.
- Sample test cases to demonstrate the detection of deadlocks.
- Easy to understand and modify codebase.
- C compiler (e.g., GCC)
- Git (for cloning the repository)
-
Clone the repository:
git clone https://github.com/ronald-hove/deadlock-detection-in-c.git cd deadlock-detection-in-c
-
Compile the code:
gcc -o deadlock_detection main.c
-
Run the executable:
./deadlock_detection
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.
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch
). - Make your changes.
- Commit your changes (
git commit -m 'Add new feature'
). - Push to the branch (
git push origin feature-branch
). - Create a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
Ronald Hove - LinkedIn - GitHub
- Resources and inspiration from various online tutorials and articles.