in reply to Threads, processes and sharing variables
"I need to have shared variables between all new threads ...
Why not just fork processes instead? Sounds like you want to perform Interprocess Communication and that's what forking is good at.
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
|
|---|