I am trying to declare and initialize one extern variable in my Main process . How to pass the data and use it into a thread declared within same heap space ?
I tried using one instance variable of the class containing thread for the same purpose . But ironically the data is only visible in the main process scope and not in the thread scope .
Please help .