Hi I am writing a multithreads program.
I have a variable in the main thread,
can I use it at the child thread?
For example I have a count in main,
when the count reaches 10, I will execute some command at the child
is it OK?
Thanks a lot!
I have a variable in the main thread,
can I use it at the child thread?
For example I have a count in main,
when the count reaches 10, I will execute some command at the child
is it OK?
Thanks a lot!
Comment