UU BBA SEM 1 Fundamentals of Computing Unit 5
UU BBA SEM 1 Fundamentals of Computing Unit 5
UU BBA SEM 1 Fundamentals of Computing Unit 5
Structure
5.1 Functions
5.2 Measuring System Performance Assemblers
5.3 Compilers and Interpreters Batch Processing
5.4 Multiprogramming
5.5 Multitasking
5.6 Multiprocessing
5.7 Time Sharing
5.8 DOS
5.9 Windows
5.10 Unix/Linux
5.11 Let's Sum Up
5.12 Keywords
5.13 Some Useful Books
5.14 Answer to Check your Progress
5.15 Terminal Questions
5.0 OBJECTIVES
The operating system (OS) manages all of the software and hardware on
the computer. It performs basic tasks such as file, memory and process
management, handling input and output, and controlling peripheral
devices such as disk drives and printers.
At the end of this unit, the student will be able to:
• Identify the Role of Windows.
• Understanding Multiprocessing.
• Illustrate the role of the Time sharing,
• Identify the types of DOS
5.1 INTRODUCTION
Fundamentals of Computing
An Operating System (OS) is a software that acts as an interface between
computer hardware components and the user. 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.
5.2 FUNCTIONS
Security –
The operating system uses password protection to protect user data and
similar other techniques. it also prevents unauthorized access to programs
and user data.
Memory Management –
The operating system manages the Primary Memory or Main Memory.
Main memory is made up of a large array of bytes or words where each
byte or word is assigned a certain address. Main memory is fast storage
and it can be accessed directly by the CPU. For a program to be executed,
it should be first loaded in the main memory. An Operating System
performs the following activities for memory management:
It keeps track 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. In multiprogramming, the OS decides the order in which processes
are granted access to memory, and for how long. It Allocates the memory
to a process when the process requests it and deallocates the memory when
the process has terminated or is performing an I/O operation.
Processor 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. An
Operating System performs the following activities for processor
management.
Keeps track of the status of processes. The program which performs this
task is known as a traffic controller. Allocates the CPU that is a processor
to a process. De-allocates processor when a process is no more required.
Device Management –
An OS manages device communication via their respective drivers. It
performs the following activities for device management. Keeps track of
all devices connected to the 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.
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.
An Operating System carries out the following file management activities.
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.
Moreover, Operating System also provides certain services to the
computer system in one form or the other.
The Operating System provides certain services to the users which can be
listed in the following manner:
Security –
The operating system uses password protection to protect user data and
similar other techniques. it also prevents unauthorized access to programs
and user data.
Job accounting –
Operating system Keeps track of time and resources used by various tasks
and users, this information can be used to track resource usage for a
particular user or group of users.
Memory Management –
The operating system manages the Primary Memory or Main Memory.
Main memory is made up of a large array of bytes or words where each
byte or word is assigned a certain address. Main memory is fast storage
and it can be accessed directly by the CPU. For a program to be executed,
it should be first loaded in the main memory. An Operating System
performs the following activities for memory management:
It keeps track 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. In multiprogramming, the OS decides the order in which processes
are granted access to memory, and for how long. It Allocates the memory
to a process when the process requests it and deallocates the memory when
the process has terminated or is performing an I/O operation.
Processor 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. An
Operating System performs the following activities for processor
management.
Keeps track of the status of processes. The program which performs this
task is known as a traffic controller. Allocates the CPU that is a processor
to a process. De-allocates processor when a process is no more required.
Device Management –
Fundamentals of Computing
An OS manages device communication via their respective drivers. It
performs the following activities for device management. Keeps track of
all devices connected to the 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.
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.
An Operating System carries out the following file management activities.
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.
Moreover, Operating System also provides certain services to the
computer system in one form or the other.
The Operating System provides certain services to the users which can be
listed in the following manner:
5.4 ASSEMBLERS
Here, ADD is the mnemonic that tells the processor that it has to perform
additional function. Moreover, A and B are the operands. Also, SUB,
MUL, DIVC, etc. are other mnemonics.
Types of Assembler
Assemblers generate instruction. On the basis of a number of phases used
to convert to machine code, assemblers have two types:
1. One-Pass Assembler
These assemblers perform the whole conversion of assembly code to
machine code in one go.
2. Multi-Pass/Two-Pass Assembler
These assemblers first process the assembly code and store values in the
opcode table and symbol table. And then in the second step, they generate
the machine code using these tables.
a) Pass 1
Symbol table and opcode tables are defined.
keep the record of the location counter.
Also, processes the pseudo instructions.
b) Pass 2
Finally, converts the opcode into the corresponding numeric opcode.
Generates machine code according to values of literals and symbols.
Some Important Terms
Opcode table: They store the value of mnemonics and their corresponding
numeric values.
Symbol table: They store the value of programming language symbols
used by the programmer, and their corresponding numeric values.
Location Counter: It stores the address of the location where the current
instruction will be stored.
Browse more Topics under System Software
Operating System
Compiler
Interpreter
When one application is waiting for an I/O transfer, another is ready to use
the processor at all times, and numerous programs may share CPU time.
All jobs are not run simultaneously, but there could be numerous jobs
running on the processor at the same time, and parts of other processes
being executed first, then another segment, etc. As a result, the overall goal
of a multiprogramming system is to keep the CPU busy until some tasks
are available in the job pool. Thus, the numerous programs can run on a
single processor computer, and the CPU is never idle.
5.7 MULTITASKING
5.8 MULTIPROCESSING
Multiple CPUs are interconnected so that a job can be divided among them
for faster execution. When a job finishes, results from all CPUs are
collected and compiled to give the final output. Jobs needed to share main
memory and they may also share other system resources among
themselves. Multiple CPUs can also be used to run multiple jobs
simultaneously.
For Example: UNIX Operating system is one of the most widely used
multiprocessing systems.
5.10 DOS
Features of DOS
Following are the significant features of DOS −
Internal Commands − Commands such as DEL, COPY, TYPE, etc. are the
internal commands that remain stored in computer memory.
5.11 WINDOWS
However, the Windows Operating System requires DOS to run the various
application programs initially. Because of this reason, DOS should be
installed into the memory and then window can be executed.
Elements of Windows OS
Following are the significant element of Windows Operating System
(WOS) −
5.12 UNIX/LINUX
Another drawback of this system is, it does not give notice or warn about
the consequences of a user’s action (whether user’s action is right or
wrong).
5.14 KEYWORDS
Computer Fundamentals
Goel, Anita Pearson
Computer Fundamentals: Architecture & Organization
Ram, B. 4th ed New Age
Computer Fundamentals: Concepts, Systems & Applications
Sinha, P. K. BPB
Computer Fundamentals: Concepts, Systems & Applications
Sinha, P. K/ Sinha, P. 3rd ed BPB
Computer Fundamentals: Concepts, Systems & Applications
Sinha, P. K/ Sinha, P. 4th ed BPB