add multi-thread support to the runqueue