Professional Documents
Culture Documents
ASSIGNMENT No. 2
Q. 1 Describe the terms: I/O Software and Disks with the help of suitable examples.
User Level Libraries - This provides simple interface to the user program to perform
input and output. For example, stdio is a library provided by C and C++ programming
languages.
Kernel Level Modules - This provides device driver to interact with the device
controller and device independent I/O modules used by the device drivers.
Hardware - This layer includes actual hardware and hardware controller which interact
with the device drivers and makes hardware alive.
A key concept in the design of I/O software is that it should be device independent where it
should be possible to write programs that can access any I/O device without having to
specify the device in advance. For example, a program that reads a file as input should be
able to read a file on a floppy disk, on a hard disk, or on a CD-ROM, without having to
modify the program for each different device.
Interrupt Handlers:
An interrupt handler, also known as an interrupt service routine or ISR, is a piece of
software or more specifically a callback function in an operating system or more
Page 1
specifically in a device driver, whose execution is triggered by the reception of an
interrupt.
When the interrupt happens, the interrupt procedure does whatever it has to in order to
handle the interrupt, updates data structures and wakes up process that was waiting for an
interrupt to happen.
The interrupt mechanism accepts an address ─ a number that selects a specific interrupt
handling routine/function from a small set. In most architectures, this address is an offset
stored in a table called the interrupt vector table. This vector contains the memory
addresses of specialized interrupt handlers.
MAGNETIC DISKS:
On magnetic disks, data is encoded as microscopic magnetized needles on the disk’s
surface. You can record and erase data on a magnetic disk any number of times, just as you
can with a cassette tape. Magnetic disks come in a number of different forms:
Hard Disk - Hard disks can store anywhere from 20MB to more than 1-TB (terabyte).
Hard disks are also from 10 to 100 times faster than floppy disks.
Removable Cartridge - Removable cartridges are hard disks encased in a metal or
plastic cartridge, so you can remove them just like a floppy disk. Removable cartridges are
very fast, though usually not as fast as fixed hard disks.
OPTICAL DISKS:
Page 2
Optical disks record data by burning microscopic holes in the surface of the disk with a
laser. To read the disk, another laser beam shines on the disk and detects the holes by
changes in the reflection pattern.
Optical disks come in three basic forms:
CD-ROM - Most optical disks are read-only. When you purchase them, they are already
filled with data. You can read the data from a CD-ROM, but you cannot modify, delete, or
writenew data.
Erasable Optical (EO) - EO disks can be read to, written to, and erased just like
magnetic disks.
The machine that spins a disk is called a disk drive. Within each disk drive is one or more
heads (often called read/write heads) that actually read and write data.
Accessing data from a disk is not as fast as accessing data from main memory, but disks
are much cheaper. And unlike RAM, disks hold on to data even when the computer is
turned off. Consequently, disks are the storage medium of choice for most types of data.
Another storage medium is magnetic tape. But tapes are used only for backup and
archiving because they are sequential-access devices (to access data in the middle of a tape,
the tape drive must pass through all the preceding data).
Q. 2 Differentiate between the following terms:
Files and Directories
Swapping and Paging
Files VS Directories
Page 3
5. Space There is a specific size of Folder does not consume
consumption a file. space in the memory.
Page 4
Swapping VS Paging
Swapping Paging
Swapping occurs when whole process is Paging occurs when some part of process
transferred to disk. is transferres to disk.
In this process is swapped temporarily Paging occurs when some part of process
from main memory to secondary is transferres to disk.
memory.
Swapping is done by inactive processes. Only active process can perform paging.
Q. 3 What is meant by “Network Operating System”? Explain it with the help of proper
examples.
The composition of hardware that typically uses a NOS includes a number of personal
computers, a printer, server and file server with a local network that connects them
together. The role of the NOS is to then provide basic network services and features that
support multiple input requests simultaneously in a multiuser environment.
Page 5
Types of Network Operating Systems:
There are two basic types of network operating systems, the peer-to-peer NOS and
the client/server NOS:
1. Peer-to-peer network operating systems allow users to share network resources saved
in a common, accessible network location. In this architecture, all devices are treated
equally in terms of functionality. Peer-to-peer usually works best for small to medium
LANs and is cheaper to set up.
2. Client/server network operating systems provide users with access to resources
through a server. In this architecture, all functions and applications are unified under
one file server that can be used to execute individual client actions regardless of
physical location. Client/server tends to be most expensive to implement and requires
a large amount of technical maintenance. An advantage to the client/server model is
that the network is controlled centrally, makes changes or additions to technology
easier to incorporate.
Novell’s NetWare- This was the first network operating system to be released and is
designed based on XNS protocol architecture.
Page 6
Q. 4 (a) What are those windows operating systems which have become very popular at the
time of their releases?
There are some windows operating systems which have become very popular at the
time of their releases:
1. Windows XP
2. Windows 7
3. Windows 10
4. Windows 2000
Q. 4 (b) Name at least twelve of them and also explain four popular operating systems in detail
along with their important features.
Microsoft Windows, also called Windows and Windows OS, computer operating
system (OS) developed by Microsoft Corporation to run personal computers (PCs).
Featuring the first graphical user interface (GUI) for IBM-compatible PCs, the
Windows OS soon dominated the PC market. Approximately 90 percent of PCs run
some version of Windows.
There are various versions of windows OS released since 1985 when Microsoft
Windows was introduced first time. Fewer of them are listed below:
Windows 1
Windows 2
Windows 3
Windows 95
Windows 98
Page 7
Windows 2000
Windows ME (Millennium Edition)
Windows XP
Windows Vista
Windows 7
Windows 8
Windows 10
Windows XP:
In 2001 when Microsoft introduced Windows XP it caught users' eye. Since then, it is
one of the most extensively used Operating system all over the world regardless of the
release of newer versions of Windows OS. On account of its countless advantages &
easy to use features, users continue to use Windows XP rather than using its successor
Windows Vista or Windows 7. This post will give you a technical overview of
Windows XP, different editions, and Win XP features and functions.
The "XP" in Windows XP stands for eXPerience. Windows XP was made by
integrating some of the best features of its predecessors such as security,
manageability, reliability of Windows 2000, plug & play, user friendly graphical user
interface of Windows Millennium (ME) that made a completely new Operating
System. The noticeable feature of Windows XP is that it uses very less computer
resources than higher version of Windows OS.
Page 8
Device Driver Rollback - This new Windows XP feature let users uninstall
installed device driver. If users install device driver that causes system instability then
they can easily roll back the previous driver.
Built-in CD burner - When Windows XP arrived, it came up with its own in-built
CD burner feature. Now there is no longer need to install CD burning software, user
can burn files directly via Windows Explorer.
Encrypted file system support multi-user - This feature is for Windows XP
Professional, Encrypted file system make it possible to access encrypted files and
folders by multiple users.
Device support improvement - Windows XP supports USB 2.0, Intel High
Definition Audio based hardware, FireWire, & Windows Image Acquisition based
scanners etc.
Windows 7 is an operating system released by Microsoft on October 22, 2009. It
follows the previous (sixth) version of Windows, called Windows Vista.
Windows 7:
Like previous versions of Windows, Windows 7 has a graphical user interface (GUI)
that allows you to interact with items on the screen using a keyboard and mouse.
However, Windows 7 is also includes a feature called "Windows Touch" that supports
touchscreen input and multi-touch functionality. For example, you can right-click a
file by touching it with one finger and tapping it with another. You can also zoom in
on an image by touching it with two fingers, then spreading your fingers apart.
Windows 7 is bundled with several touch-ready programs that are designed for
touchscreen use.
Windows 7 also includes several new multimedia features. One example is "Play To,"
a program that allows you to stream audio and video to different computers or devices
within your house. The "HomeGroup" feature makes it easy to share media files and
other data between computers. It also makes it possible to share printers on a home
network. The "Remote Media Streaming" feature allows you to access the music,
video, and photo libraries on your computer from remote locations.
The search feature in Windows 7, called "Windows Search," allows you to see results
of searches as soon as you start typing in the search box. Windows Search categorizes
the results by file type and displays text snippets that indicate where the search phrase
was found in each result. After the search results are returned, it is possible to narrow
the results by filtering them by date, file type, file size, and other parameters. You can
search local drives, external hard drives, and networked drives all using the standard
Windows Search interface.
Page 9
Windows 7 Ultimate
Windows 8:
Windows 8, code-named Midori, is a version of Microsoft Windows that was
released on October 26, 2012. This iteration contains some of the biggest changes
Microsoft has made to their operating system since Windows 95. It features new
programming and technology that makes run faster than the previous versions. It also
has a more streamlined look and feel. Windows 8 includes a tablet interface,
called Metro, which is compatible with touch screen displays and stills offers access to
the traditional Windows desktop. Below is an example of the new Windows 8 Start
screen, which replaced the Start button and Start menu.
Windows 10:
Page 10
running the operating system. In addition, organizations can use traditional desktop
management software such as Microsoft System Center Configuration Manager.
Windows 10 Features:
The familiar Start Menu, which Microsoft replaced with Live Tiles in Windows 8,
returned in Windows 10. Users can still access Live Tiles and the touch-centric Metro
interface from a panel on the right side of the Start Menu, however.
Microsoft Edge debuted with Windows 10 and replaces Internet Explorer as the
default web browser. Edge includes tools such as Web Notes, which allows users to
mark up web sites, and Reading View, which allows users to view certain websites
without the clutter of ads. The browser integrates directly with Cortana, Microsoft's
digital assistant, which is also embedded within Windows 10.
When the OS runs a piece of software it has to find the program files on
the storage drive, load them into main memory, and instruct the CPU to start executing
the program from the beginning.
Page 11
1. the program code is found on the
storage drive
2. a section of RAM is reserved for the
program and space is allocated for the
program's data
3. the program code is copied from
storage into the reserved space in the
memory
4. the CPU program counter is set to the
memory location of the first instruction
in the program, and execution begins
Multitasking:
The OS makes it possible to run several programs at once. Several programs can be
stored in RAM at the same time, however only one program at a time is processed by
the CPU. Programs can be in one of three states:
running
waiting
runnable
Only one process can be running at any one time. CPUs are extremely fast, so if a
program is processed for even a short time it can do quite a lot. The OS decides the
best way to swap between running, runnable and waiting processes. It controls which
process is being executed by the CPU at any point in time, and shares access to the
CPU between processes. The job of working out when to swap processes is known
as scheduling.
Swapping happens so fast that it appears that all processes are running at the same
time. When there are too many processes, or some of them are making the CPU work
especially hard, it can look as though some or all of them have stopped.
Page 12
Modularity:
Modularity involves dividing complicated tasks into smaller subtasks. These
subtasks can completed by different cooperating processes. This leads to faster and
more efficient completion of the required tasks.
Information Sharing:
Sharing of information between multiple processes can be accomplished using
cooperating processes. This may include access to the same files. A mechanism is
required so that the processes can access the files in parallel to each other.
Convenience:
There are many tasks that a user needs to do such as compiling, printing, editing
etc. It is convenient if these tasks can be managed by cooperating processes.
Computation Speedup:
Subtasks of a single task can be performed parallely using cooperating processes.
This increases the computation speedup as the task can be executed faster.
However, this is only possible if the system has multiple processing elements.
Methods of Cooperation:
Cooperating processes can coordinate with each other using shared data or messages.
Details about these are given as follows −
Cooperation by Sharing:
The cooperating processes can cooperate with each other using shared data such as
memory, variables, files, databases etc. Critical section is used to provide data
integrity and writing is mutually exclusive to prevent inconsistent data.
A diagram that demonstrates cooperation by sharing is given as follows −
Page 13
In the above diagram, Process P1 and P2 can cooperate with each other using
shared data such as memory, variables, files, databases etc.
Cooperation by Communication:
The cooperating processes can cooperate with each other using messages. This may
lead to deadlock if each process is waiting for a message from the other to perform
a operation. Starvation is also possible if a process never receives a message.
A diagram that demonstrates cooperation by communication is given as follows −
In the above diagram, Process P1 and P2 can cooperate with each other using
messages to communicate.
Page 14