Dining_Philosophers/README.md

20 lines
662 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# Dining Philosophers (Java)
## Projektbeschreibung
Dieses Projekt implementiert das klassische **Dining-Philosophers-Problem** in Java.
Es zeigt, wie mehrere Threads gleichzeitig arbeiten und dabei über **Locks und Conditions** synchronisiert werden, um Deadlocks zu vermeiden.
## Projektstruktur
- `IPhilosopher.java` Interface für Philosophen
- `Philosopher.java` Implementierung eines Philosophen als Thread
- `PhilosopherExperiment.java` Startklasse für die Simulation
## Technologien
- Java (Threads, Locks, Conditions)
- Maven (Build- und Projektverwaltung)
## Ausführen
1. Mit Maven bauen:
```bash
mvn clean install