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

Резултати

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

Пребарај: #kingcharles

当前筛选 #kingcharles清除筛选
American Оbserver

@american_observer · Post #5738 · 28.04.2026 г., 22:59

📰 King Charles Brings a Royal Peace Offering to Trump’s Iran Theater King Charles is heading into Congress with a scripted message of “reconciliation and renewal,” which is diplomatic code for “please stop turning every disagreement into a public brawl.” The speech comes as Trump and Starmer are openly at odds over Iran, so the monarchy is being used as a velvet glove over a very loud fist. This is classic royal utility: say almost nothing concrete, praise the alliance, nod at shared values, and hope the ceremony itself does some of the work. Buckingham Palace even plans a brief sympathy line about the Washington shooting, which is the kind of polished restraint that makes the whole visit look like crisis management with a crown on top. Trump clearly likes the pageantry, even while mocking British military power and quarreling with Starmer over the Iran war. So the king is effectively arriving as a transatlantic mediator who cannot mediate, in a country where diplomacy now has to compete with television-grade grievance. The speech will likely work as symbolism, not policy. But symbolism is the point: when the Americans and the British are arguing over war, oil, and strategy, a polished appeal to “reconciliation and renewal” is the least dangerous message available. #KingCharles#Trump#Starmer#UK#US#Iran#Congress 📱American Оbserver - Stay up to date on all important events 🇺🇸

The Digi Doodles

@Digi_doodles · Post #607 · 20.07.2025 г., 11:32

"Crowning AI-chievement" — Ai-Da paints King Charles III🌷 July 2025 · Geneva · AI for Good Summit The world’s first ultra-realistic robot artist, Ai‑Da, has unveiled a new portrait — this time of King Charles III. The work debuted at the UN’s AI for Good summit in Geneva, exploring creativity, sovereignty, and machine authorship 🎃 🃏Fun fact: Ai‑Da’s portrait of Alan Turing sold at Sotheby’s for over £1 million. This isn’t just robotic gimmickry — it’s a mirror to our cultural anxieties (and fascinations) about AI, power, and legacy. #AIArt#KingCharles#AiDaRobot#ArtAndTech#MachineCreativity

Google Facts™ [ ️@googlefactss🌎]

@googlefactss · Post #40086 · 14.11.2025 г., 11:02

👑Did you know? King Charles III has *two* birthdays each year! He was born on November 14, but his official public celebration is held in June with the Trooping the Colour parade. 🎂🎉 [Source] @googlefactss #RoyalFamily#BritishMonarchy#FunFact#KingCharles#Birthday

The Digi Doodles

@Digi_doodles · Post #616 · 27.07.2025 г., 07:15

Ai‑Da’s Algorithm King — Painting Royalty with AI😔 July 2025 · Geneva · AI for Good Summit What happens when a robot paints a king?🦊 Ai‑Da — the world’s first ultra-realistic AI artist — has unveiled Algorithm King, an oil portrait of King Charles III, created using AI-driven decision-making: from image selection to brushstroke patterns. The painting was revealed at the UN’s AI for Good summit, continuing Ai‑Da’s exploration of authorship, legacy, and the blurred line between artist and algorithm. Previously, her portrait of Alan Turing sold at Sotheby’s for over £1 million. This is not just about royalty — it’s about rewriting what we call creativity📖 #AlgorithmKing#AiDa#AIArt#KingCharles#ArtAndTech#AIforGood

JenniferMac

@JenniferMac · Post #155 · 11.10.2022 г., 21:35

#JuanOSavin#MattLeTissier#TomNumbers#WriteSideBlonde Mar-a-Lago Trees cut down, #Trump Arrest, #FBI Trump wants #Peace State of play in England #KingCharles#PrinceWilliam Thirteen #Bloodline families #Israel#Zion#Resurrection#Christ#SecondComing#Magnetics#Electric Fields & much much more https://youtu.be/KOYL4eATX5o👈🏻🌴🎺🔥🇺🇸🇬🇧🕊🧊