Bt205 Bce Unit 1
Bt205 Bce Unit 1
UNIT – 1
Computer
Unit-01/Lecture-01
Classification
•Mainframe computers.
Mainframe computers are extremely powerful and large computers that have the capacity to process the
activity of multiple users at one time. Many other smaller, less powerful computers (otherwise known as
terminals) are networked with the mainframe, meaning they are attached to the central mainframe
computer. From here, the mainframe has the capability to process and store things that come from the
connected terminals. The Mainframe computers can be accommodated in large air-conditioned rooms
because of its size. Super-computers are the fastest computers with large data storage capacity,
Mainframes can also process & store large amount of data.
•Micro-computers.
These are most commonly known as personal computers and the computers that people use on a daily
basis. Micro-computers contain their own microprocessor, which performs the job of a mainframe
computer but with considerably less power as it is only required to process the activities of one machine.
Microprocessors became the most common type of processing equipment as they featured
predominantly in personal computers. They had enough power to perform the basic recreational
activities that people owning personal computers required. Typically, personal computers were used for
playing music and movies as well as surfing the Internet and word processing amongst other things.
Micro-computers are your typical laptop or desktop computers and are widely available at relatively
affordable prices.
2
•Mini-computers.
These computers fall in the gap between micro-computers and mainframe computers. They possess much
more power than a micro-computer, but not enough to perform the tasks of a mainframe computer.
These were developed in the 60s and gradually became less expensive as time moved on and technology
became more widely available. Minicomputers are also called as“Midrange Computers”. These are small
machines and can be accommodated on a disk with not as processing and data storage capabilities as
super-computers & Mainframes. For example, a production department can use Mini-computers for
monitoring certain production process.
•Super computers.
Super computers are the most powerful computers ever invented. They are used to process an enormous
amount of terminal activity; even more than that of a mainframe computer. In fact, in the event of
optimizing the performance of a mainframe computer, that will create a super computer.
Organization
(1) CPU([RGPV/ June 2013 (3.5)]
A central processing unit (CPU) (formerly also referred to as a central processor unit[1]) is the
hardware within a computer that carries out the instructions of a computer program by performing
the basic arithmetical, logical, and input/output operations of the system.
3
Reference:
Basic Computer Engineering: E Balagurusamy, TMH- Page no: 1.2- 1.4
Basic Computer Engineering: Sanjay Silakari and Rajesh K. Shukla, Wiley- Page no: 2-3
Unit-01/Lecture-02
In a computer, a register is one of a small set of data holding places that are part of a computer
processor . A register may hold a computer instruction , a storage address, or any kind of data (such as a
bit sequence or individual characters). Some instructions specify registers as part of the instruction. For
example, an instruction may specify that the contents of two defined registers be added together and
then placed in a specified register.
In computer architecture, a processor register is a very fast computer memory used to speed the
execution of computer programs by providing quick access to commonly used values-typically, the
values being in the midst of a calculation at a given point in time.
These registers are the top of the memory hierarchy, and are the fastest way for the system to
manipulate data. In a very simple microprocessor, it consists of a single memory location, usually called
an accumulator. Registers are built from fast multi-ported memory cell. The result of ALU operation is
stored here and could be re-used in a subsequent operation or saved into memory.
Registers are normally measured by the number of bits they can hold, for example, an “8-bit register” or
a “32-bit register”. Registers are now usually implemented as a register file, but they have also been
implemented using individual flip-flops, high speed core memory, thin film memory, and other ways in
various machines.
There are various types of Registers those are used for various purpose([RGPV/ June 2013, Dec 2013
(10)]
1) Accumulator: It is most frequently used register used to store data taken from memory. Its number
varies from microprocessor to microprocessor.
2) General Purpose registers: General purpose registers are used to store data and intermediate results
during program execution. Its contents can be accessed through assembly programming.
3) Special purpose Registers: Users do not access these registers. These are used by computer system
at the time of program execution. Some types of special purpose registers are given below:
4) Memory Address Register (MAR): It stores address of data or instructions to be fetched from
memory.
5) Memory Buffer Register (MBR): It stores instruction and data received from the memory and sent
from the memory.
5
6) Instruction Register (IR): Instructions are stored in instruction register. When one instruction is
completed, next instruction is fetched in memory for processing.
7) Program Counter (PC): It counts instructions.
Bus architecture Register ([RGPV/ June 2012, Dec 2013, June 2012 (10)]
In computer architecture, a bus is a communication system that transfers data between components
inside a computer, or between computers. This expression covers all related hardware components
(wire, optical fiber, etc.) and software, including communication protocols.
Early computer buses were parallel electrical wires with multiple connections, but the term is now used
for any physical arrangement that provides the same logical functionality as a parallel electrical bus.
Modern computer buses can use both parallel and bit serial connections.
The three buses are the address bus, the data bus and the control bus.
1) Data Bus
The data bus consists of 8, 16, or 32 parallel signal lines. The data bus lines are bidirectional. Many
devices in a system will have their outputs connected to the data bus, but only one device at a time will
have its outputs enabled. Any device connected on the data bus must have
three-state outputs so that its outputs can be disabled when it is not being used to put data on the bus.
2) Address Bus
The address bus consists of 16, 20, 24, or 32 parallel signal lines. On these lines the CPU sends out the
address of the memory location that is to be written to or read from. The number of memory locations
6
that the CPU can address is determined by the number of address lines. If the CPU has N address lines,
then it can directly address 2N memory locations. CPU with 16 address lines can address 65,536
memory CPU with 20 address lines can address 1,048,576 locations. When the CPU reads data from or
writes data to a port, it sends the port address out on the address bus.
3) Control Bus
The control bus consists of 4 to 10 parallel signal lines. The CPU sends out signals on the control bus to
enable the outputs of addressed memory devices or port devices. Typical control bus signals are
Memory Read, Memory Write, I/O Read, and l/O Write. To read a byte of data from a memory location,
the CPU sends out the memory address of the desired byte on the address bus and then sends out a
Memory Read signal on the control bus. The Memory Read signal enables the addressed memory
device to output a data word onto the data bus. The data word from memory travels along the data bus
to the CPU.
Reference:
Basic Computer Engineering: E Balagurusamy, TMH- Page no: 1.7, 1.12
Basic Computer Engineering: Sanjay Silakari and Rajesh K. Shukla, Wiley- Page no:22
Q.2 Define a register. Write and explain the purpose Dec 2013, DEC 10, 2
of different types of registers. 2014
Q.3 Explain about different types of buses and bus Dec 2013, 10, 2
architecture. DEC2014
Q.4 Define the following (1) instruction register (2) June 2012 10
program counter
Q.5 What is the function of the following (1) address June 2012 10
bus (2) control unit
Q.6 Differentiate between address bus, data bus Dec 2010 10
and control bus.
Q.7 What are the different types of buses? Explain JUNE 2015 2
the difference between address bus and data
bus.
7
Unit-01/Lecture-03
Instruction set
The instruction set, also called instruction set architecture (ISA), is a part of the computer that pertains
to programming, which is basically machine language. The instruction set provides commands to the
processor, to tell it what it needs to do. The instruction set consists of multiple pieces, including
addressing modes, instructions, native data types, registers, memory architecture, interrupt, and
exception handling, and external I/O.
A complex instruction set computer (CISC) has many specialized instructions, which may only be
rarely used in practical programs. Typically CISC chips have a large amount of different and complex
instructions. The philosophy behind it is that hardware is always faster than software, therefore one
should make a powerful instruction set, which provides programmers with assembly instructions to
do a lot with short programs.
In common CISC chips are relatively slow (compared to RISC chips) per instruction, but use little (less
than RISC) instructions.
A reduced instruction set computer (RISC) simplifies the processor by only implementing instructions
that are frequently used in programs; unusual operations are implemented as subroutines, where the
extra processor execution time is offset by their rare use.
It is that almost no one uses complex assembly language instructions as used by CISC, and people
mostly use compilers which never use complex instructions. Apple for instance uses RISC chips.
Therefore fewer, simpler and faster instructions would be better, than the large, complex and slower
CISC instructions. However, more instructions are needed to accomplish a task.
Another advantage of RISC is that - in theory - because of the more simple instructions, RISC chips
require fewer transistors, which makes them easier to design and cheaper to produce.
Finally, it's easier to write powerful optimised compilers, since fewer instructions exist.
8
CISC RISC
Reference:
Unit-01/Lecture-04
The computer memory is a temporary storage area. It holds the data and instructions that the Central
Processing Unit (CPU) needs. Before a program can be run, the program is loaded from some storage
medium into the memory. This allows the CPU direct access to the program. Memory is a need for any
computer.
The term "memory", meaning primary memory is often associated with addressable semiconductor
memory, i.e. integrated circuits consisting of silicon-based transistors, used for example as primary
memory but also other purposes in computers and other digital electronic devices. There are two
main types of semiconductor memory: volatile and non-volatile.
• Volatile
Volatile memory is computer memory that requires power to maintain the stored information.RAM is
a type of volatile memory.
• Non Volatile
Non-volatile memory is computer memory that can retain the stored information even when not
powered. Examples of non-volatile memory include read-only memory.
1. Primary memory
It is the built in memory of the computer system. The term primary memory is used for the
information in physical systems which function at high-speed (i.e. RAM). Primary storage (or main
memory or internal memory), often referred to simply as memory, is the only one directly
accessible to the CPU. The CPU continuously reads instructions stored there and executes them as
required. Any data actively operated on is also stored there in uniform manner.\
Characteristics of Main Memory
2.Secondary Memory
The term storage is often used to describe secondary memory such as tape, magnetic disks and
optical discs (CD-ROM and DVD-ROM). This type of memory is also known as external memory or
non-volatile. It is slower than main memory. These are used for storing data/Information
permanently. CPU directly does not access these memories instead they are accessed via input-
output routines. Contents of secondary memories are first transferred to main memory, and then
CPU can access it. For example : disk, CD-ROM, DVD etc.
11
Reference:
Q.3 What is the purpose of memory in computer? What are June 2011 10
volatile and non volatile memories? Explain.
Q.4 Compare CISC and RISC. June 2010 10
Q.5 What is the purpose of main memory? Define the non- JUNE 2015 2
volatile memory.
12
Unit-01/Lecture-05
Mouse LCD
Joystick Printer
Scanner Plotter
Light Pen
Touch Screen
(a) Keyboard
It is a text base input device that allows the user to input alphabets, numbers and
other characters. It consists of a set of keys mounted on a board.
• Alphanumeric Keypad
It consists of keys for English alphabets, 0 to 9 numbers, and special characters like + − / * ( )
etc.
• Function Keys
There are twelve function keys labeled F1, F2, F3… F12. The functions assigned to these keys
differ from one software package to another. These keys are also user programmable keys.
• Special-function Keys
These keys have special functions assigned to them and can be used only for those specific
13
• Caps Lock
Cap Lock is used to toggle between the capital lock features. When ‘on’, it locks the
alphanumeric keypad for capital letters input only.
• Tab
Tab is used to move the cursor to the next tab position defined in the document. Also, it is
used to insert indentation into a document.
• Ctrl
Control key is used in conjunction with other keys to provide additional functionality on the
keyboard.
• Alt
Also like the control key, Alt key is always used in combination with other keys to perform
specific tasks.
• Esc
This key is usually used to negate a command. Also used to cancel or abort executing
programs.
• Numeric Keypad
Numeric keypad is located on the right side of the keyboard and consists of keys having
numbers (0 to 9) and mathematical operators (+ − * /) defined on them. This keypad is
provided to support quick entry for numeric data.
• Cursor Movement Keys
These are arrow keys and are used to move the cursor in the direction indicated by the arrow
(up, down, left, right).
14
(b) Mouse
The mouse is a small device used to point to a particular place on the screen and select in order to
perform one or more actions. It can be used to select menu commands, size windows, start programs
etc.
The most conventional kind of mouse has two buttons on top: the left one being used most
frequently.
Mouse Actions
Left Click : Used to select an item.
Double Click : Used to start a program or open a file.
Right Click : Usually used to display a set of commands.
Drag and Drop : It allows you to select and move an item from one location to another. To achieve
this place the cursor over an item on the screen, click the left mouse button and while holding the
button down move the cursor to where you want to place the item, and then release it.
(c) Joystick
The joystick is a vertical stick which moves the graphic cursor in a direction the stick is moved. It
typically has a button on top that is used to select the option pointed by the cursor. Joystick is used as
an input device primarily used with video games, training simulators and controlling robots.
(d)Scanner
Scanner is an input device used for direct data entry from the source document into the computer
system. It converts the document image into digital form so that it can be fed into the computer.
Capturing information like this reduces the possibility of errors typically experienced during large
data entry.
Hand-held scanners are commonly seen in big stores to scan codes and price information for each of
the items. They are also termed the bar code readers.
(h)Digital camera
A digital camera can store many more pictures than an ordinary camera. Pictures taken using a digital
camera are stored inside its memory and can be transferred to a computer by connecting the camera
to it. A digital camera takes pictures by converting the light passing through the lens at the front into
a digital image.
(c) Printer
Printers are used to produce paper (commonly known as hardcopy) output. Based on the technology
used, they can be classified as Impact or Non-impact printers. Impact printers use the typewriting
printing mechanism wherein a hammer strikes the paper through a ribbon in order to produce
output. Dot-matrix and Character printers fall under this category.
Non-impact printers do not touch the paper while printing. They use chemical, heat or electrical
signals to etch the symbols on paper. Inkjet, Deskjet, Laser, Thermal printers fall under this category
of printers.
When we talk about printers we refer to two basic qualities associated with printers: resolution, and
speed. Print resolution is measured in terms of number of dots per inch (dpi). Print speed is
measured in terms of number of characters printed in a unit of time and is represented as characters-
per-second (cps), lines-per-minute (lpm), or pages-per-minute (ppm).
16
(d) Plotter
Plotters are used to print graphical output on paper. It interprets computer commands and makes
line drawings on paper using multicolored automated pens. It is capable of producing graphs,
drawings, charts, maps etc. Computer Aided Engineering (CAE) applications like CAD (Computer
Aided Design) and CAM (Computer Aided Manufacturing) are typical usage areas for plotters.
Reference:
Basic Computer Engineering: E Balagurusamy, TMH- Page no: 1.16-1.20
Basic Computer Engineering: Sanjay Silakari and Rajesh K. Shukla, Wiley- Page no: 17
Unit-01/Lecture-06
Computer software, or simply software, also known as computer programs, is the non-tangible
component of computers. Computer software contrasts with computer hardware, which is the physical
component of computers. Computer hardware and software require each other and neither can be
realistically used without the other.
Computer software includes all computer programs regardless of their architecture; for example,
executable files, libraries and scripts are computer software.
a) System software is designed to operate the computer hardware, to provide basic functionality,
and to provide a platform for running application software. System Software have direct control
and access to your computer hardware , and memory locations . They perform I/O operations
on various memory locations , and control the hardware , to make the application software do a
task . Operating systems , are the main examples for system software .
Examples :
1) Microsoft Windows
2) Linux
3) Unix
4) Mac OSX
5) DOS
6) BIOS Software
7) HD Sector Boot Software
8) Device Driver Software i.e Graphics Driver etc
9) Linker Software
10) Assembler and Compiler Software
i. Operating system, an essential collection of computer programs that manages resources and
provides common services for other software. Supervisory programs, boot loaders, shells and
window systems are core parts of operating systems. In practice, an operating system comes
bundled with additional software (including application software) so that a user can potentially
do some work with a computer that only has an operating system.
ii. Device driver, a computer program that operates or controls a particular type of device that is
attached to a computer. Each device needs at least one corresponding device driver; thus a
18
iii. Utilities, software designed to assist users in maintenance and care of their computers.
b) Application software uses the computer system to perform useful work or provide
entertainment functions beyond the basic operation of the computer itself. Application
software run under System Software , and are made to do a specific task i.e ( Word Processing
etc) , which have indirect access to the hardware (i.e Behind System Software) .
Examples :
Web browser, word processing software, spreadsheet software, database software,
presentation graphics software.
Reference:
Basic Computer Engineering: E Balagurusamy, TMH- Page no: 1.20-1.21
Basic Computer Engineering: Sanjay Silakari and Rajesh K. Shukla, Wiley- Page no:28-29
Unit-01/Lecture-07
e Business
Globalization of trade, the emergence of Information Economies, and the growth of Internet
have recast the role of e-Com in Business and Management. In other words eCom solutions and
Infrastructure have become essential for creating competitive firms, managing global corporations,
providing useful products and services to customers through a better management of information
resources and commercial transactions.
Bio-Informatics
Bioinformatics is an interdisciplinary scientific field that develops methods for storing, retrieving,
organizing and analyzing biological data. A major activity in bioinformatics is to develop software tools
to generate useful biological knowledge.
Bioinformatics uses many areas of computer science, statistics, mathematics and engineering to
process biological data. Complex machines are used to read in biological data at a much faster rate
than before and used in decoding the code of life. Databases and information systems are used to
store and organize biological data. Analyzing biological data may involve algorithms in artificial
intelligence, soft computing, data mining, image processing, and simulation. The algorithms in turn
depend on theoretical foundations such as discrete mathematics, control theory, system theory,
information theory, and statistics. Commonly used software tools and technologies in the field include
Java, C#, XML, Perl, C, C++, Python, R, SQL, CUDA, MATLAB, and spreadsheet applications.
for measuring temperature or the anemometer for recording wind speed. The observing techniques
have become increasingly complex in recent years and satellites have now made it possible to monitor
the weather globally. Countries around the world exchange the weather observations through fast
telecommunications channels. These are plotted on weather charts and analysed by professional
meteorologists at forecasting centres. Weather forecasts are then made with the help of modern
computers and supercomputers. Weather information and forecasts are of vital importance to many
activities like agriculture, aviation, shipping, fisheries, tourism, defence, industrial projects, water
management and disaster mitigation. Recent advances in satellite and computer technology have led
to significant progress in meteorology. Our knowledge of the weather is, however, still incomplete.
Climatology
It is a study of the climate of a place or region on the basis of weather records accumulated over
long periods of time. The average values of meteorological parameters derived from a data base that
extends over several decades are called climatological normals. Different regions of the world have
different characteristic climates. However, it is now recognized that climate is not static and issues
such as climate change and global warming are receiving increasing attention.
Computer Gaming
A gaming computer (also gaming rig and sometimes called a gaming PC) is a personal computer
designed for playing computationally demanding video games. Gaming computers are very similar to
conventional PCs, with the main difference being the addition of performance-oriented components
such as a high-end CPU and one or more video cards.
The ability to combine moving images, graphics, text, and sound in meaningful ways is one of
most powerful aspects of computer technology. A dynamic and technically accurate presentation is
helpful in making the message not only understood but effective.
Multimedia is usually recorded and played, displayed, or accessed by information content processing
devices, such as computerized and electronic devices, but can also be part of a live performance.
Multimedia devices are electronic media devices used to store and experience multimedia content.
Multimedia is distinguished from mixed media in fine art; by including audio, for example, it has a
broader scope. The term "rich media" is synonymous for interactive multimedia. Hypermedia can be
considered one particular multimedia application.
Reference:
Basic Computer Engineering: E Balagurusamy, TMH- Page no: 1.23-1.25
Basic Computer Engineering: Sanjay Silakari and Rajesh K. Shukla, Wiley- Page no: 29
21
UNIT 01/LECTURE 08
Operating System ([RGPV/ June 2011, Dec 2013, June 2013 (10)]
Definition
An operating system, or "OS," is software that communicates with the hardware and allows
other programs to run. An operating system is a group of computer programs that coordinates all
the activities among computer hardware devices. It is the first program loaded into the computer by
a boot program and remains in memory at all times.
It is comprised of system software, or the fundamental files your computer needs to boot up and
function. Every desktop computer, tablet, and smartphone includes an operating system that
provides basic functionality for the device. The operating system is the most important program that
runs on a computer. Every general-purpose computer must have an operating system to run other
programs. Operating systems perform basic tasks, such as recognizing input from the keyboard,
sending output to the display screen, keeping track of files and directories on the disk, and
controlling peripheral devices such as disk drives and printers.
Functions of an operating system ([RGPV/ June 2011, Dec 2013, June 2013 (10)]
There are Many Functions those are Performed by the Operating System. But the Main Goal of
Operating System is to Provide the Interface between the user and the hardware Means Provides
the Interface for Working on the System by the user. The various Functions those are Performed by
the Operating System are as Explained below:-
Operating System Also Known as the Resource Manager Means Operating System will Manages all
the Resources those are Attached to the System means all the Resource like Memory
23
and Processor and all the Input output Devices those are Attached to the System are Known as the
Resources of the Computer System and the Operating system will Manage all the Resources of the
System. The Operating System will identify at which Time the CPU will perform which Operation
and in which Time the Memory is used by which Programs. And which Input Device will respond to
which Request of the user means When the Input and Output Devices are used by the which
Programs. So this will manage all the Resources those are attached to the Computer System.
• Storage Management
Operating System also Controls the all the Storage Operations means how the data or files will be
Stored into the computers and how the Files will be Accessed by the users etc. All the Operations
those are Responsible for Storing and Accessing the Files is determined by the Operating System
Operating System also Allows us Creation of Files, Creation of Directories and Reading and Writing
the data of Files and Directories and also Copy the contents of the Files and the Directories from
One Place to Another Place.
• Process Management : The Operating System also Treats the Process Management means
all the Processes those are given by the user or the Process those are System ‘s own
Process are Handled by the Operating System . The Operating System will Create the
Priorities for the user and also Start or Stops the Execution of the Process and Also Makes
the Child Process after dividing the Large Processes into the Small Processes.
• Memory Management: Operating System also Manages the Memory of the Computer
System means Provide the Memory to the Process and Also Deallocate the Memory from
the Process. And also defines that if a Process gets completed then this will deallocate the
Memory from the Processes.
• Extended Machine : Operating System also behaves like an Extended Machine means
Operating system also Provides us Sharing of Files between Multiple Users, also Provides
Some Graphical Environments and also Provides Various Languages for Communications and
also Provides Many Complex Operations like using Many Hardware’s and Software’s.
• Mastermind: Operating System also performs Many Functions and for those Reasons we can
say that Operating System is a Mastermind. It provides Booting without an Operating
System and Provides Facility to increase the Logical Memory of the Computer System by
using the Physical Memory of the Computer System and also provides various Types of
Formats Like NTFS and FAT File Systems.
Operating System also controls the Errors those have been Occurred into the Program and Also
Provides Recovery of the System when the System gets Damaged Means When due to Some
Hardware Failure , if System Doesn’t Works properly then this Recover the System and also Correct
24
the System and also Provides us the Backup Facility. And Operating System also breaks the large
program into the Smaller Programs those are also called as the threads. And execute those threads
one by one.
Reference:
Basic Computer Engineering: E Balagurusamy, TMH- Page no: 2.1, 2.3
Basic Computer Engineering: Sanjay Silakari and Rajesh K. Shukla, Wiley- Page no: 39
UNIT 01/LECTURE 09
There are many Operating Systems those have be Developed for Performing the Operations those are
requested by the user. There are Many Operating Systems which have the Capability to Perform the
Requests those are received from the System. The Operating system can perform a Single Operation
and also Multiple Operations at a Time. So there are many types of Operating systems those are
organized by using their Working Techniques.
1) Serial Processing: The Serial Processing Operating Systems are those which Performs all the
instructions into a Sequence Manner or the Instructions those are given by the user will be executed
by using the FIFO Manner means First in First Out. All the Instructions those are Entered First in the
System will be Executed First and the Instructions those are Entered Later Will be Executed Later. For
Running the Instructions the Program Counter is used which is used for Executing all the Instructions.
In this the Program Counter will determines which instruction is going to Execute and the which
instruction will be Execute after this. Mainly the Punch Cards are used for this. In this all the Jobs are
firstly Prepared and Stored on the Card and after that card will be entered in the System and after that
all the Instructions will be executed one by One. But the Main Problem is that a user doesn’t interact
with the System while he is working on the System, means the user can’t be able to enter the data for
Execution.
2) Batch Processing: The Batch Processing is same as the Serial Processing Technique. But in the
Batch Processing Similar Types of jobs are Firstly Prepared and they are Stored on the Card. and that
card will be Submit to the System for the Processing. The System then Perform all the Operations on
the Instructions one by one. And a user can’t be Able to specify any input. And Operating System wills
increments his Program Counter for Executing the Next Instruction.
The Main Problem is that the Jobs those are prepared for Execution must be the Same Type and if a
job requires for any type of Input then this will not be Possible for the user. And Many Time will be
wasted for Preparing the Batch. The Batch Contains the Jobs and all those jobs will be executed
without the user Intervention. And Operating System will use the LOAD and RUN Operation. This will
first LOAD the Job from the Card and after that he will execute the instructions. By using the RUN
Command.
The Speed of the Processing the Job will be Depend on the Jobs and the Results those are produced
by the System in difference of Time which is used for giving or submit the Job and the Time which is
used for Displaying the Results on the Screen.
3) Multi-Programming: As we know that in the Batch Processing System there are multiple jobs
Execute by the System. The System first prepare a batch and after that he will Execute all the jobs
those are Stored into the Batch. But the Main Problem is that if a process or job requires an Input and
Output Operation, then it is not possible and second there will be the wastage of the Time when we
26
are preparing the batch and the CPU will remain idle at that Time.
But With the help of Multi programming we can Execute Multiple Programs on the System at a Time
and in the Multi-programming the CPU will never get idle, because with the help of Multi-
Programming we can Execute Many Programs on the System and When we are Working with the
Program then we can also Submit the Second or Another Program for Running and the CPU will then
Execute the Second Program after the completion of the First Program. And in this we can also specify
our Input means a user can also interact with the System.
The Multi-programming Operating Systems never use any cards because the Process is entered on
the Spot by the user. But the Operating System also uses the Process of Allocation and De-allocation
of the Memory Means he will provide the Memory Space to all the Running and all the Waiting
Processes. There must be the Proper Management of all the Running Jobs.
4) Real Time System: There is also an Operating System which is known as Real Time Processing
System. In this Response Time is already fixed. Means time to Display the Results after Possessing has
fixed by the Processor or CPU. Real Time System is used at those Places in which we Requires higher
and Timely Response. These Types of Systems are used in Reservation. So when we specify the
Request, the CPU will perform at that Time. There are two Types of Real Time System
• Hard Real Time System: In the Hard Real Time System, Time is fixed and we can’t Change any
Moments of the Time of Processing. Means CPU will Process the data as we Enters the Data.
• Soft Real Time System: In the Soft Real Time System, some Moments can be Change. Means
after giving the Command to the CPU, CPU Performs the Operation after a Microsecond.
5) Distributed Operating System. - Distributed Means Data is Stored and Processed on Multiple
Locations. When a Data is stored on to the Multiple Computers, those are placed in Different
Locations. Distributed means In the Network, Network Collections of Computers are connected with
Each other.
Then if we want to Take Some Data From other Computer, Then we uses the Distributed
Processing System. And we can also Insert and Remove the Data from out Location to another
Location. In this Data is shared between many users. And we can also Access all the Input and Output
Devices are also accessed by Multiple Users.
6) Multiprocessing: Generally a Computer has a Single Processor means a Computer have a just one
CPU for Processing the instructions. But if we are Running multiple jobs, then this will decrease the
Speed of CPU. For Increasing the Speed of Processing then we uses the Multiprocessing, in the Multi
Processing there are two or More CPU in a Single Operating System if one CPU will fail, then other
27
CPU is used for providing backup to the first CPU. With the help of Multi-processing, we can Execute
Many Jobs at a Time. All the Operations are divided into the Number of CPU’s. if first CPU Completed
his Work before the Second CPU, then the Work of Second CPU will be divided into the First and
Second.
7) Parallel operating systems are used to interface multiple networked computers to complete tasks
in parallel. The architecture of the software is often a UNIX-based platform, which allows it to
coordinate distributed loads between multiple computers in a network. Parallel operating systems
are able to use software to manage all of the different resources of the computers running in parallel,
such as memory, caches, storage space, and processing power. Parallel operating systems also allow a
user to directly interface with all of the computers in the network.
A parallel operating system works by dividing sets of calculations into smaller parts and distributing
them between the machines on a network. To facilitate communication between the processor cores
and memory arrays, routing software has to either share its memory by assigning the same address
space to all of the networked computers, or distribute its memory by assigning a different address
space to each processing core.
Sharing memory allows the operating system to run very quickly, but it is usually not as powerful.
When using distributed shared memory, processors have access to both their own local memory and
the memory of other processors; this distribution may slow the operating system, but it is often more
flexible and efficient.
Reference:
Basic Computer Engineering: Sanjay Silakari and Rajesh K. Shukla, Wiley- Page no: 41-44
• The operating system is responsible for the following activities in connections with file
management:
‾ File creation and deletion.
‾ Directory creation and deletion.
‾ Support for manipulating files and directories.
‾ Mapping files onto secondary storage.
‾ File backup on stable (nonvolatile) storage media.
‾ Identify and locate a selected file
The file manager handles all files on secondary storage media. To perform these tasks, file
management must:
• be able to identify the numerous files by giving unique names to them
• maintain a list telling where exactly each file is stored, how many sectors on the medium it
occupies, and in which order those sectors make up the file
• provide simple and fast algorithms to read and write files
• give and deny access rights on files to users and programs
• allocate and deallocate files to processes
• provide users and programs with simple commands for file handling
Process State
For each process there is a Process Control Block, PCB, which stores the following ( types of ) process-
specific information
• Process State - Running, waiting, etc., as discussed above.
• Process ID, and parent process ID.
• CPU registers and Program Counter - These need to be saved and restored when swapping
processes in and out of the CPU.
• CPU-Scheduling information - Such as priority information and pointers to scheduling queues.
• Memory-Management information - E.g. page tables or segment tables.
• Accounting information - user and kernel CPU time consumed, account numbers, limits, etc.
• I/O Status information - Devices allocated, open file tables, etc.
30
Reference:
Basic Computer Engineering: E Balagurusamy, TMH- Page no: 2.5, 2.6, 2.13
Basic Computer Engineering: Sanjay Silakari and Rajesh K. Shukla, Wiley- Page no: 45- 56