Discuss how an operating system protects computer
hardware, processor, main memory, and input-output
devices of a computer system; and provide
appropriate practical examples to illustrate your
answer.
Operating System (OS) is system software, which acts as an interface between a user of the computer and the computer hardware.
When a computer runs out of RAM, the operating system (OS) will move idle or unwanted pages of memory to secondary memory to free up RAM for other processes and brings them back when needed by the program.
Input/output is protected by making all input/output instructions privileged. While running in user mode, the CPU cannot execute them; thus, user code, which runs in user mode, cannot execute them. User code requests I/O by making appropriate system calls.
In multiprogramming environment, the OS decides which process gets the processor when and for how much time. This function is called process scheduling.
Comments
Leave a comment