I am writing a quasi-MVC-style application with a GUI, a controller and a backend that deals with all calculations and data accessing and stuff. This happened rather accidentally and I have no experience whatsoever with MVC, but want to understand it more thoroughly.
So, the model has to do some lengthy calculations. How would this be handled in a traditional MVC-approach? My approach is to spawn the long calculation in its own thread (to not block the GUI) and have the controller query it periodically about its current status to update the GUI. In another case, the model is playing and recording some audio. Does this belong in the model? Should the model actively tell the controller what it is doing or should it remain passive and be queried periodically?
Thank you for your comments!