csc203 - operating system concepts

Download CSC203 - Operating System Concepts

Post on 06-Apr-2018

215 views

Category:

Documents

0 download

Embed Size (px)

TRANSCRIPT

  • 8/3/2019 CSC203 - Operating System Concepts

    1/55

    L\L 27

  • 8/3/2019 CSC203 - Operating System Concepts

    2/55

    FomitLn`wnoio} nc k ln`wy}ir |v|}i`

    Wyrwn|i nc ko N\

    Cyol}fno nc ko N\

    Isnay}fno nc N\

    Ikrav \v|}i`

    \f`wai bk}ldim \v|}i`|

    @ya}fwrnerk``im bk}ldim \v|}i`|

    ]f`i \dkrfoe

    Mi|h}nw \v|}i`|

    Wkrkaaia \v|}i`|

    Mf|}rfby}im \v|}i`|

    Rika }f`i \v|}i`|

    Dkomdiam \v|}i`

    FO]RNMYL]FNO

  • 8/3/2019 CSC203 - Operating System Concepts

    3/55

    Ln`wnoio} nc k ln`wy}ir |v|}i`

    Kb|}rkl} sfiu nc }di ln`wnoio}| nc k ln`wy}ir |v|}i`

    Wyrwn|i nc ko N\

    Wrnsfmi| ko iosfrno`io}| cnr y|ir }n itily}i wrnerk`| ]n `khi |nasfoe y|ir wrnbai`| ik|fir/ Lnosiofio} cnr }di y|ir }n y|i }di ln`wy}ir |v|}i` Iccflfio} nwirk}fno nc }di ln`wy}ir |v|}i` i|wilfkaav cnr |dkrim `ya}f y|ir |v|}i`/

    Cyol}fno nc ko N\

    K ri|nyrli kaanlk}nrn

    I/e/ nc ri|nyrli|: LWY }f`i! `i`nrv |wkli! cfai |}nrkei |wkli! FN misfli| i}l/n Milfmi no dnu }n kaanlk}i }di|i ri|nyrli| }n |wilfcfl wrnerk` # y|ir| |n }dk} f} lko

    nwirk}i }di ln`wy}ir |v|}i` iccflfio}av kom ckfrav

    K lno}rna wrnerk`n @kokei }di itily}fno nc y|ir wrnerk`| }n wrisio}| irrnr # f`wrnwir y|i nc }di

    ln`wy}ir

    n Lnoliro uf}d nwirk}fno # lno}rna nc FN misfli|/

    Y|ir Y|ir Y|ir Y|ir

    Ln`wfair K||i`bair ]it} Imf}nr Mk}kbk|i \v|}i`

    Kwwaflk}fno Wrnerk`|

    Nwirk}foe \v|}i`

    Ln`wy}ir Dkrmukri

    Unrm wrnli||nr|!

    |wrikm|dii}|! ln`wfair| #

    uib brnu|ir|

    Micfoi }di ukv| fo udfld }di|i

    ri|nyrli| kri y|ir }n |nasi

    y|ir| ln` y}fo rnbai`|

    Lno}rna # lnnrmfok}i }di y|i nc

    }di dkrmukri k`noe }di

    skrfny| kwwaflk}fno wrnerk`|

    nr }di skrfny| y|ir|/

    LWY `i`nrv # FN misfli|

    Wrnsfmi| }di bk|fl ln`wy}foe ri|nyrli| cnr }di |v|}i`

  • 8/3/2019 CSC203 - Operating System Concepts

    4/55

    Isnay}fno nc N\

    Ikrav \v|}i` \f`wai Bk}ld |v|}i` @ya}fwrnerk``im Bk}ld \v|}i`| ]f`i \dkrfoe \v|}i` Wir|noka Ln`wy}ir \v|}i` Wkrkaaia \v|}i` Mf|}rfby}im \v|}i` Rika ]f`i \v|}i`|

    Ikrav \v|}i`

    Wdv|flkaav akrei `kldfoi # ryo crn` lno|nai/ Ln``no Fn misfli wyold lkrm|! wkwir }kwi|! lkrm rikm|! afoi wrfo}ir|! `keoi}fl }kwi|/ Wrnerk``ir| dksi }n honu }di `kldfoi akoeykei }n mn }di wrnerk``foe/ Wrnerk`| ankmim `koykaav fo}n }di `i`nrv/ Dfed |i}yw }f`i kom dnb lnyam on} cfof|d no }f`i

    \f`wai Bk}ldim \v|}i`|

    Jnb uf}d |f`fakr oiim| uiri bk}ldim }nei}dir kom ryo }drnyed }di ln`wy}ir k| k ernyw/n

    Ai|| |i}yw }f`i - ln`wfair mni| on} ldkoeim }nn cri{yio}/ Ri|fmio} `nof}nr

    n ;|} N\ misianwn Kaukv| fo `i`nrv # lno}rnaaim }di nwirk}fno ky}n`k}flkaavnn ]di |wiim nc Fn misfli| uiri lno|}rkfoim bv }di |wiim nc }di `ildkoflka misfli|

    mf|kmsko}kei : dfed miakv bi}uiio jnb |yb`f||fno # Jnb ln`wai}fno

    Ncc-afoi Wrnli||foen Fo}rnmylim `keoi}fl }kwi

  • 8/3/2019 CSC203 - Operating System Concepts

    5/55

    \wnnafoen \f`ya}koiny| wirfwdirka noafoin Fo}rnmylim }di mf|h }ildonanev rkomn` klli|| misflin Fo}rnmylim }di lnoliw} nc `ya}fwrnerk``foen Kmsko}kei: folrik|i fo |v|}i` wircnr`koli/

    Lkrm Rikmir LWY Afoi Wrfo}ir

    Lkrm LWY Afoi Wrfo}ir]kwi Mrfsi|]kwi

    No-afoi F.N nwirk}fno

    Ncc-afoi F.N nwirk}fno

    Lkrm Afoi Wrfo}irLWY

    Mf|h Mf|h kl}| k| k byccir cnr

    rikmfoe ckr kdikm no fowy}

    misfli| kom \}nrfoe ny}wy}

    cfai| yo}fa ny}wy} misflikskfakbai

  • 8/3/2019 CSC203 - Operating System Concepts

    6/55

    @ya}fwrnerk``im Bk}ldim \v|}i`|

    N\ hiw} |isirka jnb| fo `i`nrv Kaa jnb| io}irim uiri hiw} fo k jnb wnna/ \iail}| jnb crn` jnb wnna }n `i`nrv $ jnb |ldimyafoe& \iail} jnb| }dk} uiri rikmv }n itily}i crn` `i`nrv }n bi itily}im bv LWY $ LWY |ldimyafoe& LNY kaukv| dkm jnb }n bi itily}im dfed LWY y}fafzk}fno Y|ir lnyam on} fo}irkl} uf}d }di jnb udio f} f| itily}foe/

    ]f`i \dkrfoe

    Fo}rnmyli `ya}f}k|hfoe \v|}i` Ko noafoi ln``yoflk}fno/

    n Wrnsfmi| no afoi ln``yoflk}fno uf}d bi}uiio y|ir kom |v|}i`n Y|ir lko fo}irkl} uf}d df| wrnerk`| udfai }div kri itily}foe

    @ya}fwrnerk``foe kom }f`i |dkrfoe kri }di lio}rka }di`i| nc `nmiro N\/

    Mi|h}nw \v|}i`|

    WL| kwwikrim fo ;657| Fof}fkaav mi|feoim cnr mimflk}i |foeai y|ir ]di ikrafir WL| uiri on} `ya}fwrnerk``foe nr `ya}f}k|hfoe Enka| nc f}| N\ ldkoeim uf}d }f`i `ktf`fzfoe y|ir lnosiofioli # ri|wno|fsioi|| N\ uk| biio ywerkmi| }n |ywwnr} `ya}fwrnerk``foe # `ya}f}k|hfoe Dkrmukri ln|} f| anu # kccnrmkbai cnr fomfsfmyka y|ir

    Wkrkaaia \v|}i`|

    K lio}rkafzim |v|}i` nr }fed}av lnywai |v|}i` Lno|f|} nc `nri }di noi wrnli||nr by} |dkrfoe }di |k`i by|! lanlh! `i`nrv kom wirfwdirka

    misfli/ @ya}fwrnli||nr |v|}i`/

    Kmsko}kei|

    n Folrik|i }drnyedwy}n Ilnon`flkan Riafkbai

    ]UN ]vwi|: \v``i}rfl @ya}fwrnli||foe K|v``i}rfl ya}fwrnli||foe

  • 8/3/2019 CSC203 - Operating System Concepts

    7/55

    Mf|}rfby}im \v|}i`|

    Mf|}rfby}im Ln`wy}k}fno| k`noe |isirka wrnli||nr| fo |isirka anlk}fno|/ K ann|iav lnywaim |v|}i`/ Ikld wrnli||nr| dk| f}| nuo anlka `i`nrv! by| # lanlh/ Ln``yoflk}im uf}d noi kon}dir }drnyed ln``yoflk}fno afoi! i/e/: dfed |wiim by|i| nr

    }iaiwdnoi afoi|

    Kmsko}kei|8n Ri|nyrli |dkrfoen \wiim yw ln`wy}k}fno riafkbfaf}vn Ln``yoflk}fno

    I/e/:n AKO! @KO # UKOn Lafio} |irsir |v|}i` # wiir }n wiir |v|}i`

    Rika ]f`i \v|}i`|

    K |wilfka wyrwn|i N\ Dk| k uiaa mi}kfoim kom cftim }f`i lno|}rkfo}| Nc}io y|im k lno}rna misfli fo ko mimflk}im kwwaflk}fno ]un caksnr|8

    n Dkrm rika }f`i |v|}i` Eykrko}ii| }dk} lrf}flka }k|h }n bi ln`wai}im no }f`i I/e/: rnbn}fl|! fomy|}rfka lno}rna

    n \nc} rika }f`i |v|}i`/ K lrf}flka rika }f`i }k|h ei}| wrfnrf}v nsir n}dir }k|h kom ri}kfo| }dk} wrfnrf}v

    yo}fa ln`wai}i|

    I/e/: K]@ `kldfoi! `ya}f`imfk! SR

    Dkomdiam \v|}i`

    Y|im fo `nbfai misfli Lnosiofioli kom wnr}kbai Af`f}k}fno

    n @i`nrv |fzin Mf|wakv |lriion \wiim nc wrnli||nr/

  • 8/3/2019 CSC203 - Operating System Concepts

    8/55

    Fomit

    Ln`wy}ir |v|}i` nwirk}fno

    Bnn}|}rkw

    Fo}irryw}

    \}nrkei \}ryl}yri

    FN \}ryl}yri

    N\ Krldf}il}yri

    \foeai Wrnli||nr

    @ya}fwrnli||nr

    Lay|}irim |v|}i`

    Ln`wy}ir Nrekofzk}fno

  • 8/3/2019 CSC203 - Operating System Concepts

    9/55

    Ln`wy}ir \v|}i` Nwirk}fno

    Bnn}|}rkw

    LWYMf|h Lno}rnaair Wrfo}ir Lno}rnaair ]kwi Mrfsi Lno}rnaair

    @i`nrv

    Lno}rnaair

    @i`nrv

    \v|}i` by| wrnsfmi klli|| }n

    |dkri `i`nrv

    Misfli lno}rnaair - Fo

    ldkoei nc k |wilfcfl }vwi

    nc misfli/

    Io|yri nrmirav klli|| }n

    `i`nrv

    \voldrnofzi klli|| }n `i`nrv

    mf|h| Wrfo}ir ]k i Misfli|

    Fof}fkafzi kaa k|wil} nc }di |v|}i`

    Anlk}i k| hiroia kom ankm f} fo}n `i`nrv

    Ukf} cnr ko isio} }n nllyr

    \}kr} itily}foe }di ;|} wrnerk`

  • 8/3/2019 CSC203 - Operating System Concepts

    10/55

    Fo}irryw}n Fo}irryw} f| |feoka |io} LWY bv ko nllyrrioli nc ko isio}/n Fo}irryw} f| }rfeeirim bv :

    Dkrmukri |io} \feoka ]drnyed }di by| \nc}ukri itily}im |wilfka fo|}ryl}fno lkaaim |v|}i` lkaa nr `nof}nr lkaa

    n ]ir`|: Fo}irryw} Sil}nr ko krrkv nc wnfo}ir }dk} dnam kmmri|| nc fo}irryw} |irsfli

    rny}foi cnr }di skrfny| misfli|

    ]rkw k |nc}ukri eioirk}im fo}irryw} onr`kaav lky|im ko irrnr nr |wilfcflri{yi|} crn` y|ir|/

    n @nmiro N\ f| fo}irryw} mrfsion \}iw| fo Dkomafoe Fo}irryw}|:

    \}nrkei \}ryl}yri

    @kfo @i`nrv :n Lno}kfo| ln`wy}ir wrnerk`| }n bi itily}imn ]di noav akrei |}nrkei krik }dk} wrnli||nr lko klli|| mfril}av/

    \ilnomkrv \}nrkei:

    n it}io|fno }n `kfo `i`nrvn kbai }n dnam akrei {yko}f}v nc mk}k wir`koio}av

    \}nrkei misfli dfirkrldv:Rief|}ir

    @kfo @i`nrv

    Lkldi

    Iail}rnofl mf|h

    @k oi}fl mf|h

    Nw}flka mf|h

    @k oi}fl }k i|

    LWY |}nw| udk}isir f| mnfoe kom }rko|cir itily}fno }n k cftim

    Fo}irry } |irsfli rny}foi

    Ri|y`i fo}irry }im ln` y}k}fno/

  • 8/3/2019 CSC203 - Operating System Concepts

    11/55

    FN \}ryl}yri

    Misfli Lno}rnaair:n Fo ldkrei nc |wilfcfl }vwi nc FN misfli|n Dk| k anlka byccir kom k |i} nc |wilfka wyrwn|i rief|}irn Ri|wno|fbai cnr `nsfoe mk}k bi}uiio }di wirfwdirka misfli| }di f} lno}rna| kom f}| anlka

    byccir

    FN nwirk}fno:n LWY ankm | }di kwwrnwrfk}i rief|}ir| uf}dfo }di misfli lno}rnaairn Misfli lno}rnaair itk`foi| }di lno}io}| nc rief|}ir| kom mi}ir`foim udk} kl}fno }n bi

    }khio

    n Ln`wai}fno nc FN bv }rfeeirfoe no fo}irryw}| FN `i}dnm:

    \voldrnony| FN K|voldrnony| FN\f`wai lk|i Ri}yro lno}rna }n y|ir wrnli||

    uf}dny} ukf}foe cnr }di FN ln`wai}fno

    Lno}rna f| ri}yro }n }di y|ir

    wrnli|| udio }di FN nwirk}fno f|

    ln`wai}im

    Folrik|i |v|}i` iccflfiolv bilky|i f}

    kaanu| lnolyrrio} FN Nwirk}fno

    N\ honu| itkl}av udfld misfli f|

    fo}irryw}foe

    Misfli |}k}y| }kbai f| ri{yfrim }n

    hiiw }rklh udfld misfli f|

    fo}irryw}foe

    M@K \}ryl}yrin Mfril} `i`nrv klli||/n Y|im cnr dfed |wiim FN misfli|! kbai }n }rko|`f} focnr`k}fno k} lan|i }n `i`nrv |wiimn Misfli lno}rnaair }rko|cir banlh| nc mk}k crn` byccir |}nrkei mfril}av }n `kfo `i`nrv

    uf}dny} LWY fo}irsio}fno

    n Noav noi fo}irryw}| wir banlh rk}dir }dko wir bv}i eioirk}im bv anuir |wiim misfli|/

    Ri{yi|} wrnli|| ukf}foe

    Misfli mrfsir

    Fo}irryw} dkomair

    Dkrmukri mk}k ]rko|cir

    Ri{yi|} wrnli|| ukf}foe

    Misfli mrfsir

    Fo}irryw} dkomair

    Dkrmukri mk}k ]rko|cir

  • 8/3/2019 CSC203 - Operating System Concepts

    12/55

    Ln`wy}ir \v|}i` Krldf}il}yri

    \foeai wrnli||nr |v|}i`|n Y|im bv `n|} |v|}i`|n Noi `kfo LWY lkwkbai nc itily}foe k eioirka wyrwn|i fo|}