1 list and briefly describe the key services provided by an operating system
An operating system is an interface which provides services to both the user and to the programs. It provides an environment for the program to execute. It also provides users with the services of how to execute programs in a convenient manner. The operating system provides some services to program and also to the users of those programs. The specific services provided by the OS are off course different. Show
Following are the common services provided by an operating system:
1) Program Execution
2) I/O Operations
3) File system manipulation
4) CommunicationIn the computer system, there is a collection of processors which do not share memory peripherals devices or a clock, the operating system manages communication between all the processes. Multiple processes can communicate with every process through communication lines in the network. There are some major activities that are carried by an operating system with respect to communication.
5) Error handlingAn error is one part of the system that may cause malfunctioning of the complete system. The operating system constantly monitors the system for detecting errors to avoid some situations. This give relives to the user of the worry of getting an error in the various parts of the system causing malfunctioning. The error can occur anytime and anywhere. The error may occur anywhere in the computer system like in CPU, in I/O devices or in the memory hardware. There are some activities that are performed by an operating system:
6) Resource managementWhen there are multiple users or multiple jobs running at the same time resources must be allocated to each of them. There are some major activities that are performed by an operating system:
7) ProtectionThe owners of information stored in a multi-user computer system want to control its use. When several disjoints processes execute concurrently it should not be possible for any process to interfere with another process. Every process in the computer system must be secured and controlled. An operating system executes programs and makes the process of solving them easier. It also makes the computer system easier to use and helps the user use the computer hardware efficiently. Apart from these, it also provides an array of services both to the users and the programs. Services of Operating SystemThe OS is the resource manager of a system. Thus, there are multiple services it provides in order to have an efficient system that can utilize these resources to the fullest. Following are the services provided by operating systems: 1. User InterfaceAn interface is required to communicate with the user. Then it can either be a Command Line Interface or a Graphical User Interface. There is also a third kind that is Batch Based Interface which is usually overlooked. It uses commands to manage the commands entered into files and then these files get executed. As for the first two, Command Line Interface commonly uses text commands input by the users to interact with the system. These commands can also be given using a terminal emulator, or remote shell client. A Graphical User Interface (GUI) allows users to interact with the computer system or any other computer-controlled device. A GUI usually consists of all the graphical icons displayed on a computer screen, visual indicators like widgets, texts, labels, and text navigation. Thus, a user can directly perform actions with a click of the mouse or keyboard. 2. Program ExecutionThe OS loads a program into memory and then executes that program. It also makes sure that once started that program can end its execution, either normally or forcefully. The major steps during program management are:
3. File System ManipulationA program is read and then written in the form of directories and files. These files can be stored on the storage disk for the long term. The OS allows the users to create and delete files, duplicate these files, and search files and their information or properties. It also does permission management for these files i.e., allowing or denying access to these files or directories based on the file ownership. 4. I/O OperationsI/O operations are required during the execution of a program. To maintain efficiency and protection of the program, users cannot directly govern the I/O devices instead the OS allows to read or write operations with any file using the I/O devices and also allows access to any required I/O device when required. 5. Communication systemsProcesses need to swap information among themselves. These processes can be from the same computer system or different computer systems as long as they are connected through communication lines in a network. This can be done with the help of OS support using shared memory or message passing. The OS also manages routing, connection strategies, and the problem of contention and security. 6. Resource AllocationWhen multiple users or multiple jobs run on a system concurrently, the resources need to be allocated equally to all of them. CPU scheduling is used to allocate resources fairly and for the better utilization of the CPU. These resources may include CPU cycles, main memory storage, file storage, and I/O devices. 7. Error DetectionErrors may occur in any of the resources like CPU, I/O devices, or memory hardware. The OS keeps a lookout for such errors, corrects errors when they occur, and makes sure that the system works uninterruptedly. 8. AccountingThis keeps a check of which resource is being used by a user and for how long it is being used. This is usually done for statistical purposes. 9. Protection and SecurityThis is to ensure the safety of the system. Thus, user authentication is required to access a system. It is also necessary to protect a process from another when multiple processes are running on a system at the same time. The OS controls the access to the resources, protects the I/O devices from invalid access, and provides authentication through passwords. 10. Command InterpretationThe OS understands and interprets commands that are input by the user and displays the input accordingly. Multiple command interpreters can be supported by an OS and they do not necessarily need to run in kernel mode. If the interpreter is separate from the kernel then you can modify the interpreter and prevent any unauthorised access into the system. 11. Resource ManagerThe OS manages resources such as processor, memory, I/O devices etc efficiently. It allocates resources to processes and administers running programs to ensure user satisfaction. It also decides the time at which a program should run, the amount of memory allocated for execution, where to save a file, and much more. Apart from these basics, there are some more services the OS provides that are a part of resource management. These are: a. Process Management Major activities regarding process management are:
b. Main-Memory Management The OS ensures that there is enough memory for a process to execute and different locations of memory are being used properly for effective execution of processes. During execution, the memory manager tracks available memory locations, where processes can be allocated or unallocated. c. Secondary-Storage Management Moreover, main memory cannot accommodate all data and programs so secondary storage is needed as a backup like tape drives, disk drives, and other media. This provides easy access to the files and folders in the secondary storage using disk scheduling algorithms. OS manages free space on the secondary storage devices, allocates storage space to new files, schedules memory access requests, and creates and deletes files. d. Network Management Today’s networks are usually based on client-server configuration where a client is the program running on the local machine requesting a service and a server is the program running on the remote machine providing a service.
SummaryThe services offered by Operating System make communicating with the system easy and user-friendly. These services are: 1. User Interface These services are what make the OS so popular. Nobody likes complicated things and the OS makes working with a system so simple with all its services and functions. What are the key services provided by an operating system?Following are the services provided by an operating system -. Program execution.. Control Input/output devices.. Program creation.. Error Detection and Response.. Accounting.. Security and Protection.. File Management.. Communication.. What are the 5 key concepts of an operating system?To understand clearly about an operating system, user need to know the five fundamental concepts of the operating system, which are the five tasks that an operating system can and will do. The five tasks are Main Memory Management, Processor Management, Device Management, File Management, and User Interface.
What are five 5 key functions and features of an operating system?Functions of Operating System. File Management. An operating system's (OS) primary function is to manage files and folders. ... . Device management. Operating systems provide essential functions for managing devices connected to a computer. ... . Process management. ... . Memory management. ... . Job Accounting.. What are the 4 key features of the operating system?Features of Operating Systems
Provides a platform for running applications. Handles memory management and CPU scheduling. Provides file system abstraction.
|