add scheduling queue
fix conflicts in threadsalive.c