Software Concepts
Software Concepts
2. Memory management
The part of the operating system that manages main memory is known as
the memory manager. The operating system is responsible for the following
activities in connection with memory management:
• Keeping track of the parts of memory in use and by which process.
• Deciding which processes are to be loaded into memory when memory
space becomes available.
• Allocating and de-allocating memory space as needed
UNIT2 SOFTWARE CONCEPTS PAGE |3
(JAVID AHMAD DAR: LEC. COMPUTER SCIENCE)
3. File management
Computers can store information on devices like magnetic tape, magnetic
disk, optical disk etc. The OS manages the storage and retrieval of data from
these devices. Data is stored as files. These are organised in a system called file
system. The operating system is responsible for the following activities in
connection with file management:
• Creating and deleting files.
• Creating and deleting directories.
• Support for manipulating files and directories.
• Supporting backup of files.
4. Device management
Device management controls peripheral devices by sending commands to
them. The software routine that knows how to deal with each device is called a
driver. When a new peripheral is added, that device's driver is installed. The
operating system is responsible for the following activities in connection with
device management:
• A memory-management component that includes buffering, caching and
spooling
• A general device-driver interface
• Drivers for specific hardware devices
machine language. But still it is not very user friendly and to develop
assembly language programs is very hectic. In order to run an assembly
language program it needs to be translated into machine language. This
job is performed by the assembler.
INTERPRETER:
1. Interpreter takes single instruction as an input.
2. Conditional control statements executed slower.
3. Memory requirement is less.
4. Every time program is converted into low level program.
5. Errors are displayed for every line of program code.
6. Example: BASIC language
(OPTIONAL QUESTIONS)
Q. Explain booting.
Booting is a process that begins when a user turns on a computer system
and prepares the computer to perform its normal operations. This typically
involves loading and starting an operating system. The booting process works as
follows:
When we switch on the computer it runs a complex set of instructions
stored in a ROM chip known as BIOS (Basic Input Output System). It is also
known as ROM-BIOS. It provides the basic functions for controlling the system
hardware. First it performs POST (Power On Self-Test) to check whether the
computer’s RAM, disk drives, peripheral devices and other components are
properly working or not. If hardware is not found or is not in a working order
then the BIOS issues an error message, otherwise it continues the booting
process. Then it loads the master boot record from the boot sector of the
secondary storage device which in turn loads the operating system and makes it
ready to accept user commands and perform the user tasks.