The two algorithms differ in the treatment of objects. One has a complexity of O(n2), the other one O(n). The drawbacksof the better algorithm are synchronized regions, because they may not be interrupted by other threads.
สองขั้นตอนวิธีการที่แตกต่างกันในการรักษาของวัตถุ หนึ่งมีความซับซ้อนของ O (n2) อีกหนึ่ง O (n) drawbacksof ขั้นตอนวิธีการที่ดีกว่าที่ตรงกันภูมิภาคเพราะพวกเขาอาจจะไม่ถูกขัดจังหวะโดยหัวข้ออื่น ๆ