I\'m working on a multi thread application in which there is a main and a secondary thread. Secondary thread has to take input by the user and giving the result to the main