Comments (3)
Make the BUG part of code clearer
Bug part starts at line 244 in mlfq.py
# change priority to high priority
# reset number of ticks left for all jobs (just for lower jobs?)
# add to highest run queue (if not doing I/O)
for j in range(numJobs):
# print('-> Boost %d (timeLeft %d)' % (j, job[j]['timeLeft']))
if job[j]['timeLeft'] > 0:
# print('-> FinalBoost %d (timeLeft %d)' % (j, job[j]['timeLeft']))
job[j]['currPri'] = hiQueue
#job[j]['ticksLeft'] = allotment[hiQueue]
job[j]['ticksLeft'] = quantum[hiQueue]
#revise here
# print('BOOST END: QUEUES look like:', queue)
from ostep-homework.
There is a PR that fixes this. #18
from ostep-homework.
There is a PR that fixes this. #18
THANKS!
from ostep-homework.
Related Issues (20)
- Chapter 44 ssd simulator - is it doing correct erase counts for direct mapping?
- Sisop
- The python code does not support for Python3. HOT 2
- when i execute process-run.py in shell, there is a problem. HOT 1
- Condition Variable - Incorrect Locking in main-two-cvs-while?
- Seed has no effect HOT 1
- Possible bug in segmentation simulator
- mlfq.py bug HOT 2
- Wrong argument name for ffs.py or typo in the book
- Possible bug in raid.py
- Does PFN in vm-paging is fault? HOT 1
- In "Why? Motivating The API", some problems
- Operating system hemework
- Can I complete my homework on the Win platform? HOT 2
- Questions about homework HOT 1
- Possible bug with `test` instruction
- Questions about running these programs HOT 1
- vm-mechanism: conflicting definitions of 'address space' HOT 1
- chapter 6 - Direct Execution homework: What is a good enough measurement?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ostep-homework.