Chapter 5
Chapter 5
Chapter 5
Operating System
Needs of OS
o Memory Management
Memory protection to ensure 2 programs do not try to use same memory space
Paging
o File Management
o Security Management
Utility Software
o Disk Formatter
o Virus checker
o Defragmentation Software
Files can be big so have to be stored in multiple sectors, which can result in
fragmentation (contents of file scattered across >2 non-contiguous sectors)
Fragmentation slows down disk access and thus the performance of the entire
computer.
Gets size for each folder and files, and generates a graphical chart showing disk
usage distribution according to folders or other user defined criteria.
o File Compression
o Back-up Software
Makes copy of files on another storage medium in the event of a hard drive
failure, user error, disaster or accident.
Language Translators
Assembler
o Software that translates assembly language statements into machine code (binary) for
execution
o Process simple because assembly language has a one-to-one relationship with machine
code.
Compiler Interpreter
Reports all errors at the end of compilation: Debugging easier/faster, since it stops translating
difficult to locate errors∴ development when it reaches an error. This allows real time
process long. error correction.
Two-step translation
o Java and some other high level language programs may require two-step translation,
i.e., they will be partially compiled and partially interpreted
o Bytecode finally interpreted by the Java Virtual Machine to produce machine code
o Coding
o Presentation
Expand and Collapse code blocks: Saves excessive scrolling if collapsed, and easy
to see global variable declarations and main program body when collapsed
o Debugging