MODULE-1 - Operating System Services
MODULE-1 - Operating System Services
There are several ways for users to interface with the operating system.
1. Command-line interface (CLI), or command interpreter, allows users to
directly enter commands to be performed by the operating system.
2. Graphical user interface (GUI), allows users to interface with the
operating system using pointer device and menu system.
command interpreter is to get and execute the user-specified command. Many of the
commands manipulate files: create, delete, list, print, copy, execute, and so on.
The commands can be implemented in two general ways-
1. The command interpreter itself contains the code to execute the command. For example,
a command to delete a file may cause the command interpreter to jump to a particular
section of its code that sets up the parameters and makes the appropriate system call.
2. The code to implement the command is in a function in a separate file. The interpreter
searches for the file and loads it into the memory and executes it by passing the
parameter. Thus by adding new functions new commands can be added easily to the
between different systems. The API then makes the appropriate system calls
through the system call interface, using a system call table to access specific
numbered system calls.
Typically, a number associated with each system call. System-call interface
Fig. The handling of a user application invoking the open() system call
1. Process Control
2. File management
3. Device management
4. Information management
5. Communications
6. Protection
process, get/set process attributes, wait for time or event, signal event, and allocate and
free memory.
Processes must be created, launched, monitored, paused, resumed, and eventually stopped.
When one process pauses or stops, then another must be launched or resumed.
Process attributes like process priority, max. allowable execution time etc. are set and
retrieved by OS.
After creating the new process, the parent process may have to wait (wait time), or wait for
an event to occur (wait event). The process sends back a signal when the event has
File management system calls include create file, delete file, open,
close, read, write, reposition, get file attributes, and set file attributes.
After creating a file, the file is opened. Data is read or written to a file.
The file attributes like filename, file type, permissions, etc. are set and
ordinary files.
Department of CSE- Data Science
Device Management
Device management system calls include request device, release device, read,
write, reposition, get/set device attributes, and logically attach or detach devices.
When a process needs a resource, a request for resource is done. Then the
6. Communications
‣Programs for providing connectivity between processes and users,
including mail, web browsers, remote logins, file transfers, and remote
command execution.
Design Goals
The first problem in designing a system is to define goals and specifications.
At the highest level, the design of the system will be affected by the choice of
hardware and the type of system: batch, time shared, single user, multiuser, distributed,
real time, or general purpose.
The requirements can be divided into two basic groups
due to that layer only, as the lower layers are already debugged. Thus, the design and
‣ The various layers must be appropriately defined, as a layer can use only lower-level layers.
‣ Less efficient than other types, because any interaction with layer 0 required from top layer.
The system call should pass through all the layers and finally to layer 0. This is an overhead.
new kernel.
‣ Mach was the first and most widely
The fundamental idea behind a virtual machine is to abstract the hardware of a single
computer (the CPU, memory, disk drives, network interface cards, and so forth) into
several different execution environments, thereby creating the illusion that each separate
execution environment is running its own private computer.
Creates an illusion that a process has its own processor with its own memory.
Debugging is finding and fixing errors, or bugs in a system, both in hardware and in
software
Failure Analysis
Failure of an application can generate core dump file capturing memory of the process
Operating system failure can generate crash dump file containing kernel memory
Operating systems are designed to run on any of a class of machines; the system must be
configured for each specific computer site.
SYSGEN program obtains information concerning the specific configuration of the
hardware system.
‣ Booting – starting a computer by loading the kernel.
‣ Bootstrap program – code stored in ROM that is able to locate the kernel, load it
into memory, and start its execution.
6 marks
4 With a neat diagram, explain the concept of the virtual machine. 7 marks
From Previous year question papers
1 Explain the operating system services with respect to users and system.
Dec’23/Jan’24 ,5 marks
2 What are system calls? List and explain different types of system calls.
Dec’23/Jan’24, 10 marks
3 With a neat diagram explain the concept of VM-WARE architecture.
Dec’23/Jan’24, 5 marks
Department of CSE- Data Science
From Previous year question papers
4 Which calls provide an interface to the services made available by OS? Explain the same
with suitable example. June/July 2019 6
marks
5 Explain the method of OS design which involves using object-oriented programming
technique with a neat diagram. June/July 2019 8 marks
6 What are virtual machines? Explain VM-WARE architecture with a neat diagram.
Dec’18/Jan’19 8 marks
7 Explain the concept of virtual machines. Bring out its advantages.
Dec’17/Jan’18 7 marks
8 What are virtual machines? How are they implemented?
Dec’16/Jan’17 5 marks
9 Explain the advantages of layered approach with a neat diagram. Dec’13/Jan’14 6 marks