lightweight cooperative scheduler