Patent ID: 8695000

Claim:
A method comprising: analyzing, by a device, a model of a system to identify at least one resource accessed by at least two concurrently executing tasks during an execution of the model, each task, of the at least two concurrently executing tasks, being represented by one or more blocks included in the model, the at least one resource representing a grouped memory location for storing data associated with the at least two concurrently executing tasks, and the at least one resource being accessed by at least one of the at least two concurrently executing tasks at least twice during the execution of the mode; receiving, via a user interface, an indication of an attribute related to the at least two concurrently executing tasks, a hardware target, or a real-time operating system; determining, based on the indication and by the device, a suggested protection mechanism; providing information identifying the suggested protection mechanism for display via the user interface; detecting a selection of a protection mechanism via the user interface; changing, by the device and for each task of the at least two concurrently executing tasks, a reference to the at least one resource to a reference to a central resource for implementing the protection mechanism, provided at a model level rather than at a local level of the blocks in the model, to prevent at least one type of concurrent access of the at least one resource by the at least two concurrently executing tasks during the execution of the model; and executing, by the device and after changing the reference, the model, the at least one type of the concurrent access of the at least one resource not occurring during the execution of the model based on changing the reference.