Multi-threaded programming exercise
Class homework of parallel programming in Java:
Q1: Finds all the prime numbers between 0 and a given number. The user provides the number and can control the max of threads that alive.
Q2: Illustration of the dining philosophers problem with a simple GUI, and uses 5 threads, one for every philosopher.