Simulator

This lesson explains how to interact with the simulator for the exercise presented in the next lesson.

We'll cover the following...

This exercise uses disk.py to familiarize you with how a modern hard drive works. It has a lot of different options, and unlike most of the other simulations, it has a graphical animator to show you exactly what happens when the disk is in action.

NOTE

There is also an experimental program, disk-precise.py along with the disk.py. This version of the simulator uses the python Decimal package for precise floating-point computation, thus giving slightly better answers in some corner cases than disk.py. However, it has not been very carefully tested, so use at your own caution.

Access this course and 1400+ top-rated courses and projects.