22 Feb 2017

Unix 1.4 Operating System Services


OPERATING SYSTEM SERVICES







The operating system performs various primitive operations on behalf of user processes to support the user interface described above. Among the services provided by the OS are :-

• Controlling the execution of processes by allowing their creation, termination or suspension, and communication.

• Scheduling processes fairly for execution on the CPU. Processes share the CPU in a time-shared manner: the CPU executes a process, the kernel suspends it when its time quantum elapses, and the kernel schedules another process to execute. The kernel later reschedules the suspended process.

• Allocating main memory for an executing process. 
The kernel allows processes to share portions of their address space under certain conditions, but protects the private address space of a process from outside tampering. 
If the system runs low on free memory, the kernel frees memory by writing a process temporarily to secondary memory, called a swap device, lithe kernel writes entire processes to a swap device, the implementation of the UNIX system is called a swapping system; if it writes pages of memory to a swap device, it is called a paging system.

• Allocating secondary memory for efficient storage and retrieval of user data.
This service constitutes the file system. The kernel allocates secondary storage for user files, reclaims unused storage, structures the file system in a well understood manner, and protects user files from illegal access.

• Allowing processes controlled access to peripheral devices such as terminals, tape drives, disk drives, and network devices.

Friends, if you find this post useful please comment below. If you want quick notes for any topic please mail us at hardikpanchal551@gmail.com, we will try to provide notes if possible. Thanks for reading.

No comments:

Post a Comment