For example, when working with a disk, a typical abstraction is a file. it is
easier to work with files than directly with a disk controller (no need to
consider moving the drive heads, starting and stopping the motor, etc.), as a
result, the programmer can focus on the essence of his application. The
operating system is responsible for interacting with the disk controller .
Abstraction highlighting makes it easy for OS and application code to
change when migrating to new hardware. For example, if you install a new
type of disk device on your computer (provided that it is supported by the
OS), all its features will be taken into account at the OS level, and
applications will continue to use the files as before. This characteristic of
the system is called
hardware independence. OS can be said to provide a
hardware-independent environment for executing applications.