Professional Documents
Culture Documents
Q1.
Batch OS.
Distributed OS.
Multitasking OS.
Network OS.
Real-OS.
Mobile OS.
Q.2
Both of these concepts are for Both of these concepts are for
1. single CPU. single CPU.
Q.1
Q.2
Q.3
Types of Multiprocessors
There are mainly two types of multiprocessors i.e. symmetric and asymmetric multiprocessors.
1)Symmetric Multiprocessors
2)Asymmetric Multiprocessors
Q.4
Memory CLI consumes comparatively less The GUI consumes comparatively more
Consumption memory. memory.
Level of Precision Higher precision of work can be obtained GUI offers a lower level of precision.
using CLI.
Keyboard and Its OS only requires a user’s keyboard. Its OS requires both keyboard and mouse
Mouse to work.
Unit-II
Q.1
Enlist services provided by operating system.
Ans-
An Operating System provides services to both the users and to the programs.
Program execution
I/O operations
File System manipulation
Communication
Error Detection
Resource Allocation
Protection
Q.2
Enlist components of operating system.
Ans-
An operating system consists of the following components:
Management of processes.
File Administration.
Network Management.
Main Memory Management.
Management of Secondary Storage.
Management of I/O Devices.
Security Management.
Command Interpreter System.
Q.3
Describe any two system call related with file management.
Ans-
Types of System Calls
File Management: File manipulation events like Creating, Deleting, Reading
Writing etc are being classified under file management system calls. Device
Management: Device Management system calls are being used to request the
device, release the device, logically attach and detach the device.
Q.4
Describe any two system call related with device management .
Ans-
Device management is a system call that is used to deal with devices. Some
examples of device management include read, device, write, get device
attributes, release device, etc.
Q.5
Describe any two system call related with process management.
Ans-
1. Process Control: It handles the system calls for process creation, deletion, etc.
Examples for process control system calls are: Load, Execute, Abort, Wait Signal
events for process.
fork(): This system call creates the copy of the process which has called it. The one
which has called fork is called the parent process and the newly created copy is
called the child process. exec(): This system call is called when the running process
wants to execute another executable file.
Q.1
Explain concept of system call in detail.
Ans-
A system call is a routine that allows a user application to request actions that
require special privileges. Adding system calls is one of several ways to extend the
functions provided by the kernel.
In computing, a system call is the programmatic way in which a computer
program requests a service from the kernel of the operating system it is
executed on. A system call is a way for programs to interact with the
operating system. A computer program makes a system call when it makes
a request to the operating system’s kernel. System call provides the
services of the operating system to the user programs via Application
Program Interface(API). It provides an interface between a process and
operating system to allow user-level processes to request services of the
operating system. System calls are the only entry points into the kernel
system. All programs needing resources must use system calls.
Services Provided by System Calls :
1. Process creation and management
2. Main memory management
3. File Access, Directory and File system management
4. Device handling(I/O)
5. Protection
6. Networking, etc.
Types of System Calls : There are 5 different categories of system
calls –
1. Process control: end, abort, create, terminate, allocate and
free memory.
2. File management: create, open, close, delete, read file etc.
3. Device management
4. Information maintenance
5. Communication
Q.2
Ans-
An Operating System provides services to both the users and to the programs.
1)I/O Operation
An I/O subsystem comprises of I/O devices and their corresponding driver software. Drivers
hide the peculiarities of specific hardware devices from the users.
An Operating System manages the communication between user and device drivers.
I/O operation means read or write operation with any file or any specific I/O
device.
Operating system provides the access to the required I/O device when required.
2)Error handling
Errors can occur anytime and anywhere. An error may occur in CPU, in I/O devices or in the
memory hardware. Following are the major activities of an operating system with respect to
error handling −
3)Resource Management
In case of multi-user or multi-tasking environment, resources such as main memory, CPU
cycles and files storage are to be allocated to each user or job. Following are the major activities
of an operating system with respect to resource management −
4)Protection
Considering a computer system having multiple users and concurrent execution of multiple
processes, the various processes must be protected from each other's activities.
Protection refers to a mechanism or a way to control the access of programs, processes, or users
to the resources defined by a computer system. Following are the major activities of an
operating system with respect to protection −
1. Process Management
2. I/O Device Management
3. File Management
4. Network Management
5. Main Memory Management
6. Secondary Storage Management
7. Security Management
8. Command Interpreter System
1)Process Management
A process is program or a fraction of a program that is loaded in main memory. A process
needs certain resources including CPU time, Memory, Files, and I/O devices to accomplish its
task. The process management component manages the multiple processes running
simultaneously on the Operating System.
4)Security Management
The operating system is primarily responsible for all task and activities happen in the computer
system. The various processes in an operating system must be protected from each other’s
activities. For that purpose, various mechanisms which can be used to ensure that the files,
memory segment, cpu and other resources can be operated on only by those processes that have
gained proper authorization from the operating system.
5)File Management
File management is one of the most visible services of an operating system. Computers can
store information in several different physical forms; magnetic tape, disk, and drum are the
most common forms.
Q.4
The operating system is used everywhere today, such as banks, schools, hospitals,
companies, mobiles, etc. No device can operate without an operating system because
it controls all the user's commands.