Академический Документы
Профессиональный Документы
Культура Документы
Operating System:
Operating system is a program, which acts as an interface between a user and the
computer hardware
Purpose of O.S:
To provide an environment in which a user can use execute programs.
Functions of O.S:
(1) Keep track of the resources
(2) Decide who will have a chance to use the processor
(3) Allocate the resources
(4) Reclaim the resources
Process:
It is basically a program in execution.
Process states are running, ready, blocked, submit & hold
Processor:
Processor is a hardware device that is capable of executing a sequence of instructions.
Race condition:
Where two or more processes are reading or writing some shared data and the final
results depends on who runs precisely when are called race condition
Critical section:
The part of the program where the shared memory is accessed is called critical section.
Preemptive scheduling:
Processes that are logically runnable to be temporarily suspended is called preemptive
scheduling.
Non-preemptive scheduling:
Run to the completion
Round robin scheduling:
Each process is assigned a time interval called its quantum which is allowed to run.
Priority scheduling:
Each process is assigned a priority and the runnable process with the highest priority is
allowed to run.
In variable partition number and size of process in memory vary dynamically.
First fit:
Memory Manager scans the list of segments until it finds a hole that is big enough.
Best fit:
Searches the entire list and takes the smallest hole that is adequate.
Next fit:
Memory Manager keeps tracks of list of segments where it finds a suitable hole.
Worst fit:
It always takes the largest hole.
Traffic controller:
Keep track of the resources(processors and status of the process)
Static partitions:
Memory is divided into partitions prior to the processing of any jobs.
Dynamic partitions:
Partitions are created during the job processing so as to match partition sizes to job
sizes.
Burbing or compaction:
Periodically combine all free ares into one contiguous area. It can be done by moving
the contents of all allocated partitions so that they become contiguous.
Virtual memory:
To use operating system to produce the illusion of an extremely large memory. Since
this large memory is an illusion it is called virtual memory.
Thrashing:
The phenomenon of excessively moving pages back and forth between main memory and
secondary memory is called thrasing.
Page fetch or page failure:
Whenever there is a page reference for which the page is not in memory that event is
called page failure.
FIFO anomaly:
Under certain circumstances adding more physical memory can result in poor
performance.
33Segment:
Segment can be defined as a logical grouping of information such as a routine, or data
area. Each job address space consists of collection of segments.
Pages:
Each job address space is divided into equal pieces called pages.
Blocks or page
Frame:
Physical memory is divided into equal pieces of same size is called blocks.
Pure procedures:
Operates only on variables in registers or in separate data segment associated with the
job.
Overlay:
Swaps only portions of the job's address space.
Buffering:
It attempts to keep both CPU and the I/O device busy all the times. It overlays I/O of a
job with its computation
SPOOLING:
Simultaneous Peripheral Operations On Line. It overlays I/O of one job with the
computation of other jobs
Multiprogramming:
It is term given to a system that may have several process in states of execution at the
same time.
Turn around time:
The time delay between job submission and job completion.
Job:
It is a collection of activities related to do the work required.
Process (task):
It is a computation that may be done concurrently with other computations.
Address space:
The collection of programs and data that are accessed in a process form an address
space.
Pure code (reentrant code):
Pure code is code that does not modify itself.
Interrupt:
It is an event that alters the sequence in which a processor executes instructions.
Context switching:
Switching the CPU to another process if time quantum exceeds.
Throughput:
It is the amount of work accomplished in a given time interval.
Ready queue:
The processes are ready and waiting to execute are kept on a list called ready queue.
Device queue:
The list of processes waiting for a particular I/O devices is called device queue.
Process states:
Running
Ready
Waiting
Dispatching
Multiple partitions:
Memory is divided into no. Of regions or partitions. Each region may have one program
to be executed.
Internal fragmentation:
Memory which is internal to a region but is not being used.
External fragmentation:
Occurs when a region is unused and available but too small for any waiting job.
Fragmentation:
Development of large number of separate free area.
Page interrupts:
If the address mapping hardware encounters a page table entry with the status = N, it
generates a page interrupt.
FIFO removal:
Removes the page that has been in memory for the long time.
Pure procedures:
Non modifiable procedures are called pure procedures
LRU removal:
Removes the page that has not been reference for the longest time.
Dynamic linking and loading:
Linking of subroutines is postponed until a reference is explicity made. This is
also called differed linking or differed binding.
Impure procedure:
One way to retain the purity of the procedure segment in a dynamic linking
environment is to place all alterable information in a separate procedure called linkage procedure
or impure procedure.
Dirty bit:
The modified bit is often called dirty bit.
Modified bit = 0 if the page has not been modified
= 1 if the page has been modified.
Prepaging:
Bring all of the pages, which will be needed into memory at one time.
Seek time:
Time taken to move the head to the appropriate track.
Latency time:
Time taken to transfer the data between the disk and main memory.
Blocking and Buffering:
Blocking minimizes the number of physical transfers involving auxiliary storage
during file processing.
Buffering allows I/O operations to proceed in parallel with the operation of the
processor.
Mutual exclusion:
Each process accessing the shared data excludes all others from doing so simultaneously
is called mutual exclusion.
Semaphore (lock byte):
It is a physical entity, which is used to represent the resource.
Aging:
A solution to the problem of indefinite blockage of low priority jobs is called aging. It is
technique of gradually increasing the probity of jobs that wait in the system for a long time.
Race condition:
A race condition occurs when the scheduling of two process is so critical that the
various orders of scheduling them result in different computations.
Deadly embrace:
It is a situation in which two process are unknowingly waiting for the resources that are
held by each other and thus unavailable.
Distributed systems:
Processors communicate with one another through various communication lines
such as high-speed buses or telephone lines. These systems are called distributed systems.
Two types:
Loosely coupled systems:
Process donot share memory or a clock.
Tightly coupled systems:
Process that does share memory or a clock.
Real time systems:
It is used as a control device in dedicated applications.
Concurrent process:
Processes in a system can execute concurrently (ie) many process may be multitasked.
Threads:
It is a basic unit of CPU utilization. It has a non-shared state.
Task:
An environment in which a thread excute is called a task.
Schedulers:
It selects process from queues.
Long term sceduler or Job scheduler
Virtual memory:
It is a technique that allows execution of process that may not be complete in memory.
The advantage is that programs can be larger than physical memory.
Optitmal page replacement algorithms:
"Repalce page that wiil be used for longest period of time"
LRU:
"Replace page that has not been used for longest period of time".
MFU:
"It is based on the argument page with smallest count was probaly just brought in and has
yet to be used".
LFU:
Keeps a counter of number of references that have been made to each page. Page with
smallest count is replaced.
ART (Active Reference Table) or Active Name Table:
It is used to set linkage indirect words so that same segment number is used for a segment
throughout the job.
AST (Active Segment Table):
It is uset to set segment map table entries to share the same the physical segment.
Loosely Coupled Multiprocessing or coordinated job scheduling:
Each processor is associated with separate system. When a job arrives it may be assigned
to any system. To accomplish the balancing of assigning jobs, all job scheduling must be
coordinated.
Tightly coupled multiprocessing or Master/Slave Scheduling:
Memory and I/O devices are assigned to the processes, not to the processors.
Suspend Lock:
When a processor becomes blocked due to a normal P operation such as waiting for an
I/O completion the processor may be reassigned to some other process. This is called suspend
lock.
Masking:
OS may wish to mask out new interrupts while it is working on previous ones.
UNIX
Here it is possible
4. It is a monoprogramming system
It is multiprogramming system
It is multitasking system
1 to 255 characters.
No such attributes
Stronger
HLL
It is an open architecture
Here it is possible
No case sensitivity
Yes