Professional Documents
Culture Documents
Unit 2 IT NOTES
Unit 2 IT NOTES
Languages
Computer Software
Computer software is programming code executed on a computer processor.
The code can be machine-level code, or code written for an operating system.
An operating system is software intended to provide a predictable and
dependable layer for other programmers to build other software on, which are
known as applications. It also provides a dependable layer for hardware
manufacturers. This standardization creates an efficient environment for
programmers to create smaller programs, which can be run by millions of
computers. Software can also be thought of as an expression that contrasts with
hardware. The physical components of a computer are the hardware; the digital
programs running on the hardware are the software. Software can also be
updated or replaced much easier than hardware. Additionally, software can be
distributed to a number of hardware receivers. Basically, software is the
computer logic computer users interact with.
Types of Software
Software is a set of programs, which is designed to perform a well-defined function. A
program is a sequence of instructions written to solve a particular problem.
Software is the language of a computer. And like human language, there are many different
computer languages. Essentially, computer software can be divided into three main groups
depending on their use and application. These are system software or operating system
referred simply as the OS, application software and programming languages. Usually most of us
interact with a computer using application software.
System Software
Application Software
1. System Software
The system software is a collection of programs designed to operate, control, and extend the
processing capabilities of the computer itself. System software is generally prepared by the
computer manufacturers. These software products comprise of programs written in low-level
languages, which interact with the hardware at a very basic level. System software serves as
the interface between the hardware and the end users.
Some examples of system software are Operating System, Compilers, Interpreter, Assemblers,
etc.
Application Software
Application software may consist of a single program, such as Microsoft’s notepad for writing
and editing a simple text. It may also consist of a collection of programs, often called a software
package, which work together to accomplish a task, such as a spreadsheet package.
Payroll Software
Student Record Software
Inventory Management Software
Income Tax Software
Railways Reservation Software
Microsoft Office Suite Software
Microsoft Word
Microsoft Excel
Microsoft PowerPoint
An operating system is software that manages the computer hardware. The hardware must
provide appropriate mechanisms to ensure the correct operation of the computer system and
to prevent user programs from interfering with the proper operation of the system.
An operating system is a program that controls the execution of application programs and acts
as an interface between the user of a computer and the computer hardware.
A more common definition is that the operating system is the one program running at all times
on the computer (usually called the kernel), with all else being application programs.
An operating system is concerned with the allocation of resources and services, such as
memory, processors, devices, and information. The operating system correspondingly includes
programs to manage these resources, such as a traffic controller, a scheduler, memory
management module, I/O programs, and a file system.
User
System and application programs
Operating system
Hardware
Hardware
Every general purpose computer consists of the hardware, operating system, system programs,
and application programs. The hardware consists of memory, CPU, ALU, and I/O devices,
peripheral device, and storage device. System program consists of compilers, loaders, editors,
OS, etc. The application program consists of business programs, database programs.
The operating system is a set of special programs that run on a computer system that allows it
to work properly. It performs basic tasks such as recognizing input from the keyboard, keeping
track of files and directories on the disk, sending output to the display screen and controlling
peripheral devices.
It controls the allocation and use of the computing System’s resources among the
various user and tasks.
It provides an interface between the computer hardware and the programmer that
simplifies and makes feasible for coding, creation, debugging of application programs.
The Operating system must support the following tasks. The task are:
(i) Provides the facilities to create, modification of programs and data files using an editor.
(ii) Access to the compiler for translating the user program from high level language to machine
language.
(iii) Provide a loader program to move the compiled program code to the computer’s memory
for execution.
Functions of OS
Booting
Booting is a process of starting the computer operating system starts the
computer to work. It checks the computer and makes it ready to work.
Memory Management
It is also an important function of the operating system. The memory cannot be
managed without an operating system. Different programs and data execute in
memory at one time. if there is no operating system, the programs may mix with
each other. The system will not work properly.
Data Security
Disk Management
Operating system manages the disk space. It manages the stored files and
folders in a proper way.
Process Management
CPU can perform one task at one time. if there are many tasks, operating
system decides which task should get the CPU.
Device Controlling
Operating system also controls all devices attached to computer. The hardware
devices are controlled with the help of small software called device driver,
Printing Controlling
Operating system also controls printing function. It a user issues two print
commands at a time, it does not mix data of these files and prints them
separately.
Providing Interface
It is used in order that user interface acts with a computer mutually. User
interface controls how you input data and instruction and how information is
displayed on screen. The operating system offers two types of the interface to
the user;
Types of OS
An Operating System performs all the basic tasks like managing file,process, and
memory. Thus operating system acts as manager of all the resources, i.e.
resource manager. Thus operating system becomes an interface between user
and machine.
Types of Operating Systems: Some of the widely used operating systems are as
follows:
The other jobs will have to wait for an unknown time if any job fails
Reliability problem
One must have to take care of security and integrity of user programs and data
Data communication problem
Failure of one will not affect the other network communication, as all systems
are independent from each other
Electronic mail increases the data exchange speed
Since resources are being shared, computation is highly fast and durable
Load on host computer reduces
These systems are easily scalable as many systems can be easily added to the
network
Delay in data processing reduces
Real-time systems are used when there are time requirements are very strict
like missile systems, air traffic control systems, robots etc.
Advantages of RTOS:
Disadvantages of RTOS:
Limited Tasks: Very few tasks run at the same time and their concentration is
very less on few applications to avoid errors.
Use heavy system resources: Sometimes the system resources are not so good
and they are expensive as well.
Complex Algorithms: The algorithms are very complex and difficult for the
designer to write on.
Device driver and interrupt signals: It needs specific device drivers and interrupt
signals to response earliest to interrupts.
Thread Priority: It is not good to set thread priority as these systems are very
less prone to switching tasks.
Booting procedure
Booting Procedure
Booting (also known as booting up) is the initial set of operations that a computer system
performs when electrical power is switched on. The process begins when a computer that has
been turned off is re-energized, and ends when the computer is ready to perform its normal
operations. On modern general purpose computers, this can take tens of seconds and typically
involves performing power-on self-test, locating and initializing peripheral devices, and then
finding, loading and starting an operating system. Many computer systems also allow these
operations to be initiated by a software command without cycling power, in what is known as a
soft reboot, though some of the initial operations might be skipped on a soft reboot. A boot
loader is a computer program that loads the main operating system or runtime environment for
the computer after completion of self-tests.
The computer term boot is short for bootstrap or bootstrap load and derives from the phrase to
pull oneself up by one’s bootstraps. The usage calls attention to the paradox that a computer
cannot run without first loading software but some software must run before any software can
be loaded. Early computers used a variety of ad-hoc methods to get a fragment of software
into memory to solve this problem. The invention of integrated circuit Read-only memory (ROM)
of various types solved the paradox by allowing computers to be shipped with a startup
program that could not be erased, but growth in the size of ROM has allowed ever more
elaborate start up procedures to be implemented.
There are numerous examples of single and multi-stage boot sequences that begin with the
execution of boot program(s) stored in boot ROMs. During the booting process, the binary code
of an operating system or runtime environment may be loaded from nonvolatile secondary
storage (such as a hard disk drive) into volatile, or random-access memory (RAM) and then
executed. Some simpler embedded systems do not require a noticeable boot sequence to begin
functioning and may simply run operational programs stored in read-only memory (ROM) when
turned on.
The order of booting:
In order for a computer to successfully boot, its BIOS, operating system and hardware
components must all be working properly; failure of any one of these three elements will likely
result in a failed boot sequence.
When the computer’s power is first turned on, the CPU initializes itself, which is triggered by a
series of clock ticks generated by the system clock. Part of the CPU’s initialization is to look to
the system’s ROM BIOS for its first instruction in the startup program. The ROM BIOS stores the
first instruction, which is the instruction to run the power-on self-test (POST), in a
predetermined memory address. POST begins by checking the BIOS chip and then tests CMOS
RAM. If the POST does not detect a battery failure, it then continues to initialize the CPU,
checking the inventoried hardware devices (such as the video card), secondary storage
devices, such as hard drives and floppy drives, ports and other hardware devices, such as the
keyboard and mouse, to ensure they are functioning properly.
Once the POST has determined that all components are functioning properly and the CPU has
successfully initialized, the BIOS looks for an OS to load.
The BIOS typically looks to the CMOS chip to tell it where to find the OS, and in most PCs, the OS
loads from the C drive on the hard drive even though the BIOS has the capability to load the OS
from a floppy disk, CD or ZIP drive. The order of drives that the CMOS looks to in order to locate
the OS is called the boot sequence, which can be changed by altering the CMOS setup. Looking
to the appropriate boot drive, the BIOS will first encounter the boot record, which tells it where
to find the beginning of the OS and the subsequent program file that will initialize the OS.
Once the OS initializes, the BIOS copies its files into memory and the OS basically takes over
control of the boot process. Now in control, the OS performs another inventory of the system’s
memory and memory availability (which the BIOS already checked) and loads the device drivers
that it needs to control the peripheral devices, such as a printer, scanner, optical drive, mouse
and keyboard. This is the final stage in the boot process, after which the user can access the
system’s applications to perform tasks.
Start up sequence
Start-up Sequence
To diagnose and correct a startup problem, you need to understand what occurs during
startup. Figure below provides a high-level overview of the different paths startup can take.
This sequence will vary if the computer is resuming from hibernation or if a non-Windows 7
option is selected during the Windows Boot Manager phase.
Windows OS
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.
Some popular Operating Systems include Linux Operating System, Windows
Operating System, VMS, OS/400, AIX, z/OS, etc.
Introduction to GUI
GUI is an interface that uses icons or other visual indicators to interact with
electronic devices, rather than only text via a command line. For example, all
versions of Microsoft Windows is a GUI, whereas MS-DOS is a command line. The
GUI was first developed at Xerox PARC by Alan Kay, Douglas Engelbart, and a
group of other researchers in 1981. Later, Apple introduced the Lisa computer
with a GUI on January 19, 1983.
The actions in a GUI are usually performed through direct manipulation of the
graphical elements. Beyond computers, GUIs are used in many handheld mobile
devices such as MP3 players, portable media players, gaming devices,
smartphones and smaller household, office and industrial controls. The term GUI
tends not to be applied to other lower-display resolution types of interfaces,
such as video games (where head-up display (HUD) is preferred), or not
including flat screens, like volumetric displays because the term is restricted to
the scope of two-dimensional display screens able to describe generic
information, in the tradition of the computer science research at the Xerox Palo
Alto Research Center.
How does a GUI work?
A GUI uses windows, icons, and menus to carry out commands, such as
opening, deleting, and moving files. Although a GUI operating system is primarily
navigated using a mouse, the keyboard can also be used to navigate using
keyboard shortcuts or the arrow keys.
As an example, if you wanted to open a software program on a GUI operating
system, you would move the mouse pointer to the program’s icon and double-
click the icon.
Benefits of GUI
Unlike a command line operating system or CUI, like Unix or MS-DOS, GUI
operating systems are much easier to learn and use because commands do not
need to be memorized. Additionally, users do not need to know any
programming languages. Because of their ease of use, GUI operating systems
have become the dominant operating system used by today’s end-users.
What are examples of a GUI operating system?
Microsoft Windows
Apple System 7 and macOS
Chrome OS
Linux variants like Ubuntu using a GUI interface.
GNOME
KDE
Any Microsoft program (e.g., Word, Excel, and Outlook).
Internet browser (e.g., Internet Explorer, Chrome, and Firefox).
Purpose of Translator
It translates high-level language program into a machine language program
that the central processing unit (CPU) can understand. It also detects errors in
the program.
Complier
ASSEMBLER
An assembler is a type of computer program that interprets software programs
written in assembly language into machine language, code and instructions that
can be executed by a computer.
An assembler enables software and application developers to access, operate
and manage a computer’s hardware architecture and components.
An assembler is sometimes referred to as the compiler of assembly language. It
also provides the services of an interpreter.
An assembler primarily serves as the bridge between symbolically coded
instructions written in assembly language and the computer processor, memory
and other computational components. An assembler works by assembling and
converting the source code of assembly language into object code or an object
file that constitutes a stream of zeros and ones of machine code, which are
directly executable by the processor.
Assemblers are classified based on the number of times it takes them to read
the source code before translating it; there are both single-pass and multi-pass
assemblers. Moreover, some high-end assemblers provide enhanced
functionality by enabling the use of control statements, data abstraction
services and providing support for object-oriented programming structures.
Types of computer languages
C++
Java
Visual Basic
Visual Java
Visual C