FCET Unit 2 Notes
FCET Unit 2 Notes
Operating system-
➢ 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.
➢ Some popular Operating Systems include Linux Operating System, Windows
Operating System, VMS, OS/400, AIX, z/OS, etc.
History Of OS
➢ Operating systems were first developed in the late 1950s to manage tape storage.
➢ The General Motors Research Lab implemented the first OS in the early 1950s for their
IBM 701.
➢ In the mid-1960s, operating systems started to use disks.
➢ In the late 1960s, the first version of the Unix OS was developed.
➢ The first OS built by Microsoft was DOS. It was built in 1981 by purchasing the 86-DOS
software from a Seattle company.
➢ The present-day popular OS Windows first came to existence in 1985 when a GUI was
created and paired with MS-DOS.
• If any issue occurs in OS, you may lose all the contents which have been stored in
your system
• Operating system’s software is quite expensive for small size organization which adds
burden on them. Example Windows
• It is never entirely secure as a threat can occur at any time.
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.
Other Important Functions
Following are some of the important Functions 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 software and users − Coordination and assignment of
compilers, interpreters, assemblers and other software to the various users of the
computer systems.
➢ This type of operating system does not interact with the computer directly.
➢ There is an operator which takes similar jobs having the same requirement and
group them into batches.
➢ It is the responsibility of the operator to sort jobs with similar needs.
Advantages of Batch Operating System:
➢ It is very difficult to guess or know the time required for any job to complete.
Processors of the batch systems know how long the job would be when it is in
queue.
➢ Multiple users can share the batch systems.
➢ The idle time for the batch system is very less.
➢ It is easy to manage large work repeatedly in batch systems.
Examples of Batch based Operating System: Payroll System, Bank Statements, etc.
➢ Each task is given some time to execute so that all the tasks work smoothly.
➢ Each user gets the time of CPU as they use a single system.
➢ These systems are also known as Multitasking Systems.
➢ The task can be from a single user or different users also.
➢ The time that each task gets to execute is called quantum. After this time interval is
over OS switches over to the next task.
Advantages of Time-Sharing OS:
➢ Reliability problem
➢ One must have to take care of the security and integrity of user programs and data
➢ Data communication problem
➢ These types of the operating system are 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 with each other using
a shared communication network. Independent systems possess their own memory
unit and CPU. These are referred to 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 the 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 some other system connected within this network i.e.,
remote access is enabled within the devices connected in that network.
Advantages of Distributed Operating System:
➢ 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
➢ These systems run on a server and provide the capability to manage data, users,
groups, security, applications, and other networking functions.
➢ These types of operating systems allow shared access of files, printers, security,
applications, and other networking functions over a small private network.
➢ One more important aspect of Network Operating Systems is that all the users are
well aware of the underlying configuration, of all other users within the network,
their individual connections, etc. and that’s why these computers are popularly
known as tightly coupled systems.
These OSs are meant for applications where time constraints are very strict and even
the shortest possible delay is not acceptable. These systems are built for saving life
like automatic parachutes or airbags which are required to be readily available in
case of any accident. Virtual memory is rarely found in these systems.
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 interrupts
signals to respond earliest to interrupts.
v) Multithreading:
➢ A program in execution is known as process. A process can be further divided into
multiple sub-processers. These sub-processers are known as threads.
➢ A multi-threading OS can divide process into threads and execute those threads. This
increases operating speed but also increases the complexity.
➢ For example: Unix, Server edition of Linux and windows.
➢ Command line interface (CLI) is a text-based interface that is used to operate software
and operating systems while allowing the user to respond to visual prompts by typing
single commands into the interface and receiving a reply in the same way.
➢ CLI is quite different from the graphical user interface (GUI) that is presently being
used in the latest operating systems.
➢ CLI is an older method for interacting with applications and operating systems and is
used to perform specific tasks required by users.
➢ CLI is a text-based interface, unlike the GUI, which uses graphical options that enable
the user to interact with the operating system and applications.
➢ CLI allows a user to perform tasks by entering commands. Its working mechanism is
very easy, but it is not user friendly. Users enter the specific command, press “Enter”,
and then wait for a response. After receiving the command, the CLI processes it
accordingly and shows the output/result on the same screen; command line interpreter
is used for this purpose.
➢ CLI was introduced with the teletypewriter machine. This system was based on
batched processing. Modern computers support CLI, batch processing and GUI in one
interface.
➢ In order to best make use of CLI, a user must be able to enter a bundle of commands
(one by one) quickly. There are many applications (mono-processing systems) that
still use CLI for their operators. In addition, some programming languages, such as
Forth, Python and BASIC, offer CLI. Command line interpreter is used to implement
the text-based interface.
➢ Another feature of CLI is command prompt, which is employed as a sequence of
characters used in the user interface, or shell. Command prompt is used to notify users
that CLI is ready to accept commands.
➢ MS-DOS is the best example of CLI.
➢ GUI is an interface that allows users to interact with different electronic devices using
icons and other visual indicators.
➢ The graphical user interfaces were created because command line interfaces were
quite complicated and it was difficult to learn all the commands in it.
➢ In today’s times, graphical user interfaces are used in many devices such as mobiles,
MP3 players, gaming devices, smartphones etc.
Elements in Graphical User Interface
Graphical User Interface makes use of visual elements mostly. These elements define the
appearance of the GUI. Some of these are described in detail as follows −
Window
This is the element that displays the information on the screen. It is very easy to manipulate a
window. It can be opened or closed with the click of an icon. Moreover, it can be moved to
any area by dragging it around.In a multitasking environment, multiple windows can be open
at the same time, all of them performing different tasks.
There are multiple types of windows in a graphical user interface, such as container window,
browser window, text terminal window, child window, message window etc.
Menu
A menu contains a list a choices and it allows users to select one from them. A menu bar is
displayed horizontally across the screen such as pull down menu. When any option is clicked
in this menu, then the pull down menu appears.
Another type of menu is the context menu that appears only when the user performs a
specific action. An example of this is pressing the right mouse button. When this is done, a
menu will appear under the cursor.
Icons
Files, programs, web pages etc. can be represented using a small picture in a graphical user
interface. This picture is known as an icon. Using an icon is a fast way to open documents,
run programs etc. because clicking on them yields instant access.
Controls
Information in an application can be directly read or influences using the graphical control
elements. These are also known as widgets. Normally, widgets are used to display lists of
similar items, navigate the system using links, tabs etc. and manipulating data using check
boxes, radio boxes etc.
Tabs
A tab is associated with a view pane. It usually contains a text label or a graphical icon. Tabs
are sometimes related to widgets and multiple tabs allow users to switch between different
widgets. Tabs are used in various web browsers such as Internet Explorer, Firefox, Opera,
Safari etc. Multiple web pages can be opened in a web browser and users can switch between
them using tabs.
Computer Network-
A computer network is a group of computers linked to each other that enables the computer
to communicate with another computer and share their resources, data, and applications.
A computer network can be categorized by their size. A computer network is mainly of four
types:
o LAN(Local Area Network)
o PAN(Personal Area Network)
o MAN(Metropolitan Area Network)
o WAN(Wide Area Network)
o Local Area Network is a group of computers connected to each other in a small area
such as building, office.
o LAN is used for connecting two or more personal computers through a
communication medium such as twisted pair, coaxial cable, etc.
o It is less costly as it is built with inexpensive hardware such as hubs, network
adapters, and ethernet cables.
o The data is transferred at an extremely faster rate in Local Area Network.
o Local Area Network provides higher security.
Advantages of LAN
Here are the pros/benefits of LAN:
• Computer resources like hard-disks, DVD-ROM, and printers can share local area
networks. This significantly reduces the cost of hardware purchases.
• You can use the same software over the network instead of purchasing the licensed
software for each client in the network.
• Data of all network users can be stored on a single hard disk of the server computer.
• You can easily transfer data and messages over networked computers.
• It will be easy to manage data at only one place, which makes data more secure.
• Local Area Network offers the facility to share a single internet connection among all
the LAN users.
Disadvantages of LAN
Here are the cons/drawbacks of LAN:
• LAN will indeed save cost because of shared computer resources, but the initial cost
of installing Local Area Networks is quite high.
• The LAN admin can check personal data files of every LAN user, so it does not offer
good privacy.
• Unauthorized users can access critical data of an organization in case LAN admin is
not able to secure centralized data repository.
• Local Area Network requires a constant LAN administration as there are issues
related to software setup and hardware failures.
Advantages of PAN
Here are the important pros/benefits of PAN network:
Disadvantages of PAN
Here are the cons/drawbacks of using PAN network:
• It may establish a bad connection to other networks at the same radio bands.
• Distance limits.
Advantages of MAN
Here are the pros/benefits of MAN network:
• It offers fast communication using high-speed carriers, like fiber optic cables.
• It provides excellent support for an extensive size network and greater access to
WANs.
• The dual bus in MAN network provides support to transmit data in both directions
concurrently.
• A MAN network mostly includes some areas of a city or an entire city.
Disadvantages of MAN
Here are drawbacks/cons of using the MAN network:
• You need more cable to establish MAN connection from one place to another.
• In MAN network it is tough to make the system secure from hackers.
o A Wide Area Network is a network that extends over a large geographical area such
as states or countries.
o A Wide Area Network is quite bigger network than the LAN.
o A Wide Area Network is not limited to a single location, but it spans over a large
geographical area through a telephone line, fibre optic cable or satellite links.
o The internet is one of the biggest WAN in the world.
o A Wide Area Network is widely used in the field of Business, government, and
education.
Advantages of WAN
Here are the benefits/pros of WAN:
• WAN helps you to cover a larger geographical area. Therefore business offices
situated at longer distances can easily communicate.
• Contains devices like mobile phones, laptop, tablet, computers, gaming consoles, etc.
• WLAN connections work using radio transmitters and receivers built into client
devices.
Disadvantages of WAN
Here are the drawbacks/cons of WAN network:
Data Communication
➢ 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.
➢ Data communication refers to the exchange of data between a source and a receiver
via form of transmission media such as a wire cable.
➢ The physical connection between networked computing devices is established using
either cable media or wireless media. The best-known computer network is the
Internet.
Components of Data Communication
What is Topology?
➢ Topology defines the structure of the network of how all the components are
interconnected to each other. There are two types of topology: physical and logical
topology.
➢ Physical topology emphasizes the physical layout of the connected devices and nodes,
while the logical topology focuses on the pattern of data transfer between network
nodes.
or
➢ The arrangement of a network that comprises nodes and connecting lines via sender
and receiver is referred to as network topology.
Types of Network Topology
Bus Topology
o In bus topology there is a main cable and all the devices are connected to this main
cable through drop lines.
o 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.
Star Topology
All hosts in Star topology are connected to a central device, known as hub device, using a
point-to-point connection. That is, there exists a point to point connection between hosts and
hub. The hub device can be any of the following:
Ring Topology
o In ring topology, each host machine connects to exactly two other machines, creating
a circular network structure.
o When one host tries to communicate or send message to a host which is not adjacent
to it, the data travels through all intermediate hosts.
o Failure of any host results in failure of the whole ring. Thus, every connection in the
ring is a point of failure.
Mesh Topology
o In this type of topology, a host is connected to one or multiple hosts.
o This topology has hosts in point-to-point connection with every other host or may
also have hosts which are in point-to-point connection to few hosts only.
Reliable: The mesh topology networks are very reliable as if any link breakdown will not
affect the communication between connected computers.
Easier Reconfiguration: Adding new devices would not disrupt the communication between
other devices.
Disadvantages of Mesh topology
o Cost: A mesh topology contains a large number of connected devices such as a router
and more transmission media than other topologies.
o Management: Mesh topology networks are very large and very difficult to maintain
and manage. If the network is not monitored carefully, then the communication link
failure goes undetected.
Hybrid Topology
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 transmission. Thus, it
forms a parent-child hierarchy.
Advantages of Tree topology
o Support for broadband transmission: Tree topology is mainly used to provide
broadband transmission, i.e., signals are sent over long distances without being
attenuated.
o Easily expandable: We can add the new device to the existing network. Therefore,
we can say that tree topology is easily expandable.
o Easily manageable: In tree topology, the whole network is divided into segments
known as star networks which can be easily managed and maintained.
o Error detection: Error detection and error correction are very easy in a tree topology.
o Limited failure: The breakdown in one station does not affect the entire network.
o Point-to-point wiring: It has point-to-point wiring for individual segments.