update readyqueue.cpp