The pdevssim functions can be used to simulate large multi-component models on small parallel computers.
The pdevssim functions can be used to simulate large multi-component models on small parallel computers. This parallel simulator will execute simultaneous events in parallel. This means that state transition functions are executed in parallel, output functions are executed in parallel, garbage collection is done in parallel, and event routing is done in parallel.
There are four constraints that parallel execution places on a model. These are
It must be safe to execute model state transition in parallel and output functions in parallel. If you designed your model's properly, this isn't a problem (because models don't share data except through input and output ports). However, in the rare instance that you have some unsafe sharing going on, it needs to be fixed before the parallel simulator is used. The event routing method for your network model must be reentrant. Because events are routed in parallel, the event routing method can be called simutaneously by multiple threads. The coupled models that come with adevs are safe for use with the parallel simulator. Custom models will need to make sure that the event routing method is thread safe (ideally, by being reentrant). Garbage collection methods must be able to execute in parallel. Your model is not a dynamic structure model. There is no support for parallel simulation of dynamic structure models.
Alphabetic index HTML hierarchy of classes or Java