Professional Documents
Culture Documents
Exp 1 OS
Exp 1 OS
1
Date: 12/1/2024
B474
Theory:
An Operating System (OS) is an interface between a computer user and computer hardware. An
operating system is a software which performs all the basic tasks like file management, memory
management, process management, handling input and output, and controlling peripheral devices
such as disk drives and printers.
The primary purposes of an Operating System are to enable applications (softwares) to interact with
a computer's hardware and to manage a system's hardware and software resources.
LAYERED STRUCTURE
The OS is separated into layers or levels in this kind of arrangement. Layer 0 (the lowest layer)
contains the hardware, and layer 1 (the highest layer) contains the user interface (layer N). These
layers are organized hierarchically, with the top-level layers making use of the capabilities of the
lower-level ones.
The functionalities of each layer are separated in this method, and abstraction is also an option.
Because layered structures are hierarchical, debugging is simpler, therefore all lower-level layers
are debugged before the upper layer is examined. As a result, the present layer alone has to be
reviewed since all the lower layers have already been examined.
The image below shows how OS is organized into layers:
Q3.] Functions and Services provided by the Operating System.
a. Memory Management
The operating system manages the Primary Memory or 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. An Operating System performs the
following activities for Memory Management:
• In multiprogramming, the OS decides the order in which processes are granted memory
access, and for how long.
• It Allocates the memory to a process when the process requests it and deallocates the
memory when the process has terminated or is performing an I/O operation.
b. 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.
An operating system manages the processor’s work by allocating various jobs to it and ensuring that
each process receives enough time from the processor to function properly.
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.
c. File Management
A file system is organized into directories for efficient or easy navigation and usage. These
directories may contain other directories and other files. 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.
The operating system acts as a bridge between the user of a computer system and the computer
hardware. All of the applications required for your programs to utilize the computer hardware are
located on top of the operating system. The following are the main objectives of an operating
system:
• Efficiency
• Hardware abstraction
• Convenience
• System resource management
a. Efficiency
The operating system increases the production efficiency. This is because the system configuration
takes less time. By default, the operating system handles system tasks such as allocating resources
to processes and resolving conflicts between different programs and users. This saves the user time
and results in a more efficient result.
b. Hardware abstraction
The operating system performs a good job of concealing the computer's intricate details. The user
can fully utilise the computer hardware without having to cope with the accompanying difficulties.
The operating system coordinates communication between user programs and computer hardware.
c. Convenience
In the absence of an operating system, users would have to deal with the hardware directly without
access to the pre-configured utility packages that come with an operating system. This would make
using a computer extremely inconvenient. Operating systems allow users to go right to work on the
tasks they want to do without dealing with the burden of setting up the system beforehand.
Second Generation
(1955-1965) GMOS (General Motos operating system) was the first operating system that came
into the picture in the 1950s which was developed for IBM computers. IBM was the first one that
bought an operating system into the world. In the second generation, around the 1960s the first
UNIX Operating system was developed.
Example - Type of operating system and Batch OS.
Third Generation
(1965-1980) In the third generation, the concept of multiprogramming was introduced in which
multiple tasks could be performed in a single computer i.e., operating system.
Example - Concept of multiprogramming and types of operating systems used in
multiprogramming.
Fourth Generation
(1980-now) The evolution of operating systems came under the fourth generation. The concept of
personal computers is similar to the minicomputer that was introduced in the third generation.
Today, Windows is the most popular operating system and has evolved from Windows 95, Windows
98, Windows XP, and Windows 7. The most used Windows operating system was Windows 7 and
Windows 10. In 2021, Windows 11 was introduced with major changes. Apple also introduced its
operating system known as Ma Cos which is also as popular as Windows.
Conclusion
Through this experiment I get to learn about operating system and it’s types,various functions
performed on operating system along with it’s structure and also about evolution of operating
system.