91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 20KB
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發布日期: 2021-05-13
  • 語言: 其他
  • 標簽:

資源簡介

使用qt寫的可視化模擬進程調度程序,具體效果可以到我的博客看gif圖https://blog.csdn.net/qq_42131061/article/details/105343039 在這篇博文下面有代碼解釋文檔可以下載 注意事項 1.代碼中的注釋可能會出現亂碼,請切換一下編輯器的編碼 2.程序在ubuntu18.04上開發,開發環境:QtCreator + qt 5.12.2 + gcc x64 3.未實現時間片輪轉調度(RR) 4.有些小bug會導致奔潰,大家可以找一找 5.GUI有點丑,希望大家不介意 5.因為qt是跨平臺的,所以理論上在windows平臺也可以運行,但是應該稍微改一些配置和代碼

資源截圖

代碼片段和文件信息

#include?“basequeue.h“

baseQueue::baseQueue(QColor?borderColorQSize?sizeint?penWidth)
{
????this->borderColor?=?borderColor;
????this->size?=?size;
????this->penWidth?=?penWidth;
????for?(int?i=0;i(MAX_PROCESS_NUMBER);i++)?{
????????occupiedLocation[i]?=?false;
????}
}



bool?&baseQueue::operator[](int?index)
{
????return?occupiedLocation[index];
}

QSize?baseQueue::getSize()?const
{
????return?size;
}

void?baseQueue::setSize(const?QSize?&value)
{
????size?=?value;
}

QPoint?baseQueue::getCenterPoint()?const
{
????return?centerPoint;
}

void?baseQueue::setCenterPoint(const?QPoint?&value)
{
????centerPoint?=?value;
}

QColor?baseQueue::getBorderColor()?const
{
????return?borderColor;
}

void?baseQueue::setBorderColor(const?QColor?&value)
{
????borderColor?=?value;
}

QRectF?baseQueue::boundingRect()?const
{
????return?QRectF(00size.width()size.height());
}

void?baseQueue::paint(QPainter?*painter?const?QstyleOptionGraphicsItem?*?QWidget?*)
{
????painter->setPen(QPen(borderColorpenWidth));
????painter->drawRect(boundingRect());
}






?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2019-12-03?08:35??ProcessScheduling\
?????文件???????24027??2019-11-29?02:03??ProcessScheduling\ProcessScheduling.pro.user.9ee448d
?????文件???????24387??2019-12-03?08:35??ProcessScheduling\ProcessScheduling.pro.user
?????文件?????????307??2019-10-23?14:46??ProcessScheduling\customescene.h
?????文件??????????94??2019-10-24?13:27??ProcessScheduling\constants.cpp
?????文件?????????190??2019-10-23?13:35??ProcessScheduling\customview.h
?????文件?????????410??2019-10-24?14:50??ProcessScheduling\readyqueue.h
?????文件?????????605??2019-10-24?06:35??ProcessScheduling\mainwindow.ui
?????文件??????????93??2019-10-21?09:14??ProcessScheduling\customview.cpp
?????文件?????????393??2019-10-24?13:32??ProcessScheduling\constants.h
?????文件?????????314??2019-10-24?14:21??ProcessScheduling\main.cpp
?????文件?????????325??2019-10-24?14:37??ProcessScheduling\blockingqueue.h
?????文件????????1077??2019-10-24?14:37??ProcessScheduling\basequeue.cpp
?????文件?????????384??2019-10-24?15:39??ProcessScheduling\customescene.cpp
?????文件????????1126??2019-10-24?16:06??ProcessScheduling\blockingqueue.cpp
?????文件????????1607??2019-10-24?08:06??ProcessScheduling\ProcessScheduling.pro
?????文件????????1763??2019-10-24?15:03??ProcessScheduling\readyqueue.cpp
?????文件????????2665??2019-10-24?16:07??ProcessScheduling\process.cpp
?????文件????????1077??2019-11-29?01:12??ProcessScheduling\cpu.h
?????文件????????1993??2019-11-29?01:26??ProcessScheduling\mainwindow.h
?????文件????????2580??2019-11-29?01:43??ProcessScheduling\cpu.cpp
?????文件????????1879??2019-11-29?01:44??ProcessScheduling\basequeue.h
?????文件????????1653??2019-11-29?01:44??ProcessScheduling\process.h
?????文件????????7491??2019-11-29?02:02??ProcessScheduling\mainwindow.cpp

評論

共有 條評論