I have a application, where I am writing an plugin.
In the code for the Plugin, I create a new thread which takes input from the console.
THe application is a console application.
And the application itself also takes input from the console.
Now, I want my thread to take input from the console along with the application, how do I achieve it?

THe code runs fine on Windows, but on Linux the input always goes to the application thread and not mine?