BCA 1ST YEAR (Unit-1)
BCA 1ST YEAR (Unit-1)
OPERATING SYSTEM -
An Operating system is an interface between a computer
user in hardware. An operating system is a system software,which performance
all the basic tasks like File Management, Memory Management, Process
Management, handling input and output, and controlling peripheral devices such
us disk drives and printers.
Definition -
An operating sytem is system software that manages computer
hardware software resources, and provides common services for computer
programmes.
1.2 HISTROY AND EVOLUTION OF OPERATING SYSTEM ?
HISTROY -
EVOLUTION OF OPERATING SYSTEM -
An operating system is a type of software
that acts as an interface between the user and the hardware. It is responsible to
handle various critical functions of the computer or any other machine. Various
tasks that are handled by OS are file management, task management, garbage
management, memory management, process management, disk management,
I/O management, peripherals management, etc.
Operating Systems have evolved in past years. It went through several changes
before getting its original form. These changes in the operating system are
known as the evolution of operating systems.OS improve itself with the
invention of new technology. Basically , OS added the feature of new technology
and making itself more powerful. Operating system is divided into four
generations, which are explained as follows −
1. First Generation (1945-1955)
2. Second Generation (1955-1965)
3. Third Generation (1965-1980)
4. Fourth Generation (1980-Now)
1. Memory Management -
The operating system manages the Primary
Memory or Main Memory. Main memory is made up of a large array of bytes or
words where each byte or word is assigned a certain address. Main memory is
fast storage and it can be accessed directly by the CPU. For a program to be
executed, it should be first loaded in the main memory. An operating system
manages the allocation and deallocation of memory to various processes and
ensures that the other process does not consume the memory allocated to one
process.
2. Processor Management -
In a multi-programming environment, the OS decides
the order in which processes have access to the processor, and how much
processing time each process has. This function of OS is called Process
Scheduling. An Operating System performs the following activities for Processor
Management.
Keeps track of the status of processes. The program which performs this task is
known as a traffic controller. Allocates the CPU that is a processor to a process.
De-allocates processor when a process is no longer required.
3. Device Management -
An OS manages device communication via its respective drivers.
It performs the following activities for device management. Keeps track of all devices
connected to the system. designates a program responsible for every device known as
the Input/Output controller. Decide which process gets access to a certain device.
Allocates devices effectively and efficiently. Deallocates devices when they are no
longer required. There are various input and output devices.
4. File Management -
A file system is organized into directories for efficient or easy
navigation and usage. An Operating System carries out the following file
management activities. It keeps track of where information is stored, user access
settings, the status of every file, and more. These facilities are collectively known as
the file system. An OS keeps track of information regarding the creation, deletion,
transfer, copy, and storage of files in an organized way. It also maintains the integrity
of the data stored in these files, including the file directory structure, by protecting
against unauthorized access.
5. User Interface or Command Interpreter -
The user interacts with the
computer system through the operating system. Hence OS acts as an
interface between the user and the computer hardware. This user interface
is offered through a set of commands or a graphical user interface (GUI).
Through this interface, the user makes interacts with the applications and
the machine hardware.
1.4 RESOURCES ABSTRACTION
Resource Abstraction -
Resource abstraction is a technique used in operating
systems to hide the details of a resource from users and programs. By hiding the details
of a resource, the operating system can provide a simpler and more consistent interface
to users and programs.
Resource abstraction is used to hide the details of many different types of resources,
including hardware resources, software resources, and data resources. Hardware
resources include devices such as printers and disk drives. Software resources include
files, network connections, and process control blocks. Data resources include databases
and message queues. The operating system manages all of these resources and provides
a consistent interface to users and programs. Users and programs access resources
through system calls, which are abstractions of the underlying resource
For example, the open system call is used to open files, and the read system call is used to
read data from files.
The operating system also provides a variety of other services to users and programs, such
as process control, memory management, and file system management.
Resource abstraction is a powerful technique that allows the operating system to hide the
details of its implementation from users and programs. By hiding the details of its
implementation, the operating system can provide a simpler and more consistent interface
to users and programs.
1.5 TYPES OF OPERATING SYSTEM -
1. BATCH OPERATING SYTEM
2. MULTIPROGRAMMING OPERATING SYSTEM
3. MULTIPROCESSING OERATING SYSTEM
4. TIME SHARING SYSTEM
5. DISTRIBUTED OPERATING SYSTEM
6. REAL TIME OPERATING SYSTEM -
1. It is very difficult to guess or know the time required for any job to complete.
2 . Multiple users can share the batch systems.
3. The idle time for the batch system is very less.
1. Maximum utilization of devices and systems, thus more output from all the resources.
2. Task Shifting: The time assigned for shifting tasks in these systems is very less.