Module 1
Module 1
CHAPTER
01
THE OVERVIEW
Explain the role of the Operating System in the overall computer system.
Draw and discuss the general organization of a computer system and the role of interrupts.
Differentiate Single Processor Systems, Multiprocessor Systems, and Clustered Systems
Illustrate the transition from user mode to kernel mode.
Discuss how operating systems are used in various computing environments.
Provide examples of free and open-source operating systems.
If Mr. Juan speaks Chinese and Ms. Juana speaks English, it will be very difficult
for them to communicate. Therefore, the solution is to have another person in
between, who understands and communicates in both languages. So, this person in
between is called an intermediate who will translate the communication for Juan
and Juana.
The same principle also applies to computer systems. The computer system's
hardware is on one side, and the user is on the other. Without an intermediate
between them, it is not possible for the computer user to operate the computer
system easily and efficiently.
In short, Operating System acts as
an interface between the user and the
computer hardware and controls the
execution of all kinds of programs.
In fact, Operating Systems are everywhere, from cars and home appliances that
include “Internet of Things” devices, to smartphones, personal computers, enterprise
computers, and cloud computing environments.
The operating system on cars is responsible for managing all the different
systems and subsystems in a vehicle. This
includes everything from the engine and
transmission to the headlight and
infotainment system. It is also responsible
for managing the data that is collected by
all the different sensors in a vehicle. A few
companies make car operating systems,
but the two most popular are Android
Automotive and Apple CarPlay. Android Automotive is used by several different
carmakers like Audi, Volvo, and Nissan. Apple CarPlay is used by BMW, Mercedes-
Benz, and Ferrari to mention some.
MEMORY
What is CPU?
- The main part of the computer system.
- It is the brain of the computer system.
- It is the processing unit that is where all the processing and calculations
take place in the computer.
- It is the small chip embedded into your motherboard and that small chip is
responsible for performing all computations and calculations.
Looking at the diagram above, there are some hardware like disk (hard disks),
mouse, keyboard, printer, monitor, and some other kinds of computer hardware.
Each of the hardware devices is connected to a controller. The controller is
responsible for the way these devices work. For example, disks are connected via a
disk controller, and the mouse, keyboard, and printer are USB devices and they are
connected to a USB controller that takes care of how these devices perform. The
monitor which is a display device is connected to a video adapter. Then, the CPU
along with the controllers are connected via a common bus which is represented by
the horizontal line and the common bus is connected to the memory.
Thus, each device controller is in charge of a specific type of device. The CPU
and the device controllers can execute concurrently, competing for memory cycles.
To ensure orderly access to the shared memory, a memory controller is provided
whose function is to synchronize access to the memory. Whenever you execute
something that must be loaded into your main memory. So, all these devices in order
to work need to be loaded into the main memory for any execution that must be
performed.
In this kind of computer system, we only have one (1) main CPU which can
execute the general-purpose instruction set as well as the instruction from
user processes.
Other special-purpose processors are also present which perform device-
specific tasks.
o We have certain devices in our computer like keyboard, hard disk and
so on. There may be some microprocessors to do specific tasks related
to that device.
o For example, when you press any key from your keyboard the
keystroke must be converted to some kind of code like binary code so
that the computer will understand what you have pressed or what you
are typing. So, in order to convert the keystroke into a code there is a
little microprocessor present on your keyboard that is going to perform
2. Multiprocessor Systems
o Economy of Scale
Multiprocessor systems are more economical compared to a
single processor system and that is because they have different
processors sharing the resources of the computer systems.
o Increase reliability
It is more reliable as compared to single-processor systems
because it has more processors and even if a single processor
fails the remaining processors can help to make the work done
without causing a total failure of the system.
o Symmetric Multiprocessing
o Asymmetric Multiprocessing
Application Programs
Device Drivers
(The User)
File System
Signal, terminal CPU Scheduling
Swapping block I/O
handling Page replacement
Kernel system
Character I/O Demand paging
Disk and Tape
system Virtual Memory
drivers
Terminal derivers
Layer N
User Interface
:
:
Layer 1
Layer 0
Hardware
Scheduling
Classes
Device & Bus
Drivers
File Systems
Miscellaneous
Core Kernel Loadable
Modules
System Calls
Stream
Modules Executable
Formats
passing.
The open-source operating system allows the use of code that is freely
distributed and available to anyone and for commercial purposes. Being an
open-source application or program, the program source code of an open-
source OS is available. The user may modify or change those codes and
develop new applications according to the user’s requirements. Some basic
examples of open-source operating systems are Linux, Open Solaris, Free
RTOS, Open BDS, Free BSD, Minix, etc.
It works similarly to a closed operating system, except that the user may
modify the source code of the program or application. There may be a
difference in function even if there is no difference in performance.
While the former operating system is secure and hassle-free, and the latter
requires some technical knowledge, you may customize these and increase
performance. There is no specific way or framework for working on the open-
source OS, but it may be customized to the user’s requirements.
Most of the open-source operating systems are Linux based. Some of the
best open-source operating systems are as follows:
1. Linux Kernel
2. Linux Lite
The operating system has been stable and has received regular updates in
the last five years. It is efficiently functional soon after installation. After
installation, users are not required to install any further drivers. If you want a
lightweight open-source operating system on your PC, go with Linux Lite.
3. Linux mint
4. Fedora
6. Solus
Solus is a free and open-source operating system for your desktop computer.
It's a new operating system from the Linux family, released in 2012.
7. Chrome OS
The only issue with the operating system is that it only supports Nexus
devices or its hardware. As a result, if you're a Google fan, you'll love Chrome
OS on a Chromebook.
Advantages:
1. Reliable and efficient
2. Cost-efficient
Most open-source operating systems are free. And some of them are far less
expensive than commercially closed products.
3. Flexibility
The great advantage is you may customize it as per your requirement. And
there is creative freedom.
Disadvantages:
1. Complicated
It is not as user-friendly as the ones that are closed. To use this software, you
must have a basic understanding of technology.
2, Security Risk
Despite the defects having been detected, there is a risk of assaults because
the attackers have access to the source code.
3. No support
If you run across an issue, there is no customer support available to assist
you.