1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Model-View-Controller architecture and multithreading ...?

Discussion in 'C#' started by Castell, Sep 1, 2010.

  1. Castell

    Castell New Member

    Joined:
    Sep 1, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    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
     

Share This Page