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

Резултати

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

Пребарај: #moons

当前筛选 #moons清除筛选
Маша и Медведица ✨

@astromasha · Post #3477 · 07.03.2024 г., 11:26

В интернете появились снимки новых лун Урана и Нептуна и чуть больше связанных с ними деталей. Одна из нептунианских - S/2021 N1 - самый тусклый спутник планеты, когда-либо открытый с Земли: в период противостояний блеск объекта лишь незначительно выше 27-й зв. вел.; объект не бросается в глаза даже на вот этом суммарном фото. Вся троица - далёкие от своих планет нерегулярные объекты, очевидно, захваченные гравитацией гигантов тела. Тот же S/2021 N1 ещё и обращается вокруг Нептуна за 27.4 года, что также бьёт рекорд спутника Несо (26.7 года) - 60-км тела на орбите всё того же Нептуна (об этом здесь и тут). **** Согласно традициям наименования в системах ледяных гигантов, новая луна Урана будет названа в честь героя из книг У. Шекспира или А. Поупа. Зеледеневшие же камешки на орбите Нептуна (как это принято для нерегулярных лун 8-й планеты) получат имена в честь нереид - морских нимф из древнегреческой мифологии (их есть с запасом, пока ещё хватит). #moons#Uranus#Neptune

Google Facts™ [ ️@googlefactss🌎]

@googlefactss · Post #40351 · 18.12.2025 г., 03:02

Epimetheus is a small moon of Saturn, discovered on 18 December 1966 by Richard Walker. It shares almost the same orbit as another moon, Janus, which was confusing for astronomers at first. They thought there was only one moon there until 1978 when it was confirmed there are two. Epimetheus is about 117 km wide and orbits Saturn every 0.69 days. [Read more] @googlefactss #Epimetheus#Saturn#Moons#Space🌕🪐

Universe Mysteries 🪐

@cosmomyst · Post #19 · 29.07.2025 г., 22:00

🪐 Orbiting Jupiter, the tiny moon Amalthea is so porous and irregularly shaped that scientists believe it’s more akin to a loosely packed pile of rubble than a solid body. Despite being only about 250 kilometers across, Amalthea glows with a striking reddish color, likely stained by sulfur dust ejected from the neighboring volcanic moon Io. ✨ #Amalthea⚡#Jupiter⚡#moons 👉subscribe Universe Mysteries

Universe Mysteries 🪐

@cosmomyst · Post #241 · 08.09.2025 г., 13:11

🪐 Saturn’s moon Mimas, long thought to be a frozen and inactive ball of ice, surprised scientists in 2024 with evidence pointing to a hidden liquid ocean beneath its icy shell. Measurements of Mimas’s slight wobble in orbit, called "libration," suggest that this secret ocean lies just 20 to 30 kilometers below the moon’s cratered surface, making Mimas the newest member of the solar system’s list of ocean worlds. ✨ #moons⚡#oceans⚡#mysteries⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries ​

Universe Mysteries 🪐

@cosmomyst · Post #599 · 03.01.2026 г., 22:21

🪐 Jupiter's moon Callisto, once thought to be a frozen, inactive world, may actually hide a salty liquid ocean more than 100 kilometers below its icy surface. Magnetic field measurements by spacecraft like Galileo suggest that Callisto's interior is not entirely solid, but holds a hidden sea that could be as large or even larger than those found on Europa or Ganymede. ✨ #moons⚡#oceans⚡#Jupiter⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​

Universe Mysteries 🪐

@cosmomyst · Post #751 · 24.04.2026 г., 22:21

🪐 One of the most intriguing worlds with a hidden ocean is Saturn’s tiny moon Mimas, often called the "Death Star moon" due to its resemblance to the Star Wars space station. In 2024, scientists announced strong evidence from slight wobbles in Mimas’s orbit that a liquid water ocean may exist beneath its icy crust, making this cratered, seemingly frozen world another surprising member of the solar system’s secret ocean club. ✨ #moons⚡#oceans⚡#Saturn⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​

Universe Mysteries 🪐

@cosmomyst · Post #566 · 18.12.2025 г., 22:21

🪐 Saturn’s tiny moon Pandora, just 81 kilometers wide, may hold a subsurface ocean beneath its oddly shaped, icy crust. Recent measurements of Pandora’s density and gravitational interactions with nearby moons suggest internal heat could be keeping water liquid deep inside, raising the possibility that even small, overlooked moons may hide secret oceans beneath their frozen shells. ✨ #moons⚡#oceans⚡#Saturn⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​

Universe Mysteries 🪐

@cosmomyst · Post #500 · 15.11.2025 г., 22:21

🪐 Saturn’s moon Epimetheus, just 113 kilometers wide, may hide a secret ocean beneath its surface. Studies of its density and slight orbital wobble suggest there could be a layer of liquid water deep inside, placing Epimetheus among a growing group of icy moons that may shelter hidden oceans far from the Sun. ✨ #moons⚡#oceans⚡#saturn⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​

Universe Mysteries 🪐

@cosmomyst · Post #352 · 30.09.2025 г., 15:21

🪐 Saturn’s moon Pan, only about 28 kilometers wide, orbits inside the planet’s rings and may hold an underground ocean beneath its unusual, flying-saucer-shaped ice shell. Recent studies suggest Pan's odd shape and gravitational interactions could create enough internal heat to allow liquid water to exist deep below its frozen surface, making even tiny moons like Pan potential members of the solar system’s hidden ocean world club. ✨ #moons⚡#oceans⚡#Saturn⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​

Universe Mysteries 🪐

@cosmomyst · Post #541 · 06.12.2025 г., 12:21

🪐 Neptune’s moon Proteus, one of the largest moons in the outer solar system, may hide a subsurface ocean beneath its dark, blocky surface. Studies of Proteus’s density and orbital behavior suggest that internal heat from tidal forces—gravitational squeezing by Neptune—could keep water liquid deep inside, making Proteus a surprising addition to the list of possible ocean worlds. ✨ #moons⚡#oceans⚡#neptune⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​

Universe Mysteries 🪐

@cosmomyst · Post #443 · 18.10.2025 г., 18:21

🪐 Beneath the thick ice of Saturn’s moon Titan, scientists suspect there is a hidden ocean of liquid water mixed with ammonia, possibly deeper than 50 kilometers below the surface. Titan’s dense atmosphere, rich in methane, and its secret subsurface sea make it one of the most fascinating candidates for harboring life far from Earth. ✨ #moons⚡#oceans⚡#titan⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​

Universe Mysteries 🪐

@cosmomyst · Post #674 · 11.02.2026 г., 22:21

🪐 Beneath the icy surface of Saturn's moon Enceladus, scientists have found clear evidence of a global subsurface ocean of salty water. Powerful geysers shoot out water vapor and ice particles from cracks called "tiger stripes," revealing the presence of liquid water kept warm by heat from the moon's core—making Enceladus one of the most promising places to search for life beyond Earth. ✨ #Enceladus⚡#moons⚡#oceans⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​

12
ПретходнаСтраница 1 од 2Следна