wajam/nrv — pull request #1 by coderunner (2012-06-30 01:11:40+00:00)
Title: [EDGE] Multi-Actor Switchboard

Changes to enable multiple execution in parallel.

I cleaned some unit tests along the way and fix a few bugs.

I did not use a reconciliation map per Executor actor because each of them would have to check for timeout which would result in useless context switch and since this map should contain only a few items at a time, having a single one is not a problem.

Also, having a single map for reconciliation allows for any Resolver (e.g. random as in Edge) scheme since the reconciliation is done independently of the resolver's logic. Execution of the next() block of code is determined by the resolver so that the same resolved token always get executed by the same Actor and thus serialized.