Video: Dab tsi yog hom Java nco?
2024 Tus sau: Lynn Donovan | [email protected]. Kawg hloov kho: 2023-12-15 23:47
Cov nco hauv JVM muab faib ua tsib txawv qhov chaw xws li- Method area- Lub cheeb tsam txoj kev khaws cov chav kawm code: code ntawm qhov sib txawv thiab cov txheej txheem. Heap - Ib Java cov khoom raug tsim nyob rau hauv cheeb tsam no. Java Stack- Thaum txoj kev khiav cov txiaj ntsig tau khaws cia hauv pawg nco.
Ua raws li qhov no, muaj pes tsawg hom kev nco muaj nyob hauv JVM?
Cov nco hauv JVM faib ua 5 txawv qhov chaw:
Heap. Pob. Program Counter Register. Native Method Stack.
JVM ua qee yam haujlwm tshwj xeeb:
- Kev thauj khoom ntawm code.
- Kev txheeb xyuas cov cai.
- Kev ua raws cai.
- Nws muab lub sijhawm ua haujlwm ib puag ncig rau cov neeg siv.
Ib sab saum toj no, lub cim xeeb tseem ceeb hauv Java yog dab tsi? Firstly, los ntawm " lub ntsiab nco "peb txhais tau tias Java heap, raws li pom los ntawm JVM'. JVM feem ntau yog pub dawb los ua haujlwm ntawm cov ntawv luam hauv zos ntawm qhov sib txawv. Piv txwv li, JIT compiler tuaj yeem tsim cov lej uas thauj tus nqi ntawm a Java variable mus rau hauv ib tug register thiab ces ua hauj lwm nyob rau hauv uas register.
Yog li ntawd, hom heap nco yog dab tsi?
3 Teb. Heap yog muab faib rau Young Generation, Old or Tenured Generation, thiab Permanent Generation. Cov Tub Ntxhais Hluas yog qhov chaw uas txhua yam khoom tshiab tau faib thiab hnub nyoog.
JVM yog dab tsi thiab piav qhia kuv txog Java nco faib?
Cov JVM loads cov cai, txheeb xyuas cov cai, executes code, tswj nco (qhov no suav nrog faib kev nco los ntawm kev khiav hauj lwm System (OS), tswj Java faib suav nrog heap compaction thiab tshem tawm cov khoom khib nyiab) thiab thaum kawg muab lub sijhawm ua haujlwm.
Pom zoo:
Lub hom phiaj ntawm hom lus hom lus yog dab tsi?
Hom Lus Specification. Ib Hom Lus Qhia Tshwj Xeeb (CLS) yog ib daim ntawv uas hais tias yuav ua li cas cov khoos phis tawj tuaj yeem hloov mus rau hauv Cov Lus Qhia Nruab Nrab (CIL) code. Thaum ntau hom lus siv tib bytecode, qhov sib txawv ntawm qhov kev pab cuam tuaj yeem sau ua hom lus sib txawv
Kev nco nco hauv kev puas siab puas ntsws yog dab tsi?
Kev nco qab hauv kev nco yog hais txog kev puas siab puas ntsws ntawm kev rov qab cov ntaub ntawv los ntawm yav dhau los. Muaj peb yam tseem ceeb ntawm kev rov qab: rov qab dawb, cued recall thiab serial recall. Psychologists sim cov ntaub ntawv rov qab los ua ib txoj hauv kev los kawm txog cov txheej txheem nco ntawm tib neeg thiab tsiaj txhu
Peb hom kev nco nco yog dab tsi?
Hom Sensory Memory Nws tau xav tias muaj ib qho subtype ntawm kev nco qab rau txhua yam ntawm tsib lub ntsiab lus tseem ceeb (kov, saj, pom, hnov, thiab hnov tsw); Txawm li cas los xij, tsuas yog peb hom no tau kawm ntau yam: echoic memory, iconic memory, thiab haptic memory
Ib qho piv txwv zoo ntawm kev nco nco yog dab tsi?
Ib qho piv txwv ntawm daim ntawv nco no yog thaum tus neeg pom ib yam khoom luv luv ua ntej nws ploj mus. Thaum cov khoom ploj lawm, nws tseem khaws cia hauv lub cim xeeb rau lub sijhawm luv luv. Ob hom kev kawm feem ntau ntawm kev nco nco yog iconic nco (visual) thiab echoic nco (suab)
Dab tsi yog tus hais lus sau nws lub hom phiaj thiab dab tsi yog yam tseem ceeb uas yuav tsum nco ntsoov txog cov lus hais?
Cov neeg hais lus sau ntawv yog cov ntawv qhia uas tus neeg nthuav qhia siv thaum nthuav qhia qhov kev nthuav qhia. Lawv pab tus neeg nthuav qhia nco txog cov ntsiab lus tseem ceeb thaum muab kev nthuav qhia. Lawv tshwm sim ntawm tus swb thiab tuaj yeem pom tsuas yog los ntawm tus tshaj tawm thiab tsis yog cov neeg tuaj saib