unit-2 FCET NOTES
unit-2 FCET NOTES
UNIT II
Operating system: Definition, Functions, Types, Classification, Elements of command based and GUI
basedoperatingsystem.
Definition
An operating system (OS) is system software that manages computer
hardware, software resources, and provides common services for computer
programs.
An operating system is a program that acts as an interface between the user and
the computer hardware and controls the execution of all kinds of programs.
Every computer system must have at least one operating system to run other
programs. Applications like Browsers, MS Office, Notepad Games, etc., need
some environment to run and perform its tasks.
The OS helps you to communicate with the computer without knowing how to
speak the computer’s language. It is not possible for the user to use any computer
or mobile device without having an operating system.
Features of OS
Operating System also allows the computer to manage its own resources such as
memory, monitor, keyboard, printer, etc. Management of these resources is
required for effective utilization. The operating system controls the various system
input-output resources and allocates them to the users or programs as per their
requirement.
Operating System provides the user an easy-to-work user interface, so the user
doesn’t have to learn a different UI every time and can focus on the content and be
productive as quickly as possible. Operating System provides templates, UI
components to make the working of a computer, really easy for the user.
Multitasking:
Operating System manages memory and allows multiple programs to run in their
own space and even communicate with each other through shared memory.
Multitasking gives users a good experience as they can perform several tasks on a
computer at a time.
Functions
Following are some of important functions of an operating System.
Memory Management
Processor Management
Device Management
Downloaded by monika pathak ([email protected])
lOMoAR cPSD| 33165779
File Management
Security
Control over system performance
Job accounting
Error detecting aids
Coordination between other software and users
Memory Management
The operating system handles the responsibility of storing any data, system
programs, and user programs in memory. This function of the operating system
is called memory management.
Memory management refers to management of Primary Memory or Main
Memory. Main memory is a large array of words or bytes where each word or
byte has its own address.
Main memory provides a fast storage that can be accessed directly by the CPU.
For a program to be executed, it must in the main memory. An Operating System
does the following activities for memory management −
Keeps tracks of primary memory, i.e., what part of it are in use by whom,
what part are not in use.
In multiprogramming, the OS decides which process will get memory
when and how much.
Allocates the memory when a process requests it to do so.
De-allocates the memory when a process no longer needs it or has been terminated.
Processor Management
The processor is the execution of a program that accomplishes the specified work
in that program. It can be defined as an execution unit where a program runs. In
multiprogramming environment, the OS decides which process gets the
processor when and for how much time. This function is called process
scheduling.
Certain algorithms used for CPU scheduling are as follows:
First Come First Serve (FCFS)
Shortest Job First (SJF)
Round-Robin Scheduling
Priority-based scheduling etc.
Device Management
Device management keeps tracks of all devices. This module also responsible for
this task is known as the I/O controller. It also performs the task of allocation and
de-allocation of the devices. An Operating System manages device
communication via their respective drivers. It does the following activities for
device management −
File Management
The operating system is helpful in making changes in the stored files and in
replacing them. It also plays an important role in transferring various files to a
device. It manages all the file- related activities such as organization storage,
retrieval, naming, sharing, and protection of files.
A file system is normally organized into directories for easy navigation and
usage. These directories may contain files and other directions.
An Operating System does the following activities for file management −
Keeps track of information, location, uses, status etc. The collective
facilities are often known as file system.
Decides who gets the resources.
Allocates the resources.
De-allocates the resources.
Other Important Activities
Following are some of the important activities that an Operating System performs −
Security − By means of password and similar other techniques,
it prevents unauthorized access to programs and data.
Control over system performance − Recording delays between request
for a service and response from the system.
Job accounting − Keeping track of time and resources used by
various jobs and users.
Error detecting aids − Production of dumps, traces, error
messages, and other debugging and error detecting aids.
Coordination between other softwares and users − Coordination and
assignment of compilers, interpreters, assemblers and other software to
the various users of the computer systems.
as a group. This type of operating system does not interact with the computer
directly. There is an operator which takes similar jobs having same requirement
and group them into batches. It is the responsibility of operator to sort the jobs
with similar needs.
Problem of reliability.
Question of security and integrity of user programs and data.
Problem of data communication.
Multiprocessing Operating System-
Multiprocessing operating system or the parallel system support the use of
more than one processor in close communication.
The advantages of the multiprocessing system are:
Increased Throughput − By increasing the number of processors, more
work can be completed in a unit time.
Cost Saving − Parallel system shares the memory, buses, peripherals etc.
Multiprocessor system thus saves money as compared to multiple single
systems. Also, if a number of programs are to operate on the same data, it
is cheaper to store that data
on one single disk and shared by all processors instead of using many
copies of the same data.
Increased Reliability − In this system, as the workload is distributed among
several processors which results in increased reliability. If one processor
fails then its failure may slightly slow down the speed of the system but
system will work smoothly.
Distributed Operating System –
These types of operating system is a recent advancement in the world of
computer technology and are being widely accepted all-over the world and, that
too, with a great pace. Various autonomous interconnected computers
communicate each other using a shared communication network. Distributed
systems use many processors located in different machines to provide very fast
computation to its users. Independent systems possess their own memory unit
and CPU. These are referred as loosely coupled systems or distributed systems.
These system’s processors differ in size and function. The major benefit of
working with these types of operating system is that it is always possible that one
user can access the files or software which are not actually present on his system
but on some other system connected within this network i.e., remote access is
enabled within the devices connected in that network.
With resource sharing facility, a user at one site may be able to use
the resources available at another.
Speedup the exchange of data with one another via electronic mail.
If one site fails in a distributed system, the remaining sites can
potentially continue operating.
Better service to the customers.
Reduction of the load on the host computer.
Reduction of delays in data processing
Overview
another device. The network interface card contains the hardware addresses, the
data-link layer protocol use this address to identify the system on the network so that
it transfers the data to the correct destination.
2. Hub
Hub is a central device that splits the network connection into multiple devices.
When computer requests for information from a computer, it sends the request to
the Hub. Hub distributes this request to all the interconnected computers.
3. Switches
Switch is a networking device that groups all the devices over the network to transfer the
data to another device. A switch is better than Hub as it does not broadcast the message over
the network, i.e., it sends the message to the device for which it belongs to. Therefore, we
can
say that switch sends the message directly from source to the destination.
5. Router
Router is a device that connects the LAN to the internet. The router is mainly used to connect
6. Modem
Modem connects the computer to the internet over the existing telephone line. A
cover, i.e.
LAN covers the smallest area;
MAN covers an area larger than LAN
WAN comprises the largest
of all.
There are other types of Computer Networks also, like:
PAN (Personal Area Network)
SAN (Storage Area Network)
CAN (Campus Area Network)
o LAN provides a useful way of sharing the resources between end users.
The resources such as printers, file servers, scanners, and internet are
easily sharable among computers.
o n MAN, various LANs are connected to each other through a telephone exchange
line.
o The most widely used protocols in MAN are RS- 232, Frame Relay, ATM, ISDN,
OC- 3, ADSL, etc.
o It has a higher range than Local Area Network (LAN).
o For Example: MAN used for communication between the banks in a city, Airline
Reservation.
Data communication
Data communication refers to the transmission of this digital data between two or more
computers and a computer network or data network is a telecommunications network
that allows computers to exchange data. The physical connection between networked
computing devices is established using either cable media or wireless media. The best-
known computer network is the Internet.
The meanings of source and receiver are very simple. The device that transmits the data
is known as source and the device that receives the transmitted data is known as
receiver. Data communication aims at the transfer of data and maintenance of the data
during the process but not the actual generation of the information at the source and
receiver.
Datum mean the facts information statistics or the like derived by calculation or
experimentation. The facts and information so gathered are processed in accordance with
defined systems of procedure. Data can exist in a variety of forms such as numbers, text.
The term data used to describe information, under whatever form of words you
will be using.
A data communication system may collect data from remote locations through
data transmission circuits, and then outputs processed results to remote locations.
Figure provides a broader view of data communication networks. The different
data communication techniques which are presently in widespread use evolved
gradually either to improve the data communication techniques already existing
or to replace the same with better options and features. Then, there are data
communication jargons to contend with such as baud rate, modems, routers, LAN,
WAN, TCP/IP, ISDN, during the selection of communication systems. Hence, it
becomes necessary to review and understand these terms and gradual
development of data communication methods.
Out of these two wires, only one carries actual signal and another is used
for ground reference. The twists between wires are helpful in reducing
noise (electro-
2.
Twisted pair is a physical media made up of a pair of cables twisted with each other.
A twisted pair cable is cheap as compared to other transmission media. Installation
of the twisted pair cable is easy, and it is a lightweight cable. The frequency range
for twisted pair cable is from 0 to 3.5KHz.
A twisted pair consists of two insulated copper wires arranged in a regular spiral
pattern. The degree of reduction in noise interference is determined by the number
of turns per foot. Increasing the number of turns per foot decreases noise
interference.
2.Coaxial Cable
Coaxial cable is very commonly used transmission media, for example, TV wire is
usually a coaxial cable. The name of the cable is coaxial as it contains two
conductors parallel to each other. It has a higher frequency as compared to Twisted
pair cable. The inner conductor of the coaxial cable is made up of copper, and the
outer conductor is made up of copper mesh. The middle core is made up of non-
conductive cover that separates the inner conductor from the outer conductor. The
middle core is responsible for the data transferring whereas the copper mesh
prevents from the EMI (Electromagnetic interference).
Fiber Optic works on the properties of light. The core of fiber optic cable is made of
high quality glass or plastic. From one end of it light is emitted, it travels through it
and at the other end light detector detects light stream and converts it to electric data.
Fiber Optic provides the highest mode of speed.
rotocol: It is a set of rules that govern the communication between the devices.
Both sender and receiver follow same protocols to communicate with each other.
A protocol performs the following functions:
i. Data sequencing. It refers to breaking a long message into smaller packets
of fixed size. Data sequencing rules define the method of numbering
packets to detect loss or duplication of packets, and to correctly identify
packets, which belong to same message.
ii. Data routing. Data routing defines the most efficient path between the
source and destination.
iii. Data formatting. Data formatting rules define which group of bits or
characters within packet constitute data, control, addressing, or other
information.
iv. Flow control. A communication protocol also prevents a fast
sender fromoverwhelming a slow receiver. It ensures resource sharing and
protection against traffic congestion by regulating the flow of data on
communication lines.
v. Error control. These rules are designed to detect errors in messages and to
ensure transmission of correct messages. The most common method is to
retransmit erroneous message block. In such a case, a block having error
is discarded by the receiver and is retransmitted by the sender.
vi. Precedence and order of transmission. These rules ensure that all the
nodes get a chance to use the communication lines and other resources of
the network based on the priorities assigned to them.
vii. Connection establishment and termination. These rules define how
connections are established, maintained and terminated when two nodes
of a network want to communicate with each other.
The way in which data is transmitted from one device transmission mode.
o The transmission mode is also known as the communication mode.
o Each communication channel has a direction associated with it, and
transmission media provide the direction. Therefore, the transmission mode is
also known as a directional mode.
o The transmission mode is defined in the physical layer.
1. Simplex: In simplex mode the communication can take place in one direction. The
receiver receives the signal from the transmitting device. In this mode the flow of
information is Uni- directional. A device can only send the data but cannot receive it or
it can receive the data but cannot send the data. Hence it is rarely used for data
communication. The radio station is a simplex channel as it transmits the signal to the
listeners but never allows them to transmit back.
Topologies
Geometric representation of how the computers are connected to each
other is known as topology. There are five types of topology – Mesh, Star,
Bus, Ring and Hybrid.
Types of Topology
Bus Topology
In bus topology there is a main cable and all the devices are connected to this
main cable through drop lines. There is a device called tap that connects the
drop line to the main cable. Since all the data is transmitted over the main
cable, there is a limit of drop lines and the distance a main cable can have.
o The bus topology is designed in such a way that all the stations are
Ring Topology
In ring topology each device is connected with the two devices on either side
of it. There are two dedicated point to point links a device has with the devices
on the either side of it. This structure forms a ring thus it is known as ring
topology. Each device in ring topology has a repeater, if the received data is
intended for other device then repeater forwards this data until the intended
device receives it.
o Ring topology is like a bus topology, but with connected ends.
o The node that receives the message from the previous computer will
retransmit to the next node.
o The data flows in one direction, i.e., it is unidirectional.
o The data flows in a single loop continuously known as an endless loop.
o It has no terminated ends, i.e., each node is connected to other node
and having no termination point.
o The data in a ring topology flow in a clockwise direction.
its own cable, therefore failure in one cable will not affect the entire
network.
o Easily expandable: It is easily expandable as new stations can be added
to the open ports on the hub.
o Cost effective: Star topology networks are cost-effective as it uses
inexpensive coaxial cable
Mesh Topology
In mesh topology each device is connected to every other device on the network
through a dedicated point-to-point link. When we say dedicated it means that the
link only carries data for the two connected devices only. Lets say we have n
devices in the network then each device must be connected with (n-1) devices of
the network. Number of links in a mesh topology of n devices would be n(n-1)/2.
The Internet is an example of the mesh topology. Mesh topology is mainly used
for WAN implementations where communication failures are a critical concern.
Mesh topology is mainly used for wireless networks.
Reliable: The mesh topology networks are very reliable as if any link
breakdown will not affect the communication between connected computers.
Hybrid topology
as these hubs are different from usual Hubs used in other topologies.
o Costly infrastructure: The infrastructure cost is very high as a
hybrid network requires a lot of cabling, network devices, etc.
Tree Topology
o Tree topology combines the characteristics of bus topology and star topology.
o A tree topology is a type of structure in which all the computers are
connected with each other in hierarchical fashion.
o The top-most node in tree topology is known as a root node, and all
other nodes are the descendants of the root node.
o There is only one path exists between two nodes for the data
Downloaded by monika pathak ([email protected])
lOMoAR cPSD| 33165779