Linux and Kernel Component
Linux and Kernel Component
engr_raheel2k2@yahoo.com
What is Linux
Multiprocessor:
Multiprocessor means that Several processes can be handled
concurrently by different CPUs.
One of the few operating systems supporting multiprocessor.
Multiuser:
Support separate user accounts with different levels of access
privilege
Each user can work concurrently in one system
Giving each user the experience of being connected to a
standalone computer
Properties of Linux
Multiplatform:
Linux was Originally developed only for the personal
computer (Intel 80386)
But it runs on more than ten processor architectures today
Supported platforms extends from small digital personal
assistants over the standard personal computer
Multitasking:
Multitasking is an operating-system technique for sharing
a single processor among multiple threads of execution.
Properties of linux
Efficient Network Implementation:
The Linux kernel makes available a well structured implementation of the network
functionality.
Open Source:
The source code is available to anyone who wants it, and can be freely modified,
developed, and so forth.
Linux is Free:
− free of charge
− freedom to use Linux
− free Software applications, programming
Advance in Technology:
Linux kernel provides a stable and relatively complete implementation of the new
Internet Protocol IPv6.
Properties of Linux
Linux Kernel Structure
User Space
Linux Kernel
Hardware
User Space
Linux Kernel
Hardware
Kernel Architecture
Process Management:
Responsible for creating and terminating processes
Memory Management:
Responsible for allowing each process its own memory section
File System:
Responsible for handling over the file system interface
Device Drivers:
This is abstract from underlying hardware, it allow you to access
this hardware
Network:
All network operations have to be managed by the operating
system
Components
Linux OS is based on monolithic kernel
Windows NT is microkernel architecture
Key Concept
Microkernel:
Only parts which really require to be in a privileged
mode are in kernel space. the remaining functionality
of the OS is moved to independent processes or
threads, running outside the OS kernel. They use a
defined interface to communicate with the
microkernel, generally via system calls
Examples:
− Windows NT
− Chorus
− MLinux
Key Concept
The system call interface layer contains entry point in the
kernel code user process must not be given open access to
the kernel code for security reasons.
However when a process want to access or use a
functionality of of the OS kernel, it has to use a system call
to do this. The system call use the process to change the
system mode
User
System Call
Kernel
Hardware
System Calls
This sequence of
events takes place
when a process
invokes a system call
Hardware Interrupts
Software interrupts (or soft IRQs for short) are
actually a form of activity that can be scheduled
for later execution rather than real interrupts.
Software Interrupts
..Thanks..