bool insert_info=false;//查看是否已经插入进去Р for(list<pcbobj>::iterator it=wait_PCB_list.begin();it!=wait_PCB_list.end();it++){Р if(new_obj->getId()>(*it)->getId()){Р wait_PCB_list.insert(it,new_obj);Р new_obj->setStatus(Wait);Р insert_info=true;Р break;Р }Р }Р if(!insert_info){Р wait_PCB_list.push_back(new_obj);Р new_obj->setStatus(Wait);Р }Р?}Р}Рvoid WaitManager::remove(string name){Р?if(empty()){Р cout<<"没有进程在就绪队列中"<<endl;Р?}elseР?{Р bool remove_info=false;Р for(list<pcbobj>::iterator it=wait_PCB_list.begin();it!=wait_PCB_list.end();it++){Р if((*it)->getName() == name){Р wait_PCB_list.erase(it);Р remove_info=true;Р break;Р }Р }Р if(!remove_info){Р cout<<name<<"进程"<<"不存在"<<endl;Р }Р?}Р}Рvoid WaitManager::remove(){Р?if(empty()){Р cout<<"没有就绪进程在队列中"<<endl;Р?}elseР?{Р wait_PCB_list.pop_front();Р?}