Notes5
Notes5
Windows XP
1. What do you mean by an operating system? What are its objectives? Ans.: An operating system
(OS ) is a collection of system programs that together controls the operation of a computer system.
The OS along with hardware, application and other system software, and users constitute a computer
system. It is the most important part of any computer system. It acts as an intermediary between a
user and the computer hardware. The OS has the following two objectives:
1. Managing hardware: The OS manages and
controls various hardware resources of a computer
system. These hardware resources include
processor, memory, disk space, I/O devices, etc.
The OS supervises which input device’s data are
requesting for being processed and which
processed data are ready to be displayed on the
output device. In addition to communicating with
the hardware, it provides an error handling pro-
cedure and displays an error notification. If a Figure 5.1 Managing Hardware device is not
functioning properly, it tries to communicate with the device again. If it is still
unable to communicate with the device, it provides an error message notifying the user about the
problem. Figure 5.1 illustrates how the OS manages the hardware resources of a computer
system.
2. Providing an interface: The OS organizes applications so that users can easily access, use, and
store them. When an application is opened, the OS assists the application to provide the major
part of the user interface. It provides a stable and consistent way for applications to deal with the
hardware without the user having to know all the details of the hardware. If the application
program is not functioning properly, the OS again takes control, stops the application, and
displays an appropriate error message. Figure 5.2 shows the layered structure of a computer
system.
follows:
1. Best fit: The memory manager places a process in the smallest block of unallocated memory in
which it will fit. For example, a process requests 12 KB of memory and the memory manager
currently has a list of unallocated blocks of 6, 14, 19, 11, and 13 KB blocks. The best fit strategy
will allocate 12 KB of the 13 KB block to the process.
2. First fit: The memory manager places the process in the first unallocated block that is large
enough to accommodate the process. Using the same example to fulfil 12 KB request, the first
fit will allocate 12 KB of the 14 KB block to the process.
3. Worst fit: The memory manager places a process in the largest block of unallocated memory
available. To furnish the 12 KB request again, the worst fit will allocate 12 KB of the 19 KB
block to the process, leaving a 7 KB block for future use.
Figure 5.6 illustrates that in best fit and first fit strategies, the allocation of memory results in the
creation of a tiny fragment of unallocated memory. Since the amount of memory left is small, no new
processes can be loaded here. This job of splitting primary memory into segments as the memory is
allocated and de-allocated to the process is known as fragmentation. The worst fit strategy attempts
to reduce the problem of fragmentation by allocating the largest fragments to the new processes. Thus,
a larger amount of space in the form of tiny fragments is left unused. To overcome this problem, the
concept of paging was used.
13. Discuss the following:
(a) Paging
(b) Virtual memory
Ans.: (a) Paging: It is a memory management scheme that allows the processes to be stored non-
contiguously in the memory. The memory is divided into fixed size chunks called page
frames. The OS breaks the program’s address space into fixed size chunks called pages,
which are of same size as that of page frames. Each address generated by the CPU (i.e.,
logical address) is divided into two parts: a page number (high-order bits) and a page offset
or displacement (loworder bits). Since the logical address is a power of 2, the page size is
always chosen as a power of 2 so that the logical address can be converted easily into page
number and page offset. To map the logical addresses to physical addresses in the memory,
a mapping table called page table is used. The OS maintains
a page table for each process to
keep track of which page frame is
allocated to which page. It stores
the frame number allocated to
each page and the page number is
used as index to the page table.
Figure 5.7 shows the logical
memory, page table and physical
memory. The main advantage of
paging is that it minimizes the
problem of fragmentation since
the memory allocated is always in
fixed units and any free frame can
be allocated to a process.
Desktop
It is the first screen visible after logging in Windows XP OS. When Microsoft Windows XP is opened,
the desktop appears. It is a full-screen display where all Windows activity takes place. It is part of a
GUI, where icons, menus, and dialog boxes on the screen represent programs, files, and options on a
user computer. It is actually an invisible folder called desktop folder and the user can move files and
folders to the desktop for easy access. In addition, it allows users to run programs and use a file system
without using the command prompt of the OS.
Icon
It can be thought of as symbols that represent a program, shortcut to a program, or a folder. When one
use Windows XP for the first time, the desktop contains only recycle bin. To display required icons,
the user should follow some steps. They are listed as follows:
1. Right-click anywhere on the desktop and select Properties from the shortcut menu. This displays
the Display Properties dialog box.
2. Select the Desktop tab and click the Customize Desktop button.
3. In the Desktop icons pane of the General tab, select the desired icons and click OK twice.
File
It is defined as an organized and structured collection of related information stored in a secondary
storage device. The information can be of different types such as text, data, or images.
Folders
They provide a very convenient and useful method of storing files and subfolders in an organized way
on a computer’s hard drive or on a removable drive. For example, a folder could be created on the
hard drive to keep all business correspondence with a particular customer. This folder can also contain
files other than documents for that customer. One can also create folders inside a folder. For example,
if one has a folder named Sports, then inside it other folders such as Cricket, Football, and Hockey
can also be created for holding various files in these folders. Here Cricket, Football, and Hockey are
called subfolders.
Shortcuts
These are the icons that can be created for commonly used applications on the desktop. To create
shortcut, right-click the desired file or folder and select Send To from the shortcut menu. This displays
another pop-up menu, from where select Desktop (create shortcut) option. 23. List the icons that
appear by default on the desktop.
Ans.: The desktop includes icons, each having a specific function. Desktop icons can be thought
of as symbols that represent a program, shortcut to a program, or a folder. When one use Windows
XP for the first time, the desktop contains only recycle bin. The rest of the icons usually found on
other Windows OS are not seen on the desktop. The main icons that appear by default on the desktop
are listed in Table 5.3.
(Continued...)
24. Define screen saver. How can one set the screen saver of Windows?
Ans.: A screen saver is an inbuilt utility that appears on the user screen when the mouse or keyboard
has not been used for a specified period. It is primarily used to prevent damage to the phosphor
element present in the monitor. The screen saver tab allows one to specify the screen saver and its
settings (Figure 5.9). In this tab, one can also use the Power option, which allows one to change the
power settings of the monitor. It provides options to save power when the computer is not in use. This
is especially useful when the computer is used for a longer duration, for example, whole day, or when
some background operation is going on (like
transferring of data between two computers) and
the monitor is not required for any operation. To
set/change a screensaver, perform the steps
given as follows:
Right click anywhere on the desktop, and
then select Properties from the shortcut
menu to open the Display Properties dialog
box.
Click on Screen Saver tab and then from the
screen saver drop-down list box select
desired screen saver from the displayed list.
In the Wait box, specify time after which the
user wants the screen saver to appear on the
monitor’s screen. Click the Preview button to
preview the selected screen saver.
Click OK to save the settings and
exit. Figure 5.9 Screen Saver Tab
25. Write short notes on the following:
(a) Themes
(b) Toolbar
(c) Window pane area
(d) Address bar and status bar
Ans.: (a) Themes: They are collections of sounds, icons, fonts, colours, and screen savers, which
often come with their own background graphics, based on a specific theme. One can select
from a range of inbuilt themes from the Theme drop-down box. The Sample window
displays a preview of the chosen desktop theme.
(b) Toolbar: It contains shortcut buttons that are used to perform actions found within the menu bar.
By default, there are six buttons present on the toolbar each having a specified function. These
buttons are listed in Table 5.4.
Local Disk It allows access to the local drives placed within the
computer. Generally, it is the C drive, but sometimes
a computer has more than one local drive.
(Continued...)
Ans.: Windows XP provides a very useful feature called Windows Explorer, which helps to
organize files and folders stored on a computer in an efficient manner. It allows arranging files
according to one’s own needs, and provides optional views for easy scanning of folder contents. In
this window, one can also create new files or folders, open, move or copy, and delete existing file or
folders. To open Windows Explorer, perform any of the steps given as follows:
Click Start, point to All Programs, and then select Accessories. Now select Windows Explorer
from the submenu that appears.
Right-click on My Documents folder and select Explore from the shortcut menu.
After performing these steps, Windows XP displays the Windows Explorer window. This window
is divided into two panes: folders pane and contents pane. The folders pane of Windows Explorer
displays disk drives, folders, and subfolders. These items can be expanded or collapsed by clicking
on the plus (+) sign and minus (−) sign symbols that appear to the left of the drive letter, folder, or
subfolder name. A (+) means there are subfolders that are not visible. Click on the (+) to view the
subfolders. Doing this, the (+) changes to a (−). The contents of the selected drive or folder are
displayed in the contents pane by clicking on the item’s name or icon in the folders pane. The toolbar
present on the Windows Explorer window provides buttons for common actions associated with the
contents present in the window.
Changing Sort Order
While searching for a file, it may be easy to locate that file in the contents pane by changing the order
in which the files and folders are displayed. One can sort the contents pane by clicking on the desired
column heading. For example, in Figure 5.10, the contents pane is sorted by Type column, in
ascending order. Note that a triangle will appear next to the column heading to indicate the sort
method. For ascending, the triangle points upward ( ), while for descending, the triangle points
downward ( ).
Magnifier
It is an accessibility utility that makes the screen more readable for users who have impaired vision.
It operates by creating a separate window that displays a magnified portion of the screen. One can
easily change the magnification level, move or resize the Magnifier window, or drag it to the edge of
the screen and lock it into place.
To open Magnifier, click Start, point to All Programs, and then select Accessories. Now choose
Accessibility and then select Magnifier from the shortcut menu that appears. When Magnifier is
opened, it displays three overlapped windows. The first window shows a message, displaying brief
description about Magnifier. Click OK to display the second window, which displays various settings
for the Magnifier, whereas the third window shows magnified view of the screen.
29. How are disk cleanup and disk defragmentation helpful to us?
Ans.:
Disk Cleanup
It helps to create free space on the hard drive. It searches the drive, and then displays temporary files,
Internet cache files, and unnecessary program files that one can safely delete. To use Disk Cleanup,
perform the following steps:
1. Click Start, point to All Programs, and then select Accessories. Now choose System Tools then
select Disk Cleanup from the shortcut menu that appears (Figure 5.11). This displays Select Drive
dialog box.
2. Select the drive from the drop-down box and click OK.
This displays the Disk Cleanup dialog box.
3. On the Disk Cleanup tab, scroll through the files to
delete list and see which kind of files Windows has
selected for removal. Select any additional file types
you want to delete, and then click OK.
4. Windows XP displays a message asking you to confirm
deletion. Click Yes to delete. Figure 5.11 Select Drive Dialog Box
Disk Defragmenter
It searches the hard disk for fragmented files that have been stored in non-contiguous sectors of the
disk. It then consolidates fragmented files and folders on the computer’s hard disk, so that files and
folders are stored in contiguous sectors. As a result, one can access files and folders faster and save
new ones more efficiently. To use Disk Defragmenter, perform the following steps:
1. Click Start, point to All Programs, and then select Accessories. Now choose System Tools
then select Disk Defragmenter from the shortcut menu that appears. This displays the Disk
Defragmenter window.
2. Select the drive you want to defragment and click Defragment to start defragmenting.
30. What are restore points? How can one create and use restore points?
Ans.: Microsoft Windows XP has included system utilities that help to recover from systems that
become unstable or unreliable. System restore is one such system utility whose purpose is to restore
computer to a previously known working state in the event of a problem. This is done without loss of
personal files or data such as word processing documents, spreadsheets, music files, and images.
System restore protects the computer by creating back-ups of vital system configurations and files.
These back-ups are known as restore points and are used to revert the system to a previous state. This
utility runs in the background and automatically creates a restore point when a trigger event occurs.
Trigger events include application installations, AutoUpdate installations, Microsoft Backup Utility
recoveries, unsigned-driver installations, and manual creations of restore points. To open system
restore, click Start, point to All Programs, and then select Accessories. Now choose System Tools
then select System Restore from the shortcut menu that appears. When System Restore is opened, it
displays three options: Restore my computer to an earlier time, Create a restore point, and Undo my
last restoration.
Calculator
A built-in calculator is included in the Windows OS that works just like a handheld calculator, except
one has to use it on-screen rather than in one’s hand. The calculator can be used in any one of the two
views: standard and scientific. In the standard view of the calculator, one can perform common
mathematical operations such as addition, subtraction, multiplication, division, etc. On the other hand,
in the scientific view of the calculator, one can perform advanced mathematical operations such as
trigonometric and statistical operations, calculate logarithm, exponent, factorial, and power. To open
the calculator, follow any of the steps given as follows:
Click Start, point to All Programs, then point to Accessories, and click Calculator from the
submenu that appears.
Click Start and then click Run. This displays the Run dialog box. Type calc and click OK or
press the Enter key.
Notepad
Windows accessories include a simple built-in text editor called Notepad that helps to create simple
text documents as well as web pages. The default extension for the files created in it is .txt. To open
Notepad, follow any of the steps given as follows:
Click Start, point to All Programs, then point to Accessories, and click Notepad from the
submenu that appears.
Click Start and then click Run. This displays the Run dialog box. Type notepad and click OK or
press the Enter key.
Paint
Windows provides Paint to create and edit graphics. It is a simple and easy to use tool and let to
work with bitmap (.bmp) as well as JPEG and GIF graphics. To open Paint, perform any of the steps
given as follows:
Click Start, point to All Programs, then point to Accessories, and click Paint from the submenu
that appears.
Click Start and then click Run. This displays the Run dialog box. Type mspaint and click OK or
press the Enter key.
The Paint window contains menu bar, tool box, vertical and horizontal scroll bars, colour box,
status bar, and a white rectangular area (called canvas), where one can work with graphics. These are
described as follows:
Menu bar: The Paint contains six menus: File, Edit, View, Image, Colors, and Help.
Tool box: It contains several tools for creating drawings and text, selecting and erasing part of
images, filling colours in images, etc.
Colour box: It contains several colours and helps to select a colour for image. In the left-end of
the colour box is a colour overlapping another colour. The colour on the top is the foreground
colour and the colour in the bottom is the background colour. To change the foreground colour,
left-click a colour in the colour box while to change the background colour, right-click a colour in
the colour box.
Scroll bar: Paint window has two scroll bars: vertical and horizontal. These scroll bars let one to
scroll and view the portion of image currently not visible on the screen.
Status bar: It displays messages and measurements as one works in Paint. For example, it
displays the information related to a tool as mouse is moved over it in the tool box.