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

TGINSIGHT SIMILAR POSTS

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

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

От многопоточных вычислений переходим к распределённым. То есть вычисления, происходящие на нескольких компьютерах. Конечно, в зависимости от задачи, вы можете взять готовые решения вроде CGRU или Deadline для рендеринга, charm4py или Dask для ML, или замутить что-то на AWS С2. Но хотелось бы чего-то попроще, попитоничней что ли) А ведь в Python есть средства "из коробки" для синхронизации нескольких процессов на разных хостах. Вот простой пример кода, который синхронизирует работу двух процессов на разных компьютерах. В этом случае используется процесс-посредник, который является синхронизирующим сервером. В примере создаётся некий Manager, который шарит общую для клиентов очередь. Все подключившиеся могут что-то в неё писать или забирать. В моём коде один процесс что-то "считает" и складывает в очередь, другой забирает и продолжает какие-то свои "расчёты". Если у вас есть несколько машин, то можете попробовать это запустить по сети (нужно заменить 'localhost' на IP-адрес сервера). Но и на локальной машине сработает. Gist 🌎 #libs#source#tricks

Резултати

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

Пребарај: #clouds

当前筛选 #clouds清除筛选
Amazing Geography 🌍

@amazingeo · Post #587 · 22.01.2026 г., 20:31

🌍 Polar stratospheric clouds, also known as nacreous clouds, shimmer with pastel colors and only form in extremely cold conditions. They set the stage for both rare atmospheric optics and ozone loss. ✨ #aurora⚡#clouds⚡#atmosphere⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels ​

Amazing Geography 🌍

@amazingeo · Post #511 · 13.12.2025 г., 12:31

🌍 The highest clouds on Earth are called noctilucent clouds. They glow at twilight and form up to 85 kilometers above ground, in the edge of space—far higher than any weather clouds. ✨ #meteorology⚡#clouds⚡#atmosphere⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels ​

Interesting Planet 🌍

@interesting_planet_facts · Post #519 · 08.08.2025 г., 00:22

🌎 The horseshoe vortex, or “smoke ring” in the sky, is a rare weather phenomenon where winds sculpt swirling, donut-shaped clouds. These dramatic rings form after volcanic eruptions, industrial blasts, or even lightning, showcasing nature’s surprising ability to twist air into geometric shapes. ✨ #atmosphere⚡#clouds⚡#weather 👉subscribe Interesting Planet

Universe Mysteries 🪐

@cosmomyst · Post #84 · 05.08.2025 г., 13:11

🪐 In the atmosphere of the giant planet Neptune, astronomers have discovered clouds of methane ice drifting in bands, creating ghostly streaks against the blue background. These shimmering clouds form when sunlight breaks apart methane gas and turns it into icy crystals high above the planet’s swirling, windy storms. ✨ #Neptune⚡#planets⚡#clouds⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries

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