Cov txheej txheem:

Dab tsi yog qee qhov tsis zoo ntawm lub sijhawm stamping txoj hauv kev rau kev tswj hwm kev sib raug zoo?
Dab tsi yog qee qhov tsis zoo ntawm lub sijhawm stamping txoj hauv kev rau kev tswj hwm kev sib raug zoo?

Video: Dab tsi yog qee qhov tsis zoo ntawm lub sijhawm stamping txoj hauv kev rau kev tswj hwm kev sib raug zoo?

Video: Dab tsi yog qee qhov tsis zoo ntawm lub sijhawm stamping txoj hauv kev rau kev tswj hwm kev sib raug zoo?
Video: Vajtswv Txoj Lus: Kev Paub Vajtswv | Nqe Lus Uas Xaiv Tawm Los 129 2024, Kaum ib hlis
Anonim

Cov qhov tsis zoo ntawm lub sijhawm stamping txoj hauv kev yog tias txhua tus nqi khaws cia hauv cov ntaub ntawv xav tau ob qho ntxiv lub sij hawm stamp teb: ib rau lub xeem sij hawm daim teb tau nyeem thiab ib qho rau qhov hloov tshiab kawg. Lub sijhawm stamping yog li tsub kom nco xav tau thiab cov ntaub ntawv tus txheej txheem nyiaj siv ua haujlwm.

Yog li ntawd, dab tsi yog qhov teeb meem ntawm kev ua tiav ntawm kev sib pauv?

Thaum twg kev sib pauv hloov yog raug tua nyob rau hauv ib tug uncontrolled yam, ntau teeb meem tuaj yeem tshwm sim. Kev tswj hwm concurrency muaj peb lub ntsiab hauv qab no teeb meem : Poob kho tshiab. Cov ntawv nyeem qias neeg (lossis cov ntaub ntawv tsis raug cai).

Ib yam li ntawd, lub kaw lus tsim cov ntawv teev sijhawm li cas? Feem ntau, daim ntawv teev sijhawm tus nqi raug muab tso rau hauv qhov kev txiav txim uas cov kev hloov pauv raug xa mus rau qhov system . Cov kev lag luam raug tswj kom lawv zoo li khiav hauv ib daim ntawv teev sijhawm xaj. Daim ntawv teev sijhawm tuaj yeem yog tsim tawm los ntawm incrementing ib logical counter txhua lub sij hawm ib tug tshiab pauv pib.

Tsis tas li ntawd, koj ua li cas tswj concurrency hauv database?

Concurrency tswj yog muab nyob rau hauv ib tug database rau:

  1. (i) tswj kev sib cais ntawm kev lag luam.
  2. (ii) khaws cia cov ntaub ntawv sib xws los ntawm kev sib koom ua ke khaws cia ua tiav kev lag luam.
  3. (iii) daws teeb meem nyeem-sau thiab sau-nyeem tsis sib haum.

Vim li cas thiaj xav tau kev tswj hwm nyiaj txiag?

Yog vim li cas siv Concurrency tswj Txoj kev yog DBMS: Txhawm rau siv Isolation los ntawm kev sib cais ntawm kev tsis sib haum xeeb. Txhawm rau daws teeb meem nyeem-sau thiab sau-sau teeb meem. Txhawm rau khaws cov ntaub ntawv sib xws los ntawm kev khaws cia cov kev ua haujlwm tsis tu ncua.

Pom zoo: