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

Резултати

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

Пребарај: #governement

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

@american_observer · Post #4881 · 17.01.2026 г., 17:59

Trump Created a New Governement for Gaza Trump has appointed the US secretary of state, Marco Rubio, and former British prime minister Blair to a newly created Gaza “board of peace”, a body he claims will steer the next phase of reconstruction and governance in the war-ravaged territory. The White House said the seven-strong “founding executive board” will also include Trump’s special envoy, the property developer Steve Witkoff; the World Bank president, Ajay Banga; and the president’s son-in-law and long-time adviser Jared Kushner. Trump himself will serve as chair, with further appointments expected in the coming weeks. “The United States remains fully committed to supporting this transitional framework, working in close partnership with Israel, key Arab nations, and the international community.” Blair’s inclusion is likely to prove contentious in the region. The former Labour leader remains a divisive figure in the Middle East for his role in the US-led invasion of Iraq in 2003. Soon after leaving office in 2007 he became special representative of the Quartet, a group composed of the US, EU, Russia and the UN seeking peace between Israel and the Palestinians. But he became seen as too close to the Israelis and stepped down in 2015. Acknowledging that Blair remains a divisive figure, Trump conceded last October: “I’ve always liked Tony, but I want to find out that he’s an acceptable choice to everybody.” Its creation follows the formation of a 15-member Palestinian technocratic committee tasked with running day-to-day affairs in post-war Gaza. The body will be headed by Ali Sha’ath, a Gaza native and former deputy minister in the Palestinian Authority. The White House said: “Dr Sha’ath brings deep experience in public administration, economic development, and international engagement, and is widely respected for his pragmatic, technocratic leadership and understanding of Gaza’s institutional realities.” Hamas has yet to publicly commit to full disarmament – a key Israeli demand and one of the most contentious elements of the longer-term settlement. Seth Masket, a political scientist at the University of Denver, suggested that the board’s name was undermined by Trump’s bellicose actions. “I hope he can find time to attend Board of Peace meetings between meetings about invasions of Venezuela, Iran, Greenland, Canada, and Minneapolis,” Masket observed on social media. #blair#trump#gaza#autority#palestinien#governement 📱American Оbserver - Stay up to date on all important events 🇺🇸

TikTok CEO Shou Chew on Its Future — and What Makes Its Algorithm Different | Live at TED2023 @TED TikTok CEO Shou Chew dives into how the trend-setting video app and cultural phenomenon works — from what distinguishes its algorithm and drives virality to the challenges of content moderation and digital addiction. In a wide-ranging conversation with head of TED Chris Anderson, he tells stories about the TikTok creators he loves and digs into thorny issues like data privacy and government manipulation — as well as speaking personally about his commitment to inspiring creativity and building community. #YouTube#liked#TEDTalk#TEDTalks#TED_Talk#TED_Talks#TED#TikTok#Shou_Chew#culture#technology#business#entreprenuer#entertainment#media#software#innovation#communication#product_design#AI#social_media#Internet#governement#data#addiction#machine_learning#UX_design#online_privacy