G
Guest
Hi,
I'm running into a thread problem. The context is a distributed application
constituted of a controller and several satellites performing a given job.
In the controller application, I have to send command requests over the
network to a list of satellites. In order to parallelize request sending, I'd
like to have each request (one per satellite) sent by a single Thread. The
problem is how would a given thread know which satellite he should be taking
care of since it seems like I can't pass parameters to a thread.
My threads can have access to the list (a Hashtable actually) of satellites,
but how would a given thread know exactly which one it should be taking care
of ? I would need, at least, to pass an index to each thread...
Any idea or comment is welcome.
Thanks in advance.
Arno
I'm running into a thread problem. The context is a distributed application
constituted of a controller and several satellites performing a given job.
In the controller application, I have to send command requests over the
network to a list of satellites. In order to parallelize request sending, I'd
like to have each request (one per satellite) sent by a single Thread. The
problem is how would a given thread know which satellite he should be taking
care of since it seems like I can't pass parameters to a thread.
My threads can have access to the list (a Hashtable actually) of satellites,
but how would a given thread know exactly which one it should be taking care
of ? I would need, at least, to pass an index to each thread...
Any idea or comment is welcome.
Thanks in advance.
Arno