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

Резултати

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

Пребарај: #comput3

当前筛选 #comput3清除筛选
TONlines – News

@tonlines · Post #7175 · 12.05.2025 г., 15:31

Final Day for Solana Wallet Addition on RoOLZ Gods & Mortals #Solana#Comput3 The RoOLZ Gods & Mortals channel reminds users that today is the last day to add their Solana wallet for the $COM drop. A snapshot will be taken tomorrow, and the drop is scheduled for Wednesday. Source: link @tonlines

TONlines – News

@tonlines · Post #7378 · 26.05.2025 г., 15:57

RoOLZ Gods & Mortals: Join the Comput3 Reward Quest #RoOLZ#Comput3 The RoOLZ app introduces a new feature allowing users to earn rewards by engaging with communities. Comput3, the first onboarded project, offers $2K in GODL tokens for user participation. Points can be earned through social media interactions and video posts. Source: link @tonlines

TONlines – News

@tonlines · Post #7218 · 14.05.2025 г., 17:45

RoOLZ Gods & Mortals: Exciting COM Airdrop for Stakers #Comput3#Roolz The channel RoOLZ Gods & Mortals announces a significant airdrop of the COM token, rewarding top $GODL stakers and RoOLZ NFT holders. The distribution model offers enticing multipliers, boosting rewards up to 120x for the most committed stakers. Source: link @tonlines

TONlines – News

@tonlines · Post #6780 · 15.04.2025 г., 15:29

RoOLZ Gods & Mortals: Comput3 Airdrop Announcement #Comput3#GODL RoOLZ Gods & Mortals advises $GODL stakers to prepare for the upcoming Comput3 Airdrop. Participants can stake $GODL in the new pools and finish Comput3 tasks to qualify. Source: link @tonlines

TONlines – News

@tonlines · Post #7053 · 05.05.2025 г., 14:41

RoOLZ Gods & Mortals: Launch of Comput3 on Auto.Fun #Comput3#Auto RoOLZ Gods & Mortals is preparing for the launch of Comput3 ($COM) on Auto.Fun, a partner project for $GODL stakers. This event highlights the channel’s use of GPU infrastructure for AI animations and more. Source: link @tonlines

TONlines – News

@tonlines · Post #6733 · 12.04.2025 г., 10:25

⚡️RoOLZ Gods & Mortals: Comput3 Nears Token Launch #Comput3#ElizaOS RoOLZ Gods & Mortals announces that its partner, Comput3, is set to launch its token on the ElizaOS Launchpad. Comput3 offers an exciting platform providing Nvidia GPUs and opensource LLM models to developers via an API Key. The community is encouraged to support Comput3 on social media and participate in the launch. Source: link @tonlines