schedule begin. record_current_task_pcb function need modify