Computer Software & Others
Computer Software & Others
Hardware
System Application
Software Software
Operating
System
These programs work in
close interaction with each
other.
Operating System
Operating System (OS) is the principal component
of system software and is responsible for overall
management of computer resources. It also provides
an interface between the computer and the user and
helps in implementing the application programs.
Major functions of an operating system are:
• Word processor
• Spreadsheet
• Database Manager
• Web Browser
Unique Application
Programs
There are situations where organizations need
to develop their own programs to accomplish
certain tasks that are unique to their areas of
operations. Similarly, individuals like scientists,
engineers, accountants, teacher and other
professionals write their own programs to solve
their problems. Such programs are known as
unique application programs or
application-specific programs. These
programs are also referred to as end-user
application programs.
Unique Application
Programs
Examples of unique applications include:
Compute Compute
Tax Loans
Algorithms
Algorithms help a programmer in breaking down the solution
of a problem into a number of sequential steps. Corresponding
to each step a statement is written in a programming language;
all these statements are collectively termed as a program.
Num1=value
1Num2=valu
e2
Result=Num1+Num
2
Display
(Result)
Stop
Pseudocodes
Analyzing a detailed algorithm before developing a
program is very time consuming. Hence, there arises
a need of a specification that only focuses on the
logic of the program. Pseudocodes serve this
purpose by specifying only the logic, which is used by
the programmer for developing a computer program.
Pseudocode is not written using specific syntax of a
programming language rather its is written with a
combination of genetic syntax and normal English
language. It helps the programmer understand the
basic logic of the program after which it is the
programmer’s choice to write the final code in any
programming language.
Pseudocodes
A pseudocode to add two numbers and
display the result
Define: Integer num1, num2, result.
Input: Integer num1.
Input: Integer num2.
Sum: result=num1+num2.
Output: Display (result).
Structuring the Logic
The basic structure of a program comprises of
different sets of the statements, whose
execution is dependent on some conditions
and decisions. These conditions and decision-
making statements are specified in a control
structure. Depending upon the sequence of
the execution of the statements, the control
structures are categorized into the following
types:
Structuring the Logic
Sequence structure: The execution of the statements
in a sequence structure is done sequentially, i.e., all the
statements are executed in the same order as they are
written in the program.
Selection structure: In the selection structure, two sets
of statement blocks are written in a program along with
one or more conditions. The execution of a particular
blocks’ statements occurs only if the conditional
statement specified at the beginning of the block is true.
Repetition structure: In the repetition structure, a
block of two or more instructions is specified along with
the conditional statement. The execution of these
instructions is repeated many times if the conditional
statement is true.
Using the Computer
Whenever a user wants to use a computer for
solving a problem, he/she has to perform various
interrelated tasks in a systematic manner.
A user can not get the solution of a problem by
simply providing input to the computer without
preparing the base for solving the problem.
The working process of a computer is similar to
the human mind, which first analyses the
complete situation of a problem, its causes and
its parameters, and then decides the way to solve
the problem on the basis of available parameters.
Using the Computer
All the activities, which have to be performed
by a user in order to solve a problem using
computer, are grouped into three phases:
Microsoft Windows
MacIntosh OS
Linux
MS Windows Versions
Home (Non-Professional) Versions
• Windows 95
• Windows 98
• Windows Me
Professional (Business) Versions
• Windows NT
• Windows 2000
The Two Lines Came Together in Windows XP (2001)
Disk Operating System
( DOS )
Process state
Process Control Block (PCB)
Process operations
Process scheduling
Process synchronization
Interprocess communication
Deadlock
Process State
A process state can be defined as the
condition of a process at a particular instant New
of time. There are basically seven states of a
process:
New: It specifies the time when a process is Ready
created.
Ready: It specifies the time when a process
is loaded into the memory and is ready for Waiting
execution.
Waiting: It specifies the time when a
process waits for the allocation of CPU time
and other resources for its execution. Executin
Executing: It is the time when a process is g
being executed by the CPU.
Blocked: It specifies the time when a Blocked Suspende
process is waiting for an event like I/O d
operation to complete.
Suspended: It specifies the time when a
process is ready for execution but has not Terminate
been placed in the ready queue by the d
operating system.
Terminated: It specifies the time when a
Process Control Block
Process Control Block (PCB) is a data structure associated
with a process that provides complete information about the
process. PCB comprises of the following:
Sub-
File 1 directory File 2
File 3 File 4