Model-View-Controller architecture and multithreading ...?
Hi there,
is there an "recommendation", where to put threads of a multithreading application, if one goes with the mvc architecture?
For example one wants to simulate a road junction. Each traffic light of the road consists of a model, which stores the data
and a view, which displays the data.
Now if i want to let each traffic light run in a separate thread, should i create then the threads for each traffic light
in the Application class (the superordinate form), and those threads would run the traffic lights (each would start one),
or should i for example create the thread for a traffic light in its constructor, so the thread would be quasi automaticly
in the traffic lights...?
Are there any other options?
Are the two, that i thought of equal?
thanks for any answers in advance,
Castell
|