annakaringal / os_simulator Goto Github PK
View Code? Open in Web Editor NEWSimulates how an operating system manages processes
Simulates how an operating system manages processes
Can for/if on line 121-122 be more streamlined/pythonic?
for dev in self.all_devices:
if dev.is_device_name(self.lastcmd.lower()):
Make this error instead.
Is there a better (more efficient) way to print all processes in order than sorting list first?
How to make the if not args:
statements in each do_*
method more DRY? Is this possible?
lines 153-162 in commands.py:
else: # INTERRUPT (uppercase input)
# Process at head of device queue complete
# Remove from device queue, move to back of ready queue
try:
proc = dev.dequeue()
print "%s completed %s" %(dev, proc)
proc.clear_params()
self.ready.enqueue(proc)
except IndexError:
print "%s queue is empty" %dev
else, throw exception
Should only be positive whole integers.
Specificially file name, mem loc and file length
otherwise, goes off the row and messes up snapshot table formatting
Maybe also make pos/PID field lengths larger?
Fix in v. 3.0
This should be an invalid input, but instead inputs user's last input.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.