Dab tsi yog kev siv exec system hu?
Dab tsi yog kev siv exec system hu?

Video: Dab tsi yog kev siv exec system hu?

Video: Dab tsi yog kev siv exec system hu?
Video: Leng Yang - Yog Vim Dab Tsi (Official Full Song | Nkauj Tawm Tshiab) 2020/05/24 2024, Tej zaum
Anonim

Cov exec system hu yog siv rau executeafile uas yog nyob rau hauv ib tug active txheej txheem. Thaum twg ua exec hu ua cov ntaub ntawv executable yav dhau los yog hloov thiab tshiab fileisexecuted. Ntau precisely, peb tuaj yeem hais tias siv execsystemcall yuav hloov cov ntaub ntawv qub lossis cov kev pab cuam los ntawm cov txheej txheem nrog cov ntaub ntawv tshiab lossis cov kev pab cuam.

Ib yam li ntawd, kev ua haujlwm ntawm exec system hu li cas?

Hauv kev suav, ua exec yog a kev ua haujlwm kev ua haujlwm qhov system uas khiav ib cov ntaub ntawv executable nyob rau hauv cov ntsiab lus ntawm ib tug uas twb muaj lawm txheej txheem, hloov lub yav dhau losexecutable. Qhov no kuj yog hu ua ib tug overlay. Nws yog qhov tseem ceeb tshwj xeeb hauv Unix-zoo li cov tshuab, txawm hais tias lwm qhov kev ua haujlwm ua haujlwm nws zoo ib yam.

Ib yam li ntawd, Exec ua haujlwm li cas hauv Linux? Exec kev ua haujlwm yog siv thaum koj xav ua haujlwm (launch) cov ntaub ntawv (kev pab cuam). Lawv ua haujlwm los ntawm overwritingthecurrent txheej txheem duab nrog ib tug uas koj launched. Theyreplace (los ntawm xaus) cov txheej txheem tam sim no khiav (tus uas hu ua ua exec hais kom ua) nrog cov txheej txheem tshiab uas tau pib.

Raws li txoj cai, kev siv rab rawg thiab exec system hu hauv OS yog dab tsi?

diav rawg pib txheej txheem tshiab uas yog ib daim ntawv theone uas hu nws, hos ua exec hloov cov txheej txheem tam sim no nrog lwm tus (txawv) ib qho. Ob leeg niam txiv thiab menyuam cov txheej txheem raug tua ib txhij thaum muaj diav rawg () thaum Control yeej tsis rov qab mus rau qhov qub program tshwj tsis yog muaj isan ua exec () yuam kev.

Qhov twg exec hu yog kev hu xov tooj?

Cov exec system hu yog siv los tua afile uas nyob hauv cov txheej txheem nquag. Thaum twg ua exec yog hu ua cov ntaub ntawv executable yav dhau los yog hloov thiab cov ntaub ntawv tshiab raug tua. Ntau qhov tseeb, peb tuaj yeem hais tias siv exec systemcall yuav hloov cov ntaub ntawv qub lossis qhov kev pab cuam los ntawm cov txheej txheem nrog cov ntaub ntawv tshiab lossis program.

Pom zoo: