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

Резултати

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

Пребарај: #electricalgrid

当前筛选 #electricalgrid清除筛选
Venezuelanalysis

@venanalysis · Post #1732 · 30.08.2024 г., 12:20

[BREAKING] Venezuela is facing a nationwide blackout, with all 24 states affected since early this morning. Authorities are working to restore power, and buses have been deployed in Caracas as the subway system is down. Story developing. Full report here: https://shorturl.at/omBak #ElectricalGrid

Venezuelanalysis

@venanalysis · Post #2314 · 24.03.2026 г., 20:45

📰 NEWS | Venezuela: Rodríguez Announces Electricity Rationing Ahead of Heatwave, Drought Forecast Venezuela has introduced a 45-day electricity saving plan as authorities anticipate increased demand driven by extreme heat and drought conditions, according to Acting President Delcy Rodríguez. The government also confirmed plans to reform the electricity sector to allow private investment through joint ventures in generation and distribution, aiming to address long-standing infrastructure limitations. Recent outages and limited operational capacity, estimated at 12–14 GW out of 34 GW installed, highlight ongoing challenges in the national grid. Read the full report here 👉🏾https://shorturl.at/2SmsF #ElectricalGrid#Sanctions

Venezuelanalysis

@venanalysis · Post #1761 · 30.09.2024 г., 21:22

VA columnist Jessica Dos Santos describes a recent nationwide blackout in Venezuela and the memories from similar events in 2019. While the country returned to normal faster this time, questions about the state of the electrical infrastructure linger. Read the full column here 👉🏼https://shorturl.at/kFJlK #ElectricalGrid#TalesofResistance

Venezuelanalysis

@venanalysis · Post #1919 · 25.03.2025 г., 23:32

📰 NEWS | Venezuelan Gov’t Scales Down Public Sector Schedule in Electricity Rationing Measure The Venezuelan government has announced a six-week electricity rationing plan for state institutions, citing a climate emergency. Public offices will operate on alternating days with reduced hours (8 am-12:30 pm). Essential services remain unaffected. Western states, including Mérida, Táchira, Barinas, and Zulia, have faced daily blackouts of up to eight hours. Analysts point to drought-related hydroelectric challenges and concerns over the country’s transmission infrastructure. 🔗 Read the report here: https://venezuelanalysis.com/news/venezuelan-govt-scales-down-public-sector-schedule-in-electricity-rationing-measure/ #ElectricalGrid#PublicSector