Implement batch scheduler as a SYSTEMC process

# Explain what has been changed

# Explain why this change is being made

# Provide links to any relevant tickets, articles or other resources
This commit is contained in:
Thanh C. Tran
2017-03-03 03:32:18 +01:00
parent 725d7e9d19
commit 73eb716deb
2 changed files with 6 additions and 1 deletions

View File

@@ -68,8 +68,11 @@ void SMS::batchFormation()
void SMS::batchScheduler()
{
sc_time memClk = Configuration::getInstance().memSpec.clk;
while (true)
{
wait(memClk);
srand(time(NULL));
bool isSJF = (rand() % 100) < SJFprobability;
if (!existReadyBatch())