Operating System Assignment
Operating System Assignment
ASSIGNMENT-1
• Kamaljeet Singh
• MCA-1
1. Memory Management
It is the management of the main or primary memory. Whatever program is executed, it has to be
present in the main memory. Main memory is a quick storage area that may be accessed directly
by the CPU. When the program is completed, the memory region is released and can be used by
other programs. Therefore, there can be more than one program present at a time. Hence, it is
required to manage the memory.
• Keeps a record of which part of primary memory is used by whom and how much.
2. Processor Management/Scheduling
Every software that runs on a computer, whether in the background or in the frontend, is a
process. Processor management is an execution unit in which a program operates. The operating
system determines the status of the processor and processes, selects a job and its processor,
allocates the processor to the process, and de-allocates the processor after the process is
completed.
• Since every device should get a chance to use the processor. Hence, the OS makes
sure that the devices get fair processor time.
• Round-Robin Scheduling
3. Device Management
An operating system regulates device connection using drivers. The processes may require devices
for their use. This management is done by the OS. The OS:
• Decides which process can use which device for how much time.
4. File Management
The operating system manages resource allocation and de-allocation. It specifies which process
receives the file and for how long. It also keeps track of information, location, uses, status, and so
on. These groupings of resources are referred to as file systems. The files on a system are stored in
different directories. The OS:
5. Storage Management
Storage management is a procedure that allows users to maximize the utilization of storage devices
while also protecting data integrity on whatever media on which it lives. Network virtualization,
replication, mirroring, security, compression, deduplication, traffic analysis, process automation,
storage provisioning, and memory management are some of the features that may be included.
The operating system is in charge of storing and accessing files. The creation of files, the creation of
directories, the reading and writing of data from files and directories, as well as the copying of the
contents of files and directories from one location to another are all included in storage
management.
• Assists businesses in storing more data on existing hardware, speeding up the data
retrieval process, preventing data loss, meeting data retention regulations, and
lowering IT costs
2.Online System:
An online processing system handles transactions in real time and provides the output instantly.
When any economic event takes place then the processing occurs. It requires more number of
dedicated hardware resources, processing elements are required. In this system programs are
initiated through transactions. It does not allow sharing of programs and files.
Examples includes are month end tax calculation, data transformation, data analysis, data
transformation etc.
Q6. What are the main differences between operating systems for
mainframe computers and personal computers?
Some difference between mainframe computers and personal computers is that:
• Mainframe platform u can run more than one OS at a time on same machine but this
feature not available at Personal Computer OS.
• Aa mainframe operating system will probably need to service many users at the same
time, whereas a PC operating system normally only has to worry about one user at a
time.
• A mainframe OS can be used by many users at the same time so it must need to service
for many users. However, a personal computer operating system designed for one user
normally.
• Mainframe OS is more powerful and expensive than PC OS.
• Mainframe OS designed to huge process from many users and it means, it manages lots
of I/O for many users, but in PC OS there is just one user to log in it means, it does not
manage lots of I/O for one user.
• Mainframe OS offers three kinds of service batch, transaction processing and
timesharing. Personal computer OS used for some basic processing like word processing,
spreadsheets and internet access that PC OS is supports multiprogramming.
Advantages of Batch OS
• The use of a resident monitor improves computer efficiency as it eliminates CPU time
between two jobs.
Disadvantages of Batch OS
1. Starvation
Batch processing suffers from starvation.
For Example:
If there are five jobs J1, J2, J3, J4, and J5, present in the batch. If the execution time of J1 is very
high, then the other four jobs will never be executed, or they will have to wait for a very long
time. Hence the other processes get starved.
2. Not Interactive
Batch Processing is not suitable for jobs that are dependent on the user's input. If a job requires
the input of two numbers from the console, then it will never get it in the batch processing
scenario since the user is not present at the time of execution.
• Security and integrity of user programs loaded in memory and data need to be
maintained as many users access the system at the same time.
• Operating System provides a user-friendly graphic interface for all users. It also offers
several icons, menus, buttons, and various navigations. So, users may interact with the
computer system easily.
• The operating system permits the user to be shared the data or related data with other
users via Modems, Printers, and Players. Furthermore, a single user can share the same
material with several people simultaneously via email. Moreover, many photos,
software, and media files may be transferred from one system to another system using
the operating system.
• An operating system may manage several tasks at the same time. It permits users to
perform multiple tasks simultaneously. There is no requirement to close one window to
open another window.
• On the computer, there is a large amount of user data that may only be accessed with
the assistance of an operating system. Aside from storing and accessing data, and OS's
other important responsibility is to handle data safely and securely.
Disadvantages
• Some OSs are more expensive than open-source platforms like Linux. While users may
use a free operating system, they are often more difficult to operate than conventional
operating systems. Furthermore, operating systems with GUI functionality and other
built-in features are expensive, such as Microsoft Windows.
• Operating systems are highly complicated, and the language used to design them is not
straightforward or well-defined. Moreover, the user may not understand whether there
is a problem with the OS. So, it can't be resolved quickly.
• If the central OS fails, the whole system will halt, and the system will not work.
Furthermore, an operating system is the core of a computer system, and without an
operating system, it cannot work.
D).Distributed Operating System
A distributed operating system is a concept in which distributed applications run on several
linked systems via communications. A distributed OS is a network OS modification that enables
more communication and integration amongst network computers.
It uses a single communication channel to connect several machines. Additionally, each of these
systems is equipped with a processor and memory. These CPUs may also communicate across
high-speed buses or telephone lines. Individual systems communicating over a single channel
are considered to be separate entities. They're also known as loosely coupled systems.
It consists of several computers, nodes, and sites that are linked together through LAN/WAN
lines. It enables the distribution of whole systems on a couple of center processors and supports
a wide set of real-time products and users. Distributed operating systems may share computer
resources and input/output files while also giving virtual machine abstraction to users.
• Client-Server Systems
• Peer-to-Peer Systems
• Middleware
• Three-tier
• N-tier
• It can share all resources, including a network interface, CPU, computers, and disk
nodes, from one site to another, increasing data availability across the whole system.
• It provides better portability.
• Most distributed OS are composed of multiple nodes that interact to make them fault-
tolerant. Even if a single machine fails, the system continues to function.
Disadvantages
Servers: Similarly, when we talk the word Servers, it means a person or medium that serves
something. Similarly in this digital world a Server is a remote computer which provides
information (data) or access to particular services.
So, it’s basically the Client requesting something and the Server serving it as long as its present
in the database.
• Clients are prone to viruses, Trojans and worms if present in the Server or uploaded
into the Server.
• Server are prone to Denial of Service (DOS) attacks.
• Data packets may be spoofed or modified during transmission.
• Phishing or capturing login credentials or other useful information of the user are
common and MITM (Man in the Middle) attacks are common.
• Software Cluster
• Hardware Cluster
Software Cluster
The Software Clusters allows all the systems to work together.
Hardware Cluster
It helps to allow high-performance disk sharing among systems.
There are mainly three types of the clustered operating system:
• Asymmetric Clustering System
Disadvantages
Various disadvantages of the Clustered Operating System are as follows:
1. Cost-Effective
One major disadvantage of this design is that it is not cost-effective. The cost is high, and the
cluster will be more expensive than a non-clustered server management design since it requires
good hardware and a design.
2. Required Resources
Clustering necessitates the use of additional servers and hardware, making monitoring and
maintenance difficult. As a result, infrastructure must be improved.
3. Maintenance
It isn't easy to system establishment, monitor, and maintenance this system.
I).Realtime system
A real-time system means that the system is subjected to real-time, i.e., the response should be
guaranteed within a specified timing constraint or the system should meet the specified
deadline. For example, flight control systems, real-time monitors, etc.
1. Hard real-time system: This type of system can never miss its deadline. Missing the deadline
may have disastrous consequences. The usefulness of results produced by a hard real-time
system decreases abruptly and may become negative if tardiness increases. Tardiness means
how late a real-time system completes its task with respect to its deadline. Example: Flight
controller system.
Soft real-time system: This type of system can miss its deadline occasionally with some
acceptably low probability. Missing the deadline have no disastrous consequences. The
usefulness of results produced by a soft real-time system decreases gradually with an increase
in tardiness. Example: Telephone switches.
Advantages of Real-time operating system:
The benefits of real-time operating system are as follows-:
• Easy to layout, develop and execute real-time applications under the real-time operating
system.
• The real-time working structures are extra compact, so those structures require much
less memory space.
• Focus on running applications and less importance to applications that are in the queue.
• Since the size of programs is small, RTOS can also be embedded systems like in transport
and others.
• Real-time operating systems have complicated layout principles and are very costly to
develop.
• Real-time operating systems are very complex and can consume critical CPU cycles.
J).Handheld OS
Handheld operating systems are available in all handheld devices like Smartphones and tablets.
It is sometimes also known as a Personal Digital Assistant. The popular handheld device in
today's world is Android and iOS. These operating systems need a high-processing processor
and are also embedded with various types of sensors.
1. Since the development of handheld computers in the 1990s, the demand for software to
operate and run on these devices has increased.
2. Three major competitors have emerged in the handheld PC world with three different
operating systems for these handheld PCs.
3. More recently, some companies producing handheld PCs have also started offering a
handheld version of the Linux operating system on their machines.
4.Configurability.