Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
By Jyoti Verma
Roll no: 6310035
Branch: CSE(7A)
1
Linux Architecture
Linux Shell
Shell interprets the command and request service
from kernel
Similar to DOS but DOS has only one set of interface
while Linux can select different shell
Bourne Again shell (Bash), TC shell (Tcsh), Z shell
(Zsh).
Different shell are similar but different
functionality
Bash is the default for Linux
Graphical user interface of Linux is in fact an
application program work on the shell
Initialization
Uboot hardware init, loads kernel
Kernel remaining initialization, calls
init
Init 1st process, executes startup
script
/etc/init.d/rcS
Directory structure
/
hom e
user
usr
b in
s b in
e tc
b in
s b in
lib
Basic Transitions
N ew
# ready queues
may be >1
In te rru p t/S ig n a l
R eady
D is p a tc h e d
b y s y s te m
W a itin g
R u n n in g
B lo c k in g I/O
o r W a it
re q u e s te d
E x it re q u e s t
T e r m in a te d
2004, D. J. Foreman
New
Ready
Running
Terminated
H/W
Anysignal
orevent
Uninterruptible
Interruptible
Signal
waiting
Stopped*
*Requiresactionfromanotherprocess
2004, D. J. Foreman
States
New
preempted
Ready
Block
requested
Block
released
Page/stackwait
Running
Waiting
Terminated
Not runnable
2004, D. J. Foreman
10