7 Sep
2007
7 Sep
'07
9:21 a.m.
Hello, I have to instantiate a large collection (1200) of asynchronous statemachines which obviously can not have their own thread of execution. My basic idea was to spawn a collection of threads with 1 scheduler per thread (inline with the tutorial) and then create several processors ie statemachines per scheduler. This seems to work however there's 1 aspect which I can not solve. When queueing an event I have to distribute now the events to the right async statemachine based on a simple id which each event carries. Problem seems the access to the statemachine (I need the id obviously) since I only have a (collection of) processor handles. How can this be done? Kind regards, John.