battlecode-server-2017 icon indicating copy to clipboard operation
battlecode-server-2017 copied to clipboard

Run competitor code in coroutines

Open kazimuth opened this issue 9 years ago • 0 comments

Basically, when user code is done running or blocked, instead of pausing the whole OS thread, we take a snapshot of the state of their code and then switch to running a different competitor's code.

See: Matthias Mann's coroutine library Kilim Commons JavaFlow For existing implementations of this concept.

kazimuth avatar Feb 21 '16 07:02 kazimuth