TeamViewer interview question

Live coding about a multi-thread application.