Возможно, стоит пояснить разницу между синхронизацией из thread/process-safe и синхронизацией с помощью Lock🤔
Наша задача — заставить разные процессы и потоки обращаться к базе данных (или любым другим ресурсам) последовательно. Чтобы не случилось так называемого race condition, то есть состояние гонки. Это когда разные потоки или процессы пытаются одновременно что-то сделать с одним и тем же ресурсом.
В этом случае нам нужна какая-то логика ограничения. Пока один процесс не завершил своё действие, другие не могут получить доступ к ресурсу.
Так вот, thread-safe и process-safe означает что отдельно взятые операции записи в БД гарантированно будут последовательны. Запросы из разных процессов или потоков выстроятся в очередь и не будут мешать друг другу. Лучше всего когда этот блок реализован на уровне БД в виде атомарных операций или ещё как-то.
Но зачем нам тогда еще дополнительный Lock?
Этот способ синхронизации используется когда процесс никак не укладывается в одно действие и должен сделать множество операций прежде чем дать доступ следующему. В этом случае процесс ставит некий глобальный Lock на ресурс и никто другой, даже получив законное право на доступ, не может ничего сделать. Все ждут пока этот Lock не будет снят.
Это решается на уровне приложения и правильность реализации полностью в вашей ответственности. Например, если забыли разблокировать или сделали перекрёстный Lock (Deadlock как на картинке), то всё зависнет в бесконечном ожидании.
#basic
End-of-week depositary statistics
OVERVIEW OF SECURITIES ISSUES SAFEKEPT BY THE CENTRAL SECURITIES DEPOSITORY
The aggregate number of shares issues totaled 2093, while of corporate bonds totaled 30 as of 18.11.2022. The aggregate volume of issued shares totaled UZS 165 622.4 billion, while of corporate bonds totaled UZS 1 011.4 billion.
#issues#shares#bonds#infographics#statistics
deponet.uz|Tg|Fb|Inst|Youtube
End-of-week depositary statistics
OVERVIEW OF SECURITIES ISSUES SAFEKEPT BY THE CENTRAL SECURITIES DEPOSITORY
The aggregate number of shares issues totaled 2092, while of corporate bonds totaled 30 as of 11.11.2022. The aggregate volume of issued shares totaled UZS 165 616.4 billion, while of corporate bonds totaled UZS 1 011.4 billion.
#issues#shares#bonds#infographics#statistics
deponet.uz|Tg|Fb|Inst|Youtube
End-of-week depositary statistics
OVERVIEW OF SECURITIES ISSUES SAFEKEPT BY THE CENTRAL SECURITIES DEPOSITORY
The aggregate number of shares issues totaled 2091, while of corporate bonds totaled 30 as of 04.11.2022. The aggregate volume of issued shares totaled UZS 165 616.2 billion, while of corporate bonds totaled UZS 1 011.4 billion.
#issues#shares#bonds#infographics#statistics
deponet.uz|Tg|Fb|Inst|Youtube
End-of-week depositary statistics
OVERVIEW OF SECURITIES ISSUES SAFEKEPT BY THE CENTRAL SECURITIES DEPOSITORY
The aggregate number of shares issues totaled 2090, while of corporate bonds totaled 30 as of 28.10.2022. The aggregate volume of issued shares totaled UZS 165 616.2 billion, while of corporate bonds totaled UZS 1 011.4 billion.
#issues#shares#bonds#infographics#statistics
deponet.uz|Tg|Fb|Inst|Youtube
End-of-week depositary statistics
OVERVIEW OF SECURITIES ISSUES SAFEKEPT BY THE CENTRAL SECURITIES DEPOSITORY
The aggregate number of shares issues totaled 2085, while of corporate bonds totaled 30 as of 21.10.2022. The aggregate volume of issued shares totaled UZS 164 689.5 billion, while of corporate bonds totaled UZS 1 011.4 billion.
#issues#shares#bonds#infographics#statistics
deponet.uz|Tg|Fb|Inst|Youtube
End-of-week depositary statistics
OVERVIEW OF SECURITIES ISSUES SAFEKEPT BY THE CENTRAL SECURITIES DEPOSITORY
The aggregate number of shares issues totaled 2084, while of corporate bonds totaled 30 as of 14.10.2022. The aggregate volume of issued shares totaled UZS 164 619.5 billion, while of corporate bonds totaled UZS 1 011.4 billion.
#issues#shares#bonds#infographics#statistics
deponet.uz|Tg|Fb|Inst|Youtube
End-of-week depositary statistics
OVERVIEW OF SECURITIES ISSUES SAFEKEPT BY THE CENTRAL SECURITIES DEPOSITORY
The aggregate number of shares issues totaled 2083, while of corporate bonds totaled 30 as of 07.10.2022. The aggregate volume of issued shares totaled UZS 164 609.8 billion, while of corporate bonds totaled UZS 1 011.4 billion.
#issues#shares#bonds#infographics#statistics
deponet.uz|Tg|Fb|Inst|Youtube
End-of-week depositary statistics
OVERVIEW OF SECURITIES ISSUES SAFEKEPT BY THE CENTRAL SECURITIES DEPOSITORY
The aggregate number of shares issues totaled 2082, while of corporate bonds totaled 29 as of 30.09.2022. The aggregate volume of issued shares totaled UZS 164 597.6 billion, while of corporate bonds totaled UZS 1006.4 billion.
#issues#shares#bonds#infographics#statistics
deponet.uz|Tg|Fb|Inst|Youtube
End-of-week depositary statistics
OVERVIEW OF SECURITIES ISSUES SAFEKEPT BY THE CENTRAL SECURITIES DEPOSITORY
The aggregate number of shares issues totaled 2081, while of corporate bonds totaled 29 as of 23.09.2022. The aggregate volume of issued shares totaled UZS 164 397.9 billion, while of corporate bonds totaled UZS 1006.4 billion.
#issues#shares#bonds#infographics#statistics
deponet.uz|Tg|Fb|Inst|Youtube
End-of-week depositary statistics
OVERVIEW OF SECURITIES ISSUES SAFEKEPT BY THE CENTRAL SECURITIES DEPOSITORY
The aggregate number of shares issues totaled 2079, while of corporate bonds totaled 27 as of 16.09.2022. The aggregate volume of issued shares totaled UZS 163 200.5 billion, while of corporate bonds totaled UZS 996.4 billion.
#issues#shares#bonds#infographics#statistics
deponet.uz|Tg|Fb|Inst|Youtube
End-of-week depositary statistics
OVERVIEW OF SECURITIES ISSUES SAFEKEPT BY THE CENTRAL SECURITIES DEPOSITORY
The aggregate number of shares issues totaled 2078, while of corporate bonds totaled 26 as of 09.09.2022. The aggregate volume of issued shares totaled UZS 163 200.4 billion, while of corporate bonds totaled UZS 993.9 billion.
#issues#shares#bonds#infographics#statistics
deponet.uz|Tg|Fb|Inst|Youtube
End-of-week depositary statistics
OVERVIEW OF SECURITIES ISSUES SAFEKEPT BY THE CENTRAL SECURITIES DEPOSITORY
The aggregate number of shares issues totaled 2077, while of corporate bonds totaled 25 as of 26 August 2022. The aggregate volume of issued shares totaled UZS 163 190.4 billion, while of corporate bonds totaled UZS 983.9 billion.
#issues#shares#bonds#infographics#statistics
deponet.uz|Tg|Fb|Inst|Youtube