Cov txheej txheem:

Qhov chaw nyob ntawm lub cev thiab qhov chaw nyob qhov chaw nyob yog dab tsi?
Qhov chaw nyob ntawm lub cev thiab qhov chaw nyob qhov chaw nyob yog dab tsi?

Video: Qhov chaw nyob ntawm lub cev thiab qhov chaw nyob qhov chaw nyob yog dab tsi?

Video: Qhov chaw nyob ntawm lub cev thiab qhov chaw nyob qhov chaw nyob yog dab tsi?
Video: Saib Tias Ntawm neeg lub cev (update) 23/4/2019 2024, Hlis ntuj nqeg
Anonim

Qhov txawv nruab nrab ntawm Logical thiab qhov chaw nyob yog tias Logical chaw nyob yog generated by CPU nyob rau hauv foundations ntawm ib tug program. Ntawm qhov tod tes, lub qhov chaw nyob yog ib qhov chaw uas muaj nyob rau hauv lub memoryunit. Cov txheej txheem tag nrho logical chaw nyob tsim los ntawm CPU fora program hu ua Logical Chaw Nyob Qhov chaw.

Hauv qhov no, qhov chaw nyob thiab qhov chaw nyob hauv lub cev yog dab tsi?

Logical thiab Lub cev chaw nyob hauv OperatingSystem . Logical Chaw Nyob yog tsim los ntawm CPU thaum aprogram tab tom khiav. Cov cuab yeej kho vajtse hu ua Memory-ManagementUnit yog siv rau kev kos duab chaw nyob logical rau nws sib xws qhov chaw nyob . Chaw nyob ntawm lub cev qhia a lub cev qhov chaw ntawm cov ntaub ntawv xav tau hauv amemory.

Qhov chaw nyob lub cev txhais li cas? A qhov chaw nyob yog ib tug binarynumber nyob rau hauv daim ntawv ntawm logical siab thiab qis xeev ntawm ib chaw nyob busthat sib raug rau ib lub xovtooj ntawm qhov chaw khaws cia (tseem hu ua lub cim xeeb tseem ceeb), lossis rau ib qho kev sau npe hauv lub cim xeeb-mappedI / O (input / output) ntaus ntawv.

Ib yam li ntawd, koj ua li cas thiaj nrhiav tau qhov chaw nyob ntawm qhov chaw nyob ntawm lub cev?

Txhawm rau xam qhov chaw nyob ntawm lub cev:

  1. saib tus lej ntawm nplooj ntawv hauv nplooj ntawv thiab tau txais tus lej.
  2. los tsim qhov chaw nyob, ncej = 17 khoom; offset = 12 ntsis; ces 512 = 29. 1m = 220 => 0 - (229-1) yog lub cim xeeb yog 512 k, ces qhov chaw nyob yog 29 khoom.

Qhov chaw nyob logical yog dab tsi?

Logical chaw nyob yog set logicaladdresses uas tsim los ntawm ib qho kev pab cuam. Lub cev chaw nyob yog chaw nyob uas pom los ntawm lub cim xeeb thiab siv nkag mus rau lub cim xeeb. Virtual chaw nyob yog mapped nrog lub cev chaw nyob los ntawm kev tswj hwm lub cim xeeb.

Pom zoo: