D
David Troy
I have two threads:
- thread A will perform a long running I/O operation and update some
variables in memory based on reading from the I/O
- thread B should be able to get read-only access to thread A's
variable's at any given time
What is the best way to do this? I thought I could define a
datastructure in Thread A and pass it to thread B, but I'm not sure
how to get that through the ThreadStart method and have it be defined.
Any help appreciated!
Thanks,
Dave
- thread A will perform a long running I/O operation and update some
variables in memory based on reading from the I/O
- thread B should be able to get read-only access to thread A's
variable's at any given time
What is the best way to do this? I thought I could define a
datastructure in Thread A and pass it to thread B, but I'm not sure
how to get that through the ThreadStart method and have it be defined.
Any help appreciated!
Thanks,
Dave