Introduction To OS
Introduction To OS
INTRODUCTION TO OPERATING
SYSTEM (OS)
UNIT-1
unit-1
Lecture Contents-
• What is an OS.
• What are its key functions.
• The evaluation of OS.
• What are the popular types of OS.
•
unit-1
Kernel
Kernel is a software code that reside in central core of OS. It has complete
control over system.
When operation system boots, kernel is first part of OS to load in main
memory.
Kernel remains in main memory for entire duration of computer session.
The kernel code is usually loaded in to protected area of memory.
Kernel performs it’s task like executing processes and handling interrupts in
kernel space.
User performs it’s task in user area of memory.
This memory separation is made in order to prevent user data and kernel
data from interfering with each other.
Kernel does not interact directly with user, but it interacts using SHELL and
other programs and hardware.
unit-1
Kernel cont…
Kernel includes:-
1. Scheduler: It allocates the Kernel’s processing time to various
processes.
2. Supervisor: It grants permission to use computer system
resources to each process.
3. Interrupt handler : It handles all requests from the various
hardware devices which compete for kernel services.
4. Memory manager : allocates space in memory for all users of
kernel service.
kernel provides services for process management, file management,
I/O management, memory management.
System calls are used to provide these type of services.
unit-1
System Call
System call is the programmatic way in which a computer
program/user application requests a service from the kernel of the
operating system on which it is executed.
Application program is just a user-process. Due to security reasons ,
user applications are not given access to privileged resources(the
ones controlled by OS).
When they need to do any I/O or have some more memory or
spawn a process or wait for signal/interrupt, it requests operating
system to facilitate all these. This request is made through System
Call.
System calls are also called software-interrupts.
unit-1
Starting an Operating
System(Booting)
to start the computer system after it is powered on. It also manages data flow
between the computer's operating system (OS) and attached devices, such as the hard
disk, video adapter, keyboard, mouse and printer.
unit-1
1. Process Management
• A process is a program in execution.
• A process needs certain resources, including CPU time, memory, files, and I/O devices
to accomplish its task.
• Simultaneous execution leads to multiple processes. Hence creation, execution and
termination of a process are the most basic functionality of an OS
• If processes are dependent, then they may try to share same resources, thus task of
process synchronization comes to the picture.
• Based on priority, it is important to allow more important processes to execute first than
others.
unit-1
2. Memory management
• Memory is a large array of words or bytes, each with its own address.
• It is a repository of quickly accessible data shared by the CPU and I/O devices.
• The operating system is responsible for the following activities in connections
with memory management:
Keep track of which parts of memory are currently being used and by whom.
Decide which processes to load when memory space becomes available.
Allocate and de-allocate memory space as needed.
unit-1
3. File Management
• A file is a collection of related information defined by its creator.
• File
systems provide the conventions for the encoding, storage and
management of data on a storage device such as a hard disk.
• The operating system is responsible for the following activities in connections with file
management:
✦ File creation and deletion.
✦ Directory creation and deletion.
✦ Support of primitives for manipulating files and directories.
✦ Mapping files onto secondary storage.
✦ File backup on stable (nonvolatile) storage media.
unit-1
controllers.
• A special device (inside CPU) called the Interrupt Controller handles the task of receiving interrupt requests
.
unit-1
1. Command-line interface
• In a command-line interface, a user types commands
represented by short keywords or abbreviations or presses
special keys on the keyboard to enter data and instructions
unit-1
Such operating systems have more than one processor in close communication that shares
the computer bus, the clock and sometimes memory and peripheral devices.
It executes multiple jobs at the same time and makes the processing faster.
It supports large physical address space and larger virtual address space.
If one processor fails then other processor should retrieve the interrupted process
state so execution of process can continue.
Inter-processes communication mechanism is provided and implemented in hardware.
unit-1
network server must be running client software designed to request a specific service.
• popularly known as tightly coupled systems.
unit-1
• The time interval required to process and respond to inputs is very small.
• Intended to serve real time application that process data as it comes in, mostly without buffer delay. The
missile systems,
air traffic control systems,
robots, etc.
unit-1
• Real-time systems are used when there are rigid time requirements like
missile systems, air traffic control systems, robots etc. So, now it can be
easily inferred that RTOS is an operating system that supports real-time
applications by providing the correct result and, that too, within the deadline
required
unit-1
Ms-DOS
• Single User Single Tasking OS.
• It had no built-in support for networking, and users had to manually
install drivers any time they added a new hardware component to
their PC.
• DOS supports only 16-bit programs.
• Command line user interface.
• So, why is DOS still in use? Two reasons are its size and simplicity.
It does not require much memory or storage space for the system,
and it docs not require a powerful computer.
unit-1
Linux
• Linux: An open-source, cross-platform operating system that runs on
• Developers are not allowed to charge money for the Linux kernel itself (the
main part of the operating system), but they can charge money for
distributions (distros for short).
unit-1
PROCESS MANAGEMENT
(Next)
unit-1
DISCUSSION
• A) Embedded Systems
• B) Real time applications of OS in Industries