TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #269 · 7 јул.

­Возможно, стоит пояснить разницу между синхронизацией из thread/process-safe и синхронизацией с помощью Lock🤔 Наша задача — заставить разные процессы и потоки обращаться к базе данных (или любым другим ресурсам) последовательно. Чтобы не случилось так называемого race condition, то есть состояние гонки. Это когда разные потоки или процессы пытаются одновременно что-то сделать с одним и тем же ресурсом. В этом случае нам нужна какая-то логика ограничения. Пока один процесс не завершил своё действие, другие не могут получить доступ к ресурсу. Так вот, thread-safe и process-safe означает что отдельно взятые операции записи в БД гарантированно будут последовательны. Запросы из разных процессов или потоков выстроятся в очередь и не будут мешать друг другу. Лучше всего когда этот блок реализован на уровне БД в виде атомарных операций или ещё как-то. Но зачем нам тогда еще дополнительный Lock? Этот способ синхронизации используется когда процесс никак не укладывается в одно действие и должен сделать множество операций прежде чем дать доступ следующему. В этом случае процесс ставит некий глобальный Lock на ресурс и никто другой, даже получив законное право на доступ, не может ничего сделать. Все ждут пока этот Lock не будет снят. Это решается на уровне приложения и правильность реализации полностью в вашей ответственности. Например, если забыли разблокировать или сделали перекрёстный Lock (Deadlock как на картинке), то всё зависнет в бесконечном ожидании. #basic

Hashtags

Резултати

Пронајдени 3 слични објави

Пребарај: #bushehr

当前筛选 #bushehr清除筛选
TƏBRİZ-TURAN-TV𒀭 (TTTv)

@tebriz_turan · Post #96032 · 29.03.2026 г., 18:57

❗️❗️#Bushehr Vətəndaşlardan alınan video göstərir ki, hava limanında yerləşən bina hücumun hədəfi olub. Binanın üzərində lövhəsi görünür. Bizi teleqramda izləyin: https://t.me/tebriz_turan

Hashtags

RT France actualités

@rt_fra · Post #40182 · 30.04.2026 г., 07:31

⚛️Rosatom entend poursuivre la construction de la centrale nucléaire de Bushehr, a déclaré Mikhaïl Oulianov, représentant permanent de la #Russie auprès des organisations internationales à Vienne. Il a précisé que le personnel retournera sur le site « dès que la situation militaire le permettra ». ℹ️ La centrale nucléaire de #Bushehr est la seule centrale nucléaire en exploitation en Iran. Les employés de #Rosatom travaillaient à la construction des deuxième et troisième réacteurs, mais les travaux ont été suspendus suite au lancement de l'opération militaire américano-israélienne contre l'Iran. Le 20 avril, l'évacuation des 632 employés de la société d'État a été achevée. RT en français • Osez questionner !

American Оbserver

@american_observer · Post #5565 · 04.04.2026 г., 23:59

Bushehr Is Iran’s Zaporizhzhia Test. The West Knows It. Abbas Araghchi is trying to turn Bushehr into a hypocrisy trap: when fighting neared Zaporizhzhia, the West treated it like a civilizational emergency; when strikes land near Bushehr, the outrage is suddenly quieter. That contrast is the whole point of his message. He is also trying to move the political cost south. By warning that radioactive fallout could reach Gulf capitals, Tehran is telling the monarchies that this is no longer a remote Iran problem — it is a regional one, and the invoice may arrive in their own cities. At the same time, Araghchi is keeping the diplomatic door open just enough to matter. Reuters has reported that Iran is still leaving room for mediated talks, including the Pakistan channel, even while presenting itself as the side that has not slammed the door on negotiation. So this is not just nuclear rhetoric. It is pressure politics with a radiation warning label: indict the West for double standards, keep mediation alive, and force the Gulf to stare at the blast radius instead of the talking points. #Bushehr#Zaporizhzhia#Iran#Gulf#Reuters#diplomacy 📱American Оbserver - Stay up to date on all important events 🇺🇸