Unit 2 Mca111
Unit 2 Mca111
an operating system (OS) is a collection of software that manages computer hardware resources
and provides common services for computer programs. The operating system is a vital
component of the system software in a computer system. This tutorial will take you through
step by step approach while learning Operating System concepts.
Definition
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.
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.
Memory Management
Processor Management
Device Management
File Management
Security
Control over system performance
Job accounting
Error detecting aids
Coordination between other software and users
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
In multiprogramming environment, the OS decides which process gets the processor when and
for how much time. This function is called process scheduling. An Operating System does the
following activities for processor management −
Keeps tracks of processor and status of process. The program responsible for this task is
known as traffic controller.
Allocates the processor (CPU) to a process.
De-allocates processor when a process is no longer required.
Device Management
An Operating System manages device communication via their respective drivers. It does the
following activities for device management −
Keeps tracks of all devices. Program responsible for this task is known as the I/O
controller.
Decides which process gets the device when and for how much time.
Allocates the device in the efficient way.
De-allocates devices.
File Management
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.
Program execution
I/O operations
File System manipulation
Communication
Error Detection
Resource Allocation
Protection
Program execution
Operating systems handle many kinds of activities from user programs to system programs like
printer spooler, name servers, file server, etc. Each of these activities is encapsulated as a
process.
A process includes the complete execution context (code to execute, data to manipulate,
registers, OS resources in use). Following are the major activities of an operating system with
respect to program management −
I/O Operation
An I/O subsystem comprises of I/O devices and their corresponding driver software. Drivers
hide the peculiarities of specific hardware devices from the users.
An Operating System manages the communication between user and device drivers.
I/O operation means read or write operation with any file or any specific I/O device.
Operating system provides the access to the required I/O device when required.
Communication
In case of distributed systems which are a collection of processors that do not share memory,
peripheral devices, or a clock, the operating system manages communications between all the
processes. Multiple processes communicate with one another through communication lines in
the network.
The OS handles routing and connection strategies, and the problems of contention and security.
Following are the major activities of an operating system with respect to communication −
Error handling
Errors can occur anytime and anywhere. An error may occur in CPU, in I/O devices or in the
memory hardware. Following are the major activities of an operating system with respect to
error handling −
Resource Management
In case of multi-user or multi-tasking environment, resources such as main memory, CPU
cycles and files storage are to be allocated to each user or job. Following are the major activities
of an operating system with respect to resource management −
Protection
Considering a computer system having multiple users and concurrent execution of multiple
processes, the various processes must be protected from each other's activities.
Protection refers to a mechanism or a way to control the access of programs, processes, or users
to the resources defined by a computer system. Following are the major activities of an
operating system with respect to protection −
Problem of reliability.
Question of security and integrity of user programs and data.
Problem of data communication.
1 Definition LAN stands for Local Area Network. WAN stands for Wide Area Network.
2 Ownership LAN is often owned by private WAN ownership can be private or public.
Sr. Key LAN WAN
No.
organizations.
3 Speed LAN speed is quiet high. WAN speed is lower than that of LAN.
Congestion LAN has low congestion as compared WAN has higher congestion than LAN.
5
to WAN.
Fault Fault Tolerance of LAN is higher than Fault Tolerance of WAN is lower than
6
Tolerance WAN. LAN.
Maintenance Designing and maintaining LAN is easy Designing and maintaining WAN is
7
and less costly than WAN. complex and more costly than LAN
Definition LAN stands for Local Area Network. MAN stands for Metropolitan Area
1
Network.
Ownership LAN is often owned by private MAN ownership can be private or public.
2
organizations.
3 Speed LAN speed is quiet high. MAN speed is lower than that of LAN.
Sr. Key LAN MAN
No.
Congestion LAN has low congestion as compared MAN has moderate congestion than
5
to MAN. LAN.
Fault Fault Tolerance of LAN is higher than Fault Tolerance of MAN is lower than
6
Tolerance MAN. LAN.
Definition MAN stands for Metropolitan Area WAN stands for Wide Area Network.
1
Network.
Ownership MAN ownership can be private or WAN ownership also can be private or
2
public. public.
Sr. Key MAN WAN
No.
Speed MAN speed is higher than that of WAN speed is lower than that of MAN.
3
WAN.
Congestion MAN has moderate congestion as WAN has high congestion than LAN.
5
compared to MAN.
Fault Fault Tolerance of MAN is higher Fault Tolerance of WAN is lower than
6
Tolerance than WAN. MAN.
Maintenance Designing and maintaining MAN is Designing and maintaining WAN is more
7
complex and costly. complex and costly than MAN
History Of Networking
ARPANET - the First Network
ARPANET − Advanced Research Projects Agency Network − the granddad of
Internet was a network established by the US Department of Defense (DOD). The work
for establishing the network started in the early 1960s and DOD sponsored major
research work, which resulted in development on initial protocols, languages and
frameworks for network communication.
It had four nodes at University of California at Los Angeles (UCLA), Stanford Research
Institute (SRI), University of California at Santa Barbara (UCSB) and University of
Utah. On October 29, 1969, the first message was exchanged between UCLA and SRI.
E-mail was created by Roy Tomlinson in 1972 at Bolt Beranek and Newman, Inc.
(BBN) after UCLA was connected to BBN.
Internet
ARPANET expanded to connect DOD with those universities of the US that were
carrying out defense-related research. It covered most of the major universities across
the country. The concept of networking got a boost when University College of London
(UK) and Royal Radar Network (Norway) connected to the ARPANET and a network of
networks was formed.
The term Internet was coined by Vinton Cerf, Yogen Dalal and Carl Sunshine of
Stanford University to describe this network of networks. Together they also developed
protocols to facilitate information exchange over the Internet. Transmission Control
Protocol (TCP) still forms the backbone of networking.
Telenet
Telenet was the first commercial adaptation of ARPANET introduced in 1974. With this
the concept of Internet Service Provider (ISP) was also introduced. The main function
of an ISP is to provide uninterrupted Internet connection to its customers at affordable
rates.
World Wide Web is a complex web of websites and web pages connected together
through hypertexts. Hypertext is a word or group of words linking to another web page
of the same or different website. When the hypertext is clicked, another web page
opens.
The evolution from ARPANET to WWW was possible due to many new achievements
by researchers and computer scientists all over the world. Here are some of those
developments −
Year Milestone
1957
Advanced Research Project Agency formed by US
1969
ARPANET became functional
1970
ARPANET connected to BBNs
1973
APRANET connected to Royal Radar Network of Norway
1982
TCP/IP introduced as standard protocol on ARPANET
1983
Domain Name System introduced
1986 National Science Foundation brings connectivity to more people with its
NSFNET program
ARPANET decommissioned
1990
First web browser Nexus developed
HTML developed
2002-2004
Web 2.0 is born
Data communications 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.
This tutorial should teach you basics of Data Communication and Computer Network (DCN)
and will also take you through various advance concepts related to Data Communication and
Computer Network.
For example, Piconet is Bluetooth-enabled Personal Area Network which may contain up to 8
devices connected together in a master-slave fashion.
LANs are composed of inexpensive networking and routing equipment. It may contains local
servers serving file storage and other locally shared applications. It mostly operates on private
IP addresses and does not involve heavy routing. LAN works under its own local domain and
controlled centrally.
LAN uses either Ethernet or Token-ring technology. Ethernet is most widely employed LAN
technology and uses Star topology, while Token-ring is rarely seen.
LAN can be wired,wireless, or in both forms at once.
Internetwork
A network of networks is called an internetwork, or simply the internet. It is the largest network
in existence on this planet.The internet hugely connects all WANs and it can have connection to
LANs and Home networks. Internet uses TCP/IP protocol suite and uses IP as its addressing
protocol. Present day, Internet is widely implemented using IPv4. Because of shortage of
address spaces, it is gradually migrating from IPv4 to IPv6.
Internet enables its users to share and access enormous amount of information worldwide. It
uses WWW, FTP, email services, audio and video streaming etc. At huge level, internet works
on Client-Server model.
Internet uses very high speed backbone of fiber optics. To inter-connect various continents,
fibers are laid under sea known to us as submarine communication cable.
Internet is widely deployed on World Wide Web services using HTML linked pages and is
accessible by client software known as Web Browsers. When a user requests a page using some
web browser located on some Web Server anywhere in the world, the Web Server responds
with the proper HTML page. The communication delay is very low.
Internet is serving many proposes and is involved in many aspects of life. Some of them are:
Web sites
E-mail
Instant Messaging
Blogging
Social Media
Marketing
Networking
Resource Sharing
Audio and Video Streaming
Network Topology
A Network Topology is the arrangement with which computer systems or network devices are
connected to each other. Topologies may define both physical and logical aspect of the network.
Both logical and physical topologies could be same or different in a same network.
The way in which devices are interconnected to form a network is called network
topology. Some of the factors that affect choice of topology for a network are −
Cost − Installation cost is a very important factor in overall cost of setting up an
infrastructure. So cable lengths, distance between nodes, location of servers,
etc. have to be considered when designing a network.
Flexibility − Topology of a network should be flexible enough to allow
reconfiguration of office set up, addition of new nodes and relocation of existing
nodes.
Reliability − Network should be designed in such a way that it has minimum
down time. Failure of one node or a segment of cabling should not render the
whole network useless.
Scalability − Network topology should be scalable, i.e. it can accommodate load
of new devices and nodes without perceptible drop in performance.
Ease of installation − Network should be easy to install in terms of hardware,
software and technical personnel requirements.
Ease of maintenance − Troubleshooting and maintenance of network should be
easy.
Bus Topology
Data network with bus topology has a linear transmission cable, usually coaxial, to
which many network devices and workstations are attached along the
length. Server is at one end of the bus. When a workstation has to send data, it
transmits packets with destination address in its header along the bus.
The data travels in both the directions along the bus. When the destination terminal
sees the data, it copies it to the local disk.
Advantages of Bus Topology
These are the advantages of using bus topology −
Ring Topology
In ring topology each terminal is connected to exactly two nodes, giving the network
a circular shape. Data travels in only one pre-determined direction.
When a terminal has to send data, it transmits it to the neighboring node which
transmits it to the next one. Before further transmission data may be amplified. In this
way, data raverses the network and reaches the destination node, which removes it
from the network. If the data reaches the sender, it removes the data and resends it
later.
Advantages of Ring Topology
These are the advantages of using ring topology −
Star Topology
In star topology, server is connected to each node individually. Server is also called the
central node. Any exchange of data between two nodes must take place through the
server. It is the most popular topology for information and voice networks as central
node can process data received from source node before sending it to the destination
node.
Advantages of Star Topology
These are the advantages of using star topology −
Failure of one node does not affect the network
Troubleshooting is easy as faulty node can be detected from central node
immediately
Simple access protocols required as one of the communicating nodes is always
the central node
Disadvantages of Star Topology
These are the disadvantages of using star topology −
Long cables may be required to connect each node to the server
Failure of central node brings down the whole network
Tree Topology
Tree topology has a group of star networks connected to a linear bus backbone cable.
It incorporates features of both star and bus topologies. Tree topology is also called
hierarchical topology.
Advantages of Tree Topology
These are some of the advantages of using tree topology −
Existing network can be easily expanded
Point-to-point wiring for individual segments means easier installation and
maintenance
Well suited for temporary networks
Transmission Media
For any networking to be effective, raw stream of data is to be transported from one
device to other over some medium. Various transmission media can be used for
transfer of data. These transmission media may be of two types −
Guided − In guided media, transmitted data travels through cabling system that
has a fixed path. For example, copper wires, fibre optic wires, etc.
Unguided − In unguided media, transmitted data travels through free space in
form of electromagnetic signal. For example, radio waves, lasers, etc.
Each transmission media has its own advantages and disadvantages in terms of
bandwidth, speed, delay, cost per bit, ease of installation and maintenance, etc. Let’s
discuss some of the most commonly used media in detail.
Up to 25 twisted pair are put together in a protective covering to form twisted pair
cables that are the backbone of telephone systems and Ethernet networks.
Advantages of twisted pair cable
Twisted pair cable are the oldest and most popular cables all over the world. This is
due to the many advantages that they offer −
Coaxial Cable
Coaxial cables are copper cables with better shielding than twisted pair cables, so
that transmitted signals may travel longer distances at higher speeds. A coaxial cable
consists of these layers, starting from the innermost −
Stiff copper wire as core
Insulating material surrounding the core
Closely woven braided mesh of conducting material surrounding the insulator
Protective plastic sheath encasing the wire
Coaxial cables are widely used for cable TV connections and LANs.
Advantages of Coaxial Cables
These are the advantages of coaxial cables −
Excellent noise immunity
Signals can travel longer distances at higher speeds, e.g. 1 to 2 Gbps for 1 Km
cable
Can be used for both analog and digital signals
Inexpensive as compared to fibre optic cables
Easy to install and maintain
Optical Fibre
Thin glass or plastic threads used to transmit data using light waves are called optical
fibre. Light Emitting Diodes (LEDs) or Laser Diodes (LDs) emit light waves at
the source, which is read by a detector at the other end. Optical fibre cable has a
bundle of such threads or fibres bundled together in a protective covering. Each fibre is
made up of these three layers, starting with the innermost layer −
Core made of high quality silica glass or plastic
Cladding made of high quality silica glass or plastic, with a lower refractive
index than the core
Protective outer covering called buffer
Note that both core and cladding are made of similar material. However, as refractive
index of the cladding is lower, any stray light wave trying to escape the core is
reflected back due to total internal reflection.
High bandwidth
Immune to electromagnetic interference
Suitable for industrial and noisy areas
Signals carrying data can travel long distances without weakening
Infrared
Low frequency infrared waves are used for very short distance communication like TV
remote, wireless speakers, automatic doors, hand held devices etc. Infrared signals
can propagate within a room but cannot penetrate walls. However, due to such short
range, it is considered to be one of the most secure transmission modes.
Radio Wave
Transmission of data using radio frequencies is called radio-wave transmission. We
all are familiar with radio channels that broadcast entertainment programs. Radio
stations transmit radio waves using transmitters, which are received by the receiver
installed in our devices.
Both transmitters and receivers use antennas to radiate or capture radio signals. These
radio frequencies can also be used for direct voice communication within
the allocated range. This range is usually 10 miles.