Patent ID: 8561041

Claim:
A method comprising: accessing a graphical model, the graphical model including: a first subsystem block for implementing a first function when the graphical model executes, a second subsystem block for implementing a second function when the graphical model executes, and a concurrent control block for controlling concurrency in the graphical model, the concurrent control block being different from the first subsystem block and the second subsystem block, the concurrent control block including processor affinity information identifying information for concurrently processing the first subsystem block and the second subsystem block, the concurrent control block including a plurality of explicit function-call lines coupling the concurrent control block to the first subsystem block and the second subsystem block, and the accessing the graphical model being performed by a device; creating, based on an initiation of an execution of the graphical model, a first thread for executing the first subsystem block and a second thread for executing the second subsystem block, creating the first thread and the second thread being performed by the device; executing the first subsystem block via the first thread to implement the first function during the execution of the graphical model, executing the first subsystem block being performed by the device; executing the second subsystem via the second thread to implement the second function while executing the first subsystem block via the first thread, executing the second subsystem block being performed by the device; and generating a result based on executing the first function on the first thread and executing the second function on the second thread, generating the result being performed by the device.