I am supposed to implement a primitive multithreaded server that starts a new thread for each connection.
It should be possible that one of the thread gets the message to shut down the server.
Is it possible to notify the parent thread from one of the child threads to stop accepting new connections and shut the server down?
There are several ways for inter thread communication :