Two Marks: 1. Operating System
Two Marks: 1. Operating System
1. OPERATING SYSTEM:
Operating system is the combination of process memory, devices and file management. It
helps us to interface between the user and it works as a resource allocator, virtual machine,
bootstrap loader, kernel, multiprogramming, multi tasking and time sharing. They are different
types of operating systems available such as Linux, MS DOS, Windows, Mac etc....
2. PROCESS:
In OS for every process a process table (process block) in that it will note all the steps of
processing of particular method.
• Even we can create process with another process, it is called as Child process.
3. SHELL:
4. BOOTSTRAP PROGRAM:
For a computer to start running for instance, when it is powered on or rebooted – it need
to have initial program to run which program is known as bootstrap program. It is store in ROM
or EEPROM, it initializes all aspects of the system from CPU registers to device controllers to
memory contents.
5. MEMORY MANAGEMENT:
6. LOGICAL ADDRESS:
Once a CPU is started, it will generate address for every statement or instruction it is
known as logical address space, it is also called as virtual address.
7. PHYSICAL ADDRESS:
It is a secondary storage device, this address seen by the memory unit. The entire
program is stored inside the physical address.
8. MAIN MEMORY:
Main memory is usually too small to store all needed programs and data
permanently.
Main memory is a volatile storage device that loses its contents when
power is turned off or otherwise lost.
9. DUAL MODE OPERATION:
In order to maintain the proper execution of the operation system, we must be able to
distinguish between the executing of operating system code and user defined code. For this we
need two separate modes for the operation: 1.user mode, 2.kernal node. A bit called mode bit is
added to the hardware to distinguish between them.
Kernal mode is executed on behalf of the operating system. At system boot hardware
starts in kernel mode. Whenever trap or interrupt occurs hardware switches from user mode to
kernel mode. It is also called as supervisor mode, system mode or privileged mode. Its job is to
allocate resources in virtual machine.
Kernal is heart of the OS, and it is a small code segment. It is always in the main
memory instead of dumping entire OS in the main memory…it is used to run user of program.
The physical computer shares the resources to create the virtual machine. Each process
with a(virtual) copy of the underlying computer(base hardware) . User can run any of the
software packages that are available on the underlying machine.
It deals with input, output devices and buffering the information streams to and from
them. It take care of the all the I/O operations of the OS.
15. THREADS:
It allow the process to do only one job is called Thread. The process model discussed
so far has implied that is a program that performs single Thread.
Eg: Word processor program, in this process it is a single thread. A user typing the
character & doing spell check is called Multi thread.
Scheduling queue (or) Job queue (or) process queue consists of all the process in the
system which is going to execute.
Device queue in which process which are waiting for the I/O operations are queued.
21. SCHEDULERS:
A process migrates between the various scheduling queues throughout its life time. OS
must select for a scheduling processor from these queues. During execution it shifts one process
& queue to another.
Selects processor from the pool and loads them into the memory for execution.
• Mid-term schedulers:
Selects among the processors which are ready, and allocates CPU to one of them.
The mid-term scheduler temporarily removes processes from main memory and
places them on secondary memory (such as a disk drive) or vice versa. This is commonly
referred to as "swapping out" or "swapping in".
Information sharing.
Modularity concept.
For convenience.
• INDEPENDENT PROCESS:
• CO OPERATION PROCESS:
Race section, a situation where several process access and manipulate the same data
concurrently and the outcome of the execution depends on the particular order in which the
access take place is called as Race condition.
A common process like output can be accessed by another process. These common
process are put in a particular section, it is known as critical section. Otherwise each process has
segment of section called critical section Only one process can access during the critical section.
Do
Entry section
CRITICAL SECTION
Exit section
Remainder section
While (1)
29. THREE REQUIREMENT FOR CRITICAL SECTION PROBLEM:
• Mutual exclusions.
• Progress exclusions.
• Bounded waiting.
If process P1 is executing in its critical section, then no other processes can be executing
in their critical section.
Once the process P1 is reached its remainder section after executed in critical
section, then they won’t allow to re-enter the critical section.
There is allot or limit or on number of times that other processes are allowed to re-
enter the critical section, when that particular time exceeds it will post-pond that process.
33. SEMAPHORE:
• Signal –awake.
• WAIT:
It uses the counter variable that makes the number of process which
approaching the critical section to access, to wait for some time, to make the
process which is currently accessing its critical section to finish.
• SIGNAL:
It signals the process to access the critical section after the wait.
Under non preemptive or Cooperative scheduling, once the CPU has been
allocated to a process, the process keeps the CPU until it releases the CPU either by terminating
or by switching to the waiting state.
A process requests a resource, when at that time resource not available. The
continues waiting of the number process leads to dead lock.
• Request.
• Use.
• Release.
• Mutual exclusions
• Hold & Wait.
• No preemption.
• Circular wait.