Professional Documents
Culture Documents
University Roll:-15401220036.
Stream:-BCA. Semester:-6th.
Subject name:-Unix and Shell
programming.
Subject code:-BCAC601.
Topic:- Operating Systems,Unix,
Process state and kernel.
Introduction
Operating System(OS) is a system software that manages co
mputer resources and createsan interface between hardw
are and software. Every computer system must have
anoperating system to run other programs and applications.
The OS is initially loaded intothe computer by a boot progra
m. i.e. when we switch on a computer, operating system isfirs
t loaded into the primary memeory (RAM). This process is ca
lled booting process. Oncebooting process has been finished,
users can run their application programs under theloaded OS
. Example of OS: DOS, Windows, UNIX, Linux, MAC etc.Use
rs can interact with the OS using user-interface in two ways:
Character UserInterface(CUI) and Graphical User Interfac
e (GUI). In CUI, there is no graphicalinterface (mouse is n
ot used) and users provide commands to communica
te with thecomputer. On the other hand, in GUI, there is a
graphical interface through which user caninteract with the c
omputer (using mouse).
UNIX:
UNIX is an operating system like DOS and Windows. It ca
n be used by multiple users (multiuser) simultaneously.
Features of Unix:-
1. Multi-tasking
: More than one program can be run at a time
2. Multi-user
: More than one user can use the machine at a time via ter
minals.
3. Hierarchical directory structure
: Files are stored on disk in a hierarchical filesystem, with
a single top location throughout the system (root, or "/"),
with both files anddirectories, subdirectories, sub-subdirect
ories, and so on below it.
4. Portability
: Unix systems use a centralized operating system kernel (
<10%) whichmanages system and process activities and th
e OS can be easily converted to run on different hardware.
5. Support tools
: There is a wide range of support tools (debuggers, compil
ers etc) forprogram development.6. Security
: Unix has three ways to protect data: user's level, file acce
ssing and file encryption.
Unix architecture
• Kernel − The kernel is the heart of the operating
system. It interacts with the hardware and most of the
tasks like memory management, task scheduling and
file management.
• Shell − The shell is the utility that processes your
requests. When you type in a command at your
terminal, the shell interprets the command and calls
the program that you want. The shell uses standard
syntax for all commands. C Shell, Bourne Shell and
Korn Shell are the most famous shells which are
available with most of the Unix variants.
• Commands and Utilities − There are various
commands and utilities which you can make use of in
your day to day activities. cp, mv, cat and grep, etc.
are few examples of commands and utilities. There
are over 250 standard commands plus numerous
others provided through 3rd party software. All the
commands come along with various options.
• Files and Directories − All the data of Unix is
organized into files. All files are then organized into
directories. These directories are further organized
into a tree-like structure called the filesystem.
Types of Kernel:-
• Monolithic Kernel – In Monolithic Kernel user services
and kernel services are implemented under the same
address space.
• Micro Kernel- In Micro Kernel user services and kernel
services are implemented under the different address
space.
Process:
A process is a running program that serves as the foundation
for all computation.