Subreaper txheej txheem yog dab tsi?
Subreaper txheej txheem yog dab tsi?

Video: Subreaper txheej txheem yog dab tsi?

Video: Subreaper txheej txheem yog dab tsi?
Video: Yog Vim Dab Tsi - Maiv Choj (cover) 2024, Tej zaum
Anonim

A subreaper ua tiav lub luag haujlwm ntawm init(1) rau nws cov xeeb ntxwv txheej txheem . Yog tias muaj, nws tsis yog init (PID 1) uas yuav dhau los ua niam txiv ntawm menyuam ntsuag txheej txheem , es tsis yog tus niam tais yawm txiv nyob ze tshaj plaws uas tau cim tias yog a subreaper yuav dhau los ua niam txiv tshiab. Yog tsis muaj niam tais yawm txiv nyob, nws ua.

Yog li ntawd, dab tsi yog qhov txheej txheem swapper?

Lawv tau thov-paged operating systems rau ob peb xyoo lawm - txij li System V R2V5 thiab 4.0BSD. Cov txheej txheem swapper , zoo li tau siv los ua txheej txheem swap kev ua haujlwm. Nws siv los pauv tag nrho txheej txheem - suav nrog tag nrho cov kernel-chaw cov ntaub ntawv qauv rau cov txheej txheem - tawm mus rau disc thiab pauv lawv rov qab rau hauv dua.

Ib yam li ntawd, tag nrho cov txheej txheem puas muaj cov txheej txheem niam txiv? Cov txheej txheem uas invoked fork yog tus niam txiv txheej txheem thiab tus tshiab tsim txheej txheem yog tus me nyuam txheej txheem . Txhua txheej txheem (tsuas yog txheej txheem 0) muaj ib niam txiv txheej txheem , mas tuaj yeem muaj ntau tus menyuam txheej txheem.

Ib yam li ntawd, cov txheej txheem niam txiv hauv Linux yog dab tsi?

Parent Process . Tag nrho cov txheej txheem nyob rau hauv lub operating system yog tsim thaum a txheej txheem executes fork() system hu tsuas yog pib txheej txheem . Cov txheej txheem uas siv lub fork() system hu yog tus niam txiv txheej txheem . Hauv lwm lo lus, a niam txiv txheej txheem yog ib tug uas tsim ib tug me nyuam txheej txheem.

Dab tsi ua rau kev ua tsis tiav?

Defunct txheej txheem . A " tsis ua haujlwm " txheej txheem (qee zaum hu ua "zombie") yog ib txheej txheem uas yog ua tiav uas nyob ntawm niam txiv txheej txheem uas rau qee yam vim li cas (=error) tsis tau lees paub qhov kev paub tias nws tiav lawm thiab yuav tsum raug txiav tawm.

Pom zoo: