Inroductiion To OS
Inroductiion To OS
Inroductiion To OS
To
Operating Systems
Dr. A. NISHAJEBASHEELI
Assistant Professor
Department of Computer Science
Bharathidasan University, Trichy
What is an Operating System?
loaded into the computer by a boot program, manages all of the other
application programs in a computer. The application programs make
use of the operating system by making requests for services through a
defined application program interface (API).
Computer System Components
Multiprogramming organizes jobs (code and data) so CPU always has one to
execute
A subset of total jobs in system is kept in memory
When it has to wait (for I/O for example), OS switches to another job
Hard real-time:
• Secondary storage limited or absent, data stored in short
term memory, or read-only memory (ROM)
• Conflicts with time-sharing systems as no virtual memory.
Soft real-time
• Limited utility in industrial control of robotics
• Useful in applications (multimedia, virtual reality, undersea
exploration, planetory rovers) requiring advanced
operating- system features.
• Ex. RT Linux
Computer-System Architecture
Bootstrap:(1) Initialize h/w - like cpu registers, device controllers, memory controllers etc ( 2 )
Loads o.s kernel into the primary memory and then transfers control to O.S
Computer-System Operation
Synchronous Asynchronous
Device-Status Table
Slow
Good for sequential access and not good for random
access
Generally used as Backup media
Storage Hierarchy
Storage systems organized in hierarchy.
Speed
Cost
Volatility
Dual-Mode Operation
I/O Protection
Memory Protection
CPU Protection
Dual-Mode Operation
monitor user
set user mode
command-line interpreter
shell (in UNIX)
Additional functions exist not for helping the user, but rather
for ensuring efficient system operations.
• Resource allocation – allocating resources to multiple users
or multiple jobs running at the same time.
• Accounting – keep track of and record which users use how
much and what kinds of computer resources for account billing
or for accumulating usage statistics.
• Protection – ensuring that all access to system resources is
controlled.
System Calls
Note: UNIX process related system calls fork, exec, exit (return
with error code 0 (no error), any positive no (error no)
Communication Models
Communication may take place using either message
passing or shared memory.
System Programs are basically user interface to the system calls and
in some case they can be quite complex (like command is a system
program)
System programs provide a convenient environment for program
development and execution. The can be divided into:
File manipulation
Status information
File modification
Programming language support
Program loading and execution
Communications
Application programs
Example of system programs create, copy, delete, rename, remote
login, send, receive etc text editors, compilers, loaders, linkers etc
Internal Commands ?
External Commands ?
MS-DOS Layer Structure
MS-DOS System Structure