1 5'? .&+ % 5'?) - - PDF document

1
SMART_READER_LITE
LIVE PREVIEW

1 5'? .&+ % 5'?) - - PDF document

$" % &"'(


slide-1
SLIDE 1

1

1

  • !"#

2

$"

% &"'(

) &&*+, ) -(.+,

% /+

) 0++ ) 12+, ) /+3 ) /++,"( ) /+

3

&"'(

% 4"("++ % *+"4+,+,"2#

) 0+,#,"#(#(#"4"

% (" (

) ( ) ,("4+# (#(4(##" ) ( ) ,("4"# (#"#2(((14(#(4(# #"+

% 56(",6

  • (
  • 4

&"'(789 % '+(:(+" +, ;,2((4"< =2",< % >8/ +

) ++7+,9 ) =2(,7(+9

% ,(++,((2 1(14( (+"+4 +,"(

5

&*+,

% (+ % "*+, % .+( % ."(

6

(+

% 52((""+ % ((#(#("#",2 % .&) 2",+( ,(+

) 5""""( ) '+"((+(2((" ) 88(++++(2((""+(

  • (4(7(+9
slide-2
SLIDE 2

2

7

.&+

8

5'?

% 5'?) ("4,"2+(#, ( 5'?,"(" +8, 5'?+24(

  • )

) ,(

% ,4(2,+((+" 4,,+(,"2 % /",(#/ +,"(# #",+@( 4+((

9

5'?+

10

"*+,

% ,"""4( 7((9#+,4((2(8

) ,4(7(9#,,"2@ ) ,,,7(59,+8

% ;,"(#((+"+,,+, +79"+((2 (((

) A 1:A(4(" 1

11

"

12

.+(+

% .(((+,(BC + % .++(:+42+( "+2,+,+

) 7"++9

% 0:

) >1", ) >,2+,+ ) .(4(7(+"("9 ) .+

% &:

) /+,"+(+++

% >1(:35?#D 5'?

slide-3
SLIDE 3

3

13

."(

% ."(( "(

) 4E+"+, ) >+,++ ) >+,(,,2+ ) >+,("4(""2,,(

% ((#((4(14(

) *"(++((,"(

14

(."(*+,

15

.+?+ =4"

% 0&: "+"(+#2#( #/'?*/'","

% .+,: #$/#'/#

16

  • (.+,

% * ,("+, (+(++(8',"2 ",(,, ,2((,"2 % *(+,"+ ,"(4,"2 % ,+,(( ((+#+,1+2 +2,27(9

17

  • (.+,789

% ,+,,+(+," +,(+,

) / +,"(++,+,,, 2+ ) ("(+"(+""" (( ) *(,(,( +,F+(

18

  • (.+,789

795( +,749-(+, Non-virtual Machine Virtual Machine

slide-4
SLIDE 4

4

19

  • (.+, 789

% ,(+,++"+( ++++,( +,("((,(+,8 ,(#,2#"+, +8 % *(+,+,+( +,""(8 "(",( +,#",+(+," ""(8 % ,(+,++"+( (",6"" "(+,"(+,

20

  • .2 *+,+

21

,!-(.+,

22

  • 23

/++

% *1+ :

) 0+,) E4 ) ,")

  • % /+) 1+@

+1+ 6(, % *++(":

) + ) +:" ) ,:"+ ) "+:(4(4(

Process in Memory

24

/+

% *+1+#+,

) :,+4+" ) :'+41+" ) :,+2++ ) :,+24"+ ) :,+,,"1+

slide-5
SLIDE 5

5

25

/+(0(+7/09

'+"2,+, + % /+ % /+ % / % / +,"( % .

  • % *++

% 'G

26

12+,

% ;,/ 2+,,+#, ,,("+"(", ",2+ % 12+,,"@," (22,(2+, % "","2

27

/ 2+,H/+/+

28

/++,"(3

% ) ((+, % ) ((+" #""21+ % ) +2 'G"+ % /+,6

29

$"3*"-'G&+3

30

$/++,"(

slide-6
SLIDE 6

6

31

+,"(

% 7E4+,"(9) (+2,+,+,("44, ,"6 % 7/ +,"(9) (+2,+,+,("41+"1 "((+/

32

+,"(789

% ,+,"("6( 7((+"9 749 % +,"("6( 7+"#9 74(29 % ,(+,"(+(,

  • % /++4"+4",:

) !" ) ""'G, +#,/ 4 ) #$" ) ""+@ 2(/ 4

(+,"("+("+

33

*""."+,"(

% ',:+ B(C "+" (8 % #,+" 2

34

/+

% /+++,("+#2,+,# +,+# + % $+,

) /"+,(",((+ ) ,(",4F+ ) /"+,(",+

% >1+

) /"+,("1+++( ) /2(+,("

35

/+789

% *""+

) ,(""(+ ) ,(",(""

% 5'?1(

) %& +((+2+ ) ' +(("%& (+,+F +2,2

36

/H/+

int main() { Pid_t pid; /* fork another process */ pid = fork(); if (pid < 0) { /* error occurred */ fprintf(stderr, "Fork Failed"); exit(-1); } else if (pid == 0) { /* child process */ execlp("/bin/ls", "ls", NULL); } else { /* parent process */ /* parent will wait for the child to complete */ wait (NULL); printf ("Child Complete"); exit(0); } }

slide-7
SLIDE 7

7

37

*++((

  • sched: root process for OS
  • pageout: manages memory
  • fsflush: manages file system
  • init: root for user processes
  • inetd: Networking
  • dtlogin: user login screen

Unique process id’s

38

*3<

  • 39

$"*

% $"+,(4+,I8

40

*+2("

% B+C 4"( (4(4+,I#A("A8