Last one to pick the matchstick loses the game.
In this app, you have to pick matchsticks. Whoever picks the last matchstick loses the game. Multithreading is achieved with synchronization so that only one player is allowed to pick the matchstick(s) while avoiding deadlock! Must try. The code can handle any exception and App Not Responding errors without compromising the user experience.