Operting System
Operting System
Operting System
[2021,2019,2018,2017,2016,2015,2014]
- Bca expert
1] explain operating system components in details. [8m] [2021,2018,2017,2016]
Operating System
Operating system is a software that communicates with the hardware and allows other programs to run
Os that provides basic functionality for the device.
1. Process Management
2. File Management
3. Network Management
4. Main Memory Management
5. Secondary Storage Management
6. I/O Device Management
7. Security Management
8. Command Interpreter System
Operating system components help you get the correct computing by detecting
CPU and memory hardware errors.
- Bca expert
1) Process Management
The process management component is a procedure for
managing many processes running simultaneously on the
operating system.
Every running software application program has one or more
processes associated with them.
For example, when you use a search engine like Chrome,
there is a process running for that browser program.
Process management keeps processes running efficiently. It
also uses memory allocated to them and shutting them down
when needed.
The execution of a process must be sequential so, at least
one instruction should be executed on behalf of the process.
A file is a set of related information defined by its creator. It commonly represents programs (both source and
object forms) and data.
Data files can be alphabetic, numeric, or alphanumeric.
3) Network Management
An Operating System performs the following functions for Memory Management in the operating system:
It helps you to keep track of primary memory.
Determine what part of it are in use by whom, what part is not in use.
In a multiprogramming system, the OS decides which process will get memory and how much.
Allocates the memory when a process requests.
It also de-allocates the memory when a process no longer requires or has been terminated.
- Bca expert
5) Secondary-Storage Management
Here are some major functions of secondary storage management in the operating system:
• Storage allocation
• Free space management
• Disk scheduling
- Bca expert
6) I/O Device Management
One of the important use of an operating system that helps to hide the variations of
specific hardware devices from the user.
The I/O management system offers the following functions, such as:
It offers a buffer caching system
It provides general device driver code
It provides drivers for particular hardware devices.
I/O helps you to know the individualities of a specific device.
- Bca expert
7) Security Management
• One of the most important components of an operating system is its command interpreter.
• The command interpreter is the primary interface between the user and the rest of the system.
• Many commands are given to the operating system by
control statements.
• A program that reads and interprets control statements is
automatically executed when a new job is started in a
batch system or a user logs in to a time-shared system.
This program is variously called.
The control card interpreter,
The command-line interpreter,
The shell (in UNIX), and so on. - Bca expert
2] explain multiprogramming and multitasking . [8m] [2021,2018,2015]
Advantages
Disadvantages
- Bca expert
3] what is process ? Explain the different states that a process taken while execution . [8m]
[2021,2019,2017,2016,2014]
process
Process States
New
Terminated
Interrupt
Ready Running
- Bca expert
1. New
• A program which is going to be picked up by the OS into the main memory is called a
new process.
2. Ready
• Whenever a process is created, it directly enters in the ready state, in which, it waits
for the CPU to be assigned.
• The OS picks the new processes from the secondary memory and put all of them in
the main memory.
• The processes which are ready for the execution and reside in the main memory are
called ready state processes.
• There can be many processes present in the ready state.
3. Running
• One of the processes from the ready state will be chosen by the OS depending upon the
scheduling algorithm.
• Hence, if we have only one CPU in our system, the number of running processes for a
particular time will always be one.
• If we have n processors in the system then we can have n processes running simultaneously.
4. Block or wait
• From the Running state, a process can make the transition to the block or wait state
depending upon the scheduling algorithm or the intrinsic behavior of the process.
• When a process waits for a certain resource to be assigned or for the input from the
user then the OS move this process to the block or wait state and assigns the CPU to
the other processes.
- Bca expert
5. Completion or termination
• When a process finishes its execution, it comes in the termination state.
• All the context of the process (Process Control Block) will also be deleted the process
will be terminated by the Operating system.
Process Control Block is a data structure that contains information of the process related to it.
he process control block is also known as a task control block, entry of the process table, etc.
It is very important for process management as the data structuring for processes is done in terms of the PCB.
It also defines the current state of the operating system.
- Bca expert
Structure of the Process Control Block
Process State
This specifies the process state i.e. new, ready, running, waiting or
terminated.
Process Number
This shows the number of the particular process.
Program Counter
This contains the address of the next instruction that needs to be
executed in the process.
Registers
This specifies the registers that are used by the process. They may
include accumulators, index registers, stack pointers, general
purpose registers etc.
List of Open Files
These are the different files that are associated with the process
CPU Scheduling Information
The process priority, pointers to scheduling queues etc. is the CPU
scheduling information that is contained in the PCB. This may also
include any other scheduling parameters.
- Bca expert
Memory Management Information
The memory management information includes the page tables or the segment tables
depending on the memory system used. It also contains the value of the base registers,
limit registers etc.
I/O Status Information
This information includes the list of I/O devices used by the process, the list of files etc.
Accounting information
The time limits, account numbers, amount of CPU used, process numbers etc. are all a
part of the PCB accounting information.
Location of the Process Control Block
The process control block is kept in a memory area that is protected from the normal user
access. This is done because it contains important process information. Some of the
operating systems place the PCB at the beginning of the kernel stack for the process as it
is a safe location.
5].Define operating system . Explain services provided by operating system [8m] [2019, 2018,2017
Operating System 2016,2015,2014]
- Bca expert
6].explain any two operating system structure [2019,2018]
• There are many operating systems that have a rather simple structure.
• These started as small systems and rapidly expanded much further than their scope.
• A common example of this is MS-DOS. It was designed simply for a niche amount for people.
• There was no indication that it would become so popular.
• An image to illustrate the structure of MS-DOS is as follows −
• As seen from the image, each upper layer is built on the bottom layer.
• All the layers hide some structures, operations etc from their upper layers.
• One problem with the layered structure is that each layer needs to be carefully defined.
• This is necessary because the upper layers can only use the functionalities of the layers
- Bca expert
Thank you for watching
- Bca expert