Релятивистское программирование
The topic of this article may not meet Wikipedia's general notability guideline. (May 2011) |
Релятивистское программирование (РП) is a style of параллельного программирования, where instead of trying to avoid conflicts between readers and writers (or writers and writers in some cases) the algorithm is designed to tolerate them and get a correct result regardless of the order of events. Also, relativistic programming algorithms are designed to work without the presences of a global order of events. That is, there may be some cases where one thread sees two events in a different order than another thread (hence the term relativistic because in теории относительности Эйнштейна [citation needed] the order of events is not always the same to different viewers). This essentially implies working under причинно-следственной согласованности, instead of a stronger model.
Relativistic programming provides advantages in performance compared to other concurrency paradigms because it does not require one thread to wait for another nearly as often. Because of this, forms of it (Read-Copy-Update for instance) are now used extensively in the ядре Linux (over 18,000 times по состоянию на апрель 2021[update] and has grown from nothing to 11.8% of all locking primitives in just under two decades).[1]
См. также
Ссылки
- ↑ Пол Э. МакКенни. «Использование RCU Linux». www.rdrop.com. Дата обращения: 2021-08-28.
Внешние ссылки
Источники
- Участники английской Википедии. «Relativistic programming». Перевод на русский. CC BY-SA 4.0 (текст и перевод).
Источники иллюстраций
- Question book-new.svg · Лицензия файла уточняется
- LampFlowchart.svg · svg by Booyabazooka original png by Wapcaplet · CC BY-SA 3.0
