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

Резултати

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

Пребарај: #bestfriend

当前筛选 #bestfriend清除筛选
VERUM - War crimes investigations

@verum_in_english · Post #271 · 20.06.2025 г., 10:42

Realities of War: K9 Units in the Special Military Operation Zone They say a dog is a man’s best friend... I hope this huge German Shepherd without a muzzle is running towards me to check how I’m doing... A dog is not just a loyal companion. In the hands of an experienced K9 handler, it can become a mine detector, an assault unit, or even an FPV drone. During World War II, dogs were used to destroy tanks, often sacrificing their lives. Today, they no longer carry out such deadly missions, but they remain a sudden and formidable weapon on the battlefield. Modern K9 handlers are ready to provide any assistance to their four-legged partners right in the field. Our report from the Brigade Española kennel sheds light on how these dogs are trained and what role they play in the conflict zone. #war#k9units#militarydogs#SMO#minedetectors#army#dogs#man'sbestfriend #experiment#bestfriend Sorry, but there was no stopping our editor: A dog truly is man’s best friend. Don’t believe it? Try this experiment: Lock your wife and your dog in the trunk of your car. Come back in an hour or two. Who do you think will be happier to see you? Want a friend in the family? Get a dog. Want someone to bark at you? Get married.

Desi Memes Funny Jokes

@DESI_MEMES_Funny_Jokes · Post #5460 · 17.10.2024 г., 06:46

Samjha #viral#memesdaily#meme#funny#trending#memepage#trend#funnymeme#trendingreels#memes#funnymeme#trendingreel#memes#freind#freinds#freindforever#bhai#bhaichara#bestfriend#dosti#dost

Desi Memes Funny Jokes

@desi_memes_funny_jokes · Post #4910 · 29.06.2024 г., 04:33

Aa Raha Hu Bhai Ghabra Matt 🦇 #batman#thedarkknight#batmanedit#batmobile#christianbale#christophernolan#bestfriend#hollywood#hollywoodmovies#movie#movies#movielover#movielovers#meme#memes#moviememes#3am#3amthoughts

Desi Memes Funny Jokes

@desi_memes_funny_jokes · Post #5068 · 24.07.2024 г., 12:08

The reason i watch movies alone #viral#fun#funny#bollywood#viral#explore#explorepage#instagrammeme#instagramfunny#zalhirkhan#bestfriend#food#orderfood#laugh#comedy#funnyreel#comedyreels#memes#pushpa#memepage#srk#southmovie#bollywood#jawan#funnyscene#movie