Unit-II Operating System structure
Unit-II Operating System structure
User interface
System calls
Services Protection
Error And security
detection Operating system
Hardware
1) User interface –
Almost all operating systems have a user interface (UI). One is a command line
interface (CLI), which uses text commands. Another is a batch interface, in which
commands and directives to control those commands are entered into files, and those
files are executed.
Most commonly a graphical user interface (GUI) is used. Here, the interface is a
window system with a pointing device to direct I/O, choose from menus, and make
selections and a keyboard to enter text.
2) Program execution –
The system must be able to load a program into memory and to run that program.
3) I/O operations –
A running program may require I/O, which may involve an I/O device.
4) File system manipulation –
Programs need to read and write files and directories. They also need to create
and delete them by name, search for a given file, and list file information.
5) Communications –
There are many situations in which one process needs to exchange information
with another process. Communications may be implemented via shared memory or
through message passing.
6) Error detection –
The operating system needs to be constantly aware of possible errors. Errors may
occur in the CPU and memory hardware, in I/O devices, and in the user program.
7) Resource allocation -
When there are multiple users or multiple jobs running at the same time, resources
must be allocated to each of them.
8) Accounting –
Ms.S.B.Munde 2 COCSIT, Latur
B.Sc. CS FY 23-24 UNIT II : Operating System Structure
Which users use how much and what kinds of computer resources. This record
keeping may be used for accounting.
9) Protection and security –
Protection involves ensuring that all access to system resources is controlled. Security
of the system from outsiders is also important.
Acquire input file name Acquire output file name Open the input file
The first input that the program will need is the names of the two files: the input
file and the output file. Once the two file names are obtained, the program must open
the input file and create the output file.
There are also possible error conditions for each operation. When the program
tries to open the input file, it may find that there is no file of that name. In these cases,
the program should print a message on the console and then terminate abnormally.
If the input file exists, then we must create a new output file. We may find that