#multithreading

Frontend Dogmafrontenddogma@mas.to
2025-07-04

Worker Threads in Node.js: A Complete Guide for Multithreading in JavaScript, by @nodesource.bsky.social:

nodesource.com/blog/worker-thr

#guides #nodejs #workerthreads #javascript #multithreading

2025-06-25

Как обобрать дерево в несколько потоков?

Всем привет, меня зовут Антон, я Java‑разработчик в Сбере, подразделение SberWorks. Я разрабатываю Giga IDE — новую IDE на основе IntelliJ IDEA. В ходе работы столкнулся с тем, что при открытии проектов происходит сканирование всех папок для поиска тех или иных файлов. Если обобщить, то задача сводится к обходу дерева. Я решил подробнее рассмотреть эту тему, причём с прицелом на многопоточность. Задача обхода деревьев далеко не нова, существуют два основных подхода: обход в ширину и глубину. В первом случае удобно применять рекурсивный алгоритм, а во втором — понадобится дополнительная коллекция, в которую будут складываться узлы дерева, но всё это в один поток, а я решил рассмотреть эту задачу в многопоточной интерпретации.

habr.com/ru/companies/sberbank

#java #обход_дерева #multithreading #forkjoinpool #forkjointask #performance #производительность

Overture Rede Private LimitedOvertureRede
2025-06-24

Position: Freelance Trainer – Advanced C++
Location: Remote | Duration: Project-Based / Part-Time
Experience: 10+ years in C++ development and software architecture

📩 Email: amritk1@overturerede.com
📞 Call/WhatsApp: +91 9289118667

Apply NOW to train the next generation of expert C++ developers! ⚙️💡

🔖

Rowan the Selfsamerosylf@c.im
2025-06-21

Link: mediatum.ub.tum.de/?id=601795 (It took digging to find this from the Wikipedia article [1] and the unsecured HTTP homepage for "BMDFM".)

```bibtex
@phdthesis{dissertation,
author = {Pochayevets, Oleksandr},
title = {BMDFM: A Hybrid Dataflow Runtime Parallelization Environment for Shared Memory Multiprocessors},
year = {2006},
school = {Technische Universität München},
pages = {170},
language = {en},
abstract = {To complement existing compiler-optimization methods we propose a programming model and a runtime system called BMDFM (Binary Modular DataFlow Machine), a novel hybrid parallel environment for SMP (Shared Memory Symmetric Multiprocessors), that creates a data-dependence graph and exploits parallelism of user application programs at run time. This thesis describes the design and provides a detailed analysis of BMDFM, which uses a dataflow runtime engine instead of a plain fork-join runtime library, thus providing transparent dataflow semantics on the top virtual machine level. Our hybrid approach eliminates disadvantages of the parallelization at compile-time, the directive based paradigm and the dataflow computational model. BMDFM is portable and is already implemented on a set of available SMP platforms. The transparent dataflow paradigm does not require parallelization and synchronization directives. The BMDFM runtime system shields the end-users from these details.},
keywords = {Parallel computing;Shared memory multiprocessors;Dataflow;Automatic Parallelization},
note = {},
url = {mediatum.ub.tum.de/601795},
}
```

[1]: en.wikipedia.org/wiki/Binary_M

#SMP #Parallelization #Multithreading #DependenceGraph #RunTime #DataFlow #VirtualMachine #VM #ParallelComputing #SharedMemoryMultiprocessors #AutomaticParallelization #CrossPlatform #Virtualization #Configware #Transputer

Gareth Lloyd (He/him)glloyd@fosstodon.org
2025-06-14

I'm putting a talk together about #programming Mandelbrot image generator with insight into profiling and optimisation. Main part will be normal optimisations, #simd, #multithreading, and possibly gpu acceleration.

I'll also show micro benchmarking, hotspot/perf, intel advisor, and also inspecting assembly code.

Any other interesting bits I should look into putting into my talk?

#cpp #cplusplus

TechKeysXTechKeysX
2025-06-02

Async to run background function or task in C# Tip #40 Using async and Task in C# to run a background function while the main method continues executing a counter until the background task completes.

Mille e Una Avventura1001avventura@mastodon.uno
2025-05-28

Mettiamo a confronto varie tecniche di programmazione per scoprire qual è la più performante. Il classico algoritmo che approssima Pi greco con il metodo di Montecarlo viene implementato con un singolo thread, con le SIMD AVX2, multithreaded sulla CPU e, poi, su una GPU Nvidia sfuttando CUDA. Quali performance otterremo? #clanguage #cuda #multithreading #mandelbrot #cplusplus #visualstudio #programming youtube.com/watch?v=NyaGaUeDck

Mille e Una Avventura1001avventura@mastodon.uno
2025-05-26

Vediamo le funzionalità del Fortran introdotte nel 2008, con i CoArray, e nel 2018 per scoprire come si possono sfruttare tutti i core delle nostre CPU abbreviando i tempi di calcoli scientifici complessi. #fortran #parallelcomputing #multithreading
youtube.com/watch?v=78_12a89MW

Hacker Newsh4ckernews
2025-05-23
Erik C. Thauvinethauvin
2025-05-12
N-gated Hacker Newsngate
2025-04-27

☠️ Oh joy, yet another tale of how becomes a sardine can when you try to cram in with Rails! 🐟 Apparently, the author's groundbreaking revelation is that ignoring makes your app collapse faster than my interest in reading this. 🚀
blog.julik.nl/2025/04/a-can-of

JAVAPROjavapro
2025-04-22

brings order to the chaos of concurrent code. But the current may not survive. @ronveen reviews what works, what’s fragile - and what’s next. Is your concurrency model future-proof?

Read: javapro.io/2025/04/18/structur

@openjdk

2025-04-20

Java exception of the day: FileAlreadyExistsException on

Files.copy(body, requestedFile, StandardCopyOption.REPLACE_EXISTING);

🤷 It is not as weird if we take into account multiple threads. From the JDK code of Files.copy after deleting the requestedFile first:

} catch (FileAlreadyExistsException x) {
... other stuff deleted ...
// someone else won the race and created the file
throw x;
}

#Java #programming #multithreading

2025-04-13

Параллельный цикл на worker. Многопоточность JS

Как применить worker для ускорения параллельных вычислений на JS. Постарался подробно и понятно разобрать как работают worker, как общаться с ними. Показал пример многопоточного вычисления значений массива и сравнил производительность различных методов обработки массивов.

habr.com/ru/articles/900488/

#worker #multithreading

Felix Palmen :freebsd: :c64:zirias@bsd.cafe
2025-04-03

Fixed cancelling a thread job in #poser's #threadpool. Using a semaphore to do this seems reliable 😎

Oh my. #Multithreading, #synchronization, async #Unix #signals, this is pure "fun" ... 🙈

github.com/Zirias/poser/commit

#C #coding

N-gated Hacker Newsngate
2025-04-02

🚀 Hold on to your single-threaded hats, folks! This article serves a piping-hot cup of "multithreading is the worst" ☕, with a side of Node.js bashing for flavor. Who needs parallel processing 🤖 when you can be blissfully ignorant of how actually work? 🙃
unetworkingab.medium.com/multi

Hacker Newsh4ckernews
2025-03-23

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst