Unit 4 Notes Operating System
Unit 4 Notes Operating System
4. Application programs: This is dependent on users need. Ex. Railway reservation system, Bank
database management etc.,
1. Process management:
In a multi programming environment, the OS decides the order in which processes have access
to the processor, and how much processing time each process has. This function of OS is
called process scheduling.
It assigns processor to different tasks being performed by the computer system.
2. Memory Management:
It keeps tracks of primary memory, i.e., which bytes of memory are used by which user
program.
The memory addresses that have already been allocated and the memory addresses of the
memory that has not yet been used.
It allocates the memory to a process when the process requests it and de allocates the memory
when the process has terminated or is performing an I/O operation.
3. Input/output Management:
An OS manages device communication via their respective drivers.
Keeps tracks of all devices connected to system, designates a program responsible for every
device known as the Input / Output controller.
Decides which process gets access to a certain device and for how long. Allocates devices in
an effective and efficient way.
Deallocates devices when they are no longer required.
4. File management:
A file system is organized into directories for efficient or easy navigation and usage. These
directories may contain other directories and other files.
It keeps track of where information is stored, user access settings and status of every file and
more.These facilities are collectively known as the file system.
It also performs creation of a new file, modification of an existing file, copying/moving a file
from one storage location to another.
5. Error Detection:
During program loading or executions, errors may occur in computer hardware or memory,
such errors are detected by operating system and takes appropriate action to ensure correct and
consistent computing.
6. Resource Allocation:
The Operating System ensures the proper use of all the resources available by deciding which
resource to be used by whom for how much time.
All the decisions of resource allocation are taken by the Operating System.
7. Data security & integrity:
The Operating System is responsible for using all the information and resources available on
the machine in the most protected way.
The Operating System must foil an attempt from any external resource to hamper any sort of
data or information
8. 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.
Communication may be implemented by two methods, either by Shared Memory or by
Message Passing.
9. Command interpretation:
It is an order to run a task on a computer, we have to give commands to it.
OS enables the computer to understand the commands given by the users through keyboard or
mouse.
It also enables the computer to give results based on the commands of the user.
•• create
MS-DOS
Disk
‘Clones’.
√ Operating (Microsoft System)
–computer
• It is very difficult to maintain
• Introduction.
is
Corporation
forsupplied
running
DOS was
PCs
compatible
DOS ofis
tasking
controls
devices
provides
instructions
howoperate.
process
handle
to
by
usemanage
16-bit
based
enabling
It
computer
programs. the
aused
OS from
your
commands.
Input
is by
the
provides
controls 16-bit
interface
any
applications,
managed
floppy
the him/herfor
that
It
awhenthe
files
the
normally
Microcomputer
include: using
Microcomputer.
disk &
E.g.,main
Microsoft
the use
single-user,
computers
connected 1980
computer
most
is
information,
tells
16-bit output,
and
resources,
orfor OS
Microprocessors OS
the
MS-DOS. on for
IBM
1995.
disk-based
to
computerbasic
theit. &
howIntel-
single-
or the
directories
operations
to
using
you
when
to (written
and
applications).
afiles
Command-
execute
use
DOS
user
you
supplied
are
pre-installed
&starting
managing
whichany
of
on
the PC
needs
to
howaIt
&
your
onthe
It is difficult to maintain security and integrity of user programs and data
BIOS:
A computer's basic input/output system (BIOS) is a program that's stored in nonvolatile memory such as
read-only memory (ROM) or flash memory, making it firmware. The BIOS (sometimes called ROM
BIOS) is always the first program that executes when a computer is powered up.
The BIOS runs a program called Power-On Self Test, which determines how much memory the
computer has and then confirms that critical low-level hardware is operating correctly. Any errors
are indicated by sequences of audible beeps. After this, the BIOS disables all configurable
devices.
The BIOS identifies all of the computer's peripheral devices, such as hard drives and expansion
cards. It first looks for plug-and-play devices and assigns a number to each, but it doesn't enable
the devices at this time.
The BIOS locates the primary boot or initial program load (IPL) device. This is usually a storage
device such as a hard drive, floppy drive or CD-ROM that holds the operating system, but it can
be a network card connected to a server. The BIOS also locates all of the system's secondary IPL
devices.
It selects and enables the primary input (keyboard) and output (monitor) devices, so that if trouble
occurs during the boot process, the BIOS can display a recovery screen and allow the user to
select a stored configuration of system settings that are known to work. The BIOS captured these
settings the last time the computer booted successfully, and it stores them in nonvolatile RAM.
It scans for non-plug-and-play devices, including the Peripheral Component Interconnect (PCI)
bus, and adds data from their ROMs to its resource table.
The BIOS resolves device conflicts and configures the chosen boot device.
It enables plug-and-play devices by calling their option ROMs with appropriate parameters.
It starts the bootstrap loader. If, for some reason, the default IPL fails to load the operating system,
the BIOS tries the next IPL device in the list.
The BIOS hands over control to the operating system, which may make other resource
assignments.
Features of DOS
It is a single user system.
It controls program.
It is machine independence.
It manages (computer) files.
It manages input and output system.
It manages (computer) memory.
It provides command processing facilities.
It operates with Assembler.
Types of DOS Commands
External Commands − Commands like FORMAT, DISKCOPY, etc. are the external commands
and remain stored on the disk.
3.CLS:-
This command will clear the screen.
Syntax:- C:\> CLS
4.DIR:-
Shows directory information of a diskette: name, size, and the
date and time stamp of files.
6.CD:-
Changes the current directory.
Syntax:- C:\><dirname>
7.COPY CON:-
8.TYPE:-
Displays the contents stored in a file.
Syntax:- C:\>TYPE <file name>
9.COPY:-
Copies the data from one file to another file that may be the new file .
Syntax:- C:\> COPY <existing file><new file>
10.DEL:-
Deletes a file from a particular drive.
Syntax:- C:\>DEL< file name>
11.REN (Rename):-
Renames a file that is it specifies a new file name to an existing file.
Syntax:- C:\>REN <old file name> <new file name>
2.SYS:-
This command is used for copy system files to any disk. The disk having system files are known as
Bootable Disk, which are used for booting the computer.
Syntax:- C:\> SYS [Drive name]
C:\> SYS C:A:
System files transferred
This command will transfer the system files from C drive to A drive and displays the
information as “system transferred”.
3.XCOPY:-
When we need to copy a source directory file from one location to another(target) then we uses xcopy
command. This command is much faster than copy command.
Syntax:- C:\> XCOPY < Source directory name > < target directory name>
C:\> XCOPY sree1 sree2
4.FC:-(File Compare)
This command is capable for comparing two set of files and display difference between two files.
Syntax:- C:\> FC <First set of file> <Second set of file>
C:\> FC ROSE.TXT GULAB.TXT
5.CHKDSK:-(Check disk)–
This command is used to check the status of a disk and show the report of result status like no. of
directories, no. of files, no. of bytes used by files and directories, volume name, date of creation, total disk
space, no. of bytes available in the disk etc.
Syntax:- C:\> CHKDSK
6.SORT:-
This command is useful when we want to sort a file. When we run this command the result can be get to
display device or file.
Syntax:- C:\> sort {press enter}
<file name1>
<file name2>
SORT/R:-
This option will sort the given information in reverse order that is it will display the information starting
with Z to A, or 9 to 0 i.e., descending order.
Syntax:- C:\> SORT /R < Input file name> <output file name>
7.FIND:-
The FIND command is used to search a file for a text string from the specified file.
Syntax:- C:\> FIND "String to search" <File name>
C:\>find "office" gulab.txt
---------- gulab.txt
A clock in a office can never get stolen
The office is in hyd.
FIND/n:-
This command is used to display the line number in which the particular string is matched.
C:\>find/n "office" gulab.txt
---------- gulab.txt
[1] A clock in a office can never get stolen
[2] The office is in hyd.
FIND/n:-
This command is used to display the all the lines that do not contain the specified string.
8.ATTRIB:-
Sets the various type of attribute to a file. Like Read only, Archive, Hidden and System attribute.
Syntax:- C:\> ATTRIB [± r] [± a] [± h] <File name>
DOSKey installed
10. FORMAT:-
This command creates new Track & Sectors in a disk and places the Dos files into the disk.
Syntax:- C:\> FORMAT [drive name] [/S]
C:\> FORMAT A:
this command will create new track & sectors.
C:\> FORMAT A: /S
This command will transfer system files after formatting
the disk.
11.TREE:-
This command is used to display all the directories and sub directories which are stored in a particular
drive in a tree format.
Syntax:- C:\>TREE
TREE/f:-
This command is used to display all the files along with sub directories and directories which are stored
in a particular drive.