Domanda di colloquio di Goldman Sachs

How to pass variable from one thread to other?