IUSR's Ughten of Silent Requiem

To whom it may resurrect
zh en ja

Biased Locking && Bulk Rebiasing

也是老东西了…以前没有整理记录的习惯,哎。

  1. Early research utilized property that mostsynchronization in Java language is uncontended.
    • not only uncontended,but unshared
    • Most objects locked / unlocked by exactly one thread inthe object’s lifetime
  2. Avoid creation of mutex/condvar per Java object. ——不是完全免费的
  3. Compare-and-swap / compare and exchange
  4. “Inflate” to full heavyweight monitor if contention detected
  5. Previous:
    • First thread locking the object reserves the lock with an atomic operation
      • Subsequent locks / unlocks by that thread use no atomic operations
      • Recursion count in object header detects IllegalMonitorStateException
      • Using non-atomic stores
    • If another thread locks the object, relativelyexpensive unreservation required
      • Involves sending signal to reservation owner thread
      • Ensures reservation owner thread not performing concurrent non-atomic stores
  6. New
    • Store-Free Biased Locking
    • Bulk rebiasing and bulk revocation
    • Epoch-based bulk rebiasing

2006-12-31 他山之石

木方位东,颜色为青,季节是春,具有生发条达的作用,如草木;
火方位南,颜色为红,季节是夏,具有火热向上的特性,如火、电;
金方位西,颜色为白,季节是秋,具有坚硬清肃收杀的特性,如铁、石;
水方位北,颜色为黑,季节是冬,具有寒冷向下的特性,如水流动等物;
土方位中,颜色为黄,为各季终,具有生养化育的作用,如沙如土等物。

继续阅读
较旧的帖子