Worker Threads in Node.js: A Complete Guide for Multithreading in JavaScript, by @nodesource.bsky.social:
https://nodesource.com/blog/worker-threads-nodejs-multithreading-in-javascript
Worker Threads in Node.js: A Complete Guide for Multithreading in JavaScript, by @nodesource.bsky.social:
https://nodesource.com/blog/worker-threads-nodejs-multithreading-in-javascript
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?
Multithreading in JavaScript With Web Workers, by @honeybadger:
https://www.honeybadger.io/blog/javascript-web-workers-multithreading/
Samchika – A Java Library for Fast, Multithreaded File Processing
Advanced Java Multithreading Patterns for High-Performance Applications
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;
}
Exploring Ruby Ractors – I paid for for 10 cores I'm gonna use 10 cores
The case of the critical section that let multiple threads enter a block of code
https://devblogs.microsoft.com/oldnewthing/20250321-00/?p=110984
#FluidX3D #CFD v3.2 is out! I've implemented the much requested #GPU summation for object force/torque; it's ~20x faster than #CPU #multithreading.
Horizontal sum in #OpenCL was a nice exercise - first local memory reduction and then hardware-supported atomic floating-point add in VRAM, in a single-stage kernel. Hammering atomics isn't too bad as each of the ~10-340 workgroups dispatched at a time does only a single atomic add.
Also improved volumetric #raytracing!
https://github.com/ProjectPhysX/FluidX3D/releases/tag/v3.2
Surely it’s not a multithreaded issue?
No, it’s definitely not.
It an multithreading was issue.
FLAC 1.5 : l’encodage multithread est enfin disponible https://goodtech.info/flac-1-5-lencodage-multithread-est-enfin-disponible #codec #musique #open_source #multithreading #encodage #flac #compression #opensource #audio
Remember when I mentioned we had ported our #fire propagation #cellularAutomaton from #Python to #Julia, gaining performance and the ability to parallelize more easily and efficiently?
A couple of days ago we had to run another big batch of simulations and while things progressed well at the beginning, we saw the parallel threads apparently hanging one by one until the whole process sat there doing who know what.
Our initial suspicion was that we had come across some weird #JuliaLang issue with #multithreading, which seemed to be confirmed by some posts we found on the Julia forums. We tried the workarounds suggested there, to no avail. We tried a different number of threads, and this led to the hang occurring after a different percent completion. We tried restarting the simulations skipping the ones already done. It always got stuck at the same place (for the same number of threads).
So, what was the problem?
1/n
Une revue de différentes méthodes pour découper le traitement de tâches longues et ainsi éviter de bloquer le thread principal en JavaScript (ce qui est primordial).
I think I have finally fixed the last known mysterious crash in my game engine. This one has been stumping me for weeks because I already had checks for the rare condition I thought was causing it, and it turns out I was right. The breakthrough was realizing it wasn't a crash, it was a hang. The checks to exit out of rendering early if a model wasn't fully loaded, were causing it to route around the mutex unlock on the instance. So, it would just hang forever on the next frame waiting to get the lock. "continue;" is dangerous. Two line fix, no more crashes on level load. #coding #debugging #multithreading #cplusplus
Wondering how multithreading and responsiveness works in Ratatui?
Watch the tutorial by GreenTeaCoding here: https://www.youtube.com/watch?v=awX7DUp-r14
5 Advanced Java Multithreading Techniques for High-Performance Applications
While doing my latest data puzzle project, I hit a performance issue with #selenium on my Mac, but *not* my Thinkpad.
I wrote up initial findings here:
https://mclare.blog/posts/why-is-multithreading-selenium-lousy-on-macos/
But I won't have time to investigate further until after the holidays and move
Multithreading can lead to deadlocks. Do one thing at a time, you are not the JVM.
December 13
#ZenDevAdvent #java #programming #multithreading
Hace unos meses comenté una de las grandes novedades de Python 3.12, que va a provocar discusiones durante años: No-GIL, Free-threaded Python (En CPython). En otras palabras, la opción ejecución de Python en multi-hilos.
A priori parece una gran noticia, que el software se ejecute en varios hilos o CPUs debe ser una mejora de rendimiento y un camino a seguir por todos... ¿tal vez no?
El Global Interpreter Lock (GIL) se ha ido optimizado a lo largo del tiempo, tanto que en ciertos casos el rendimiento es superior a una ejecución multi-hilo. Por otro lado es más sencillo de programar y depurar un programa en un solo hilo que en varios. No es una solución mágica, pero si una mejora en ciertas circunstancias con cierto número de hilos.
De momento tendremos algunos software que les favorezca trabajar con el GIL activo y otros no. Es posible jugar en modo experimental. Los desarrolladores son tan conscientes de sus problemas iniciales, que para poder usarlo necesitas compilar CPython con una flag concreta.
Dicho todo lo anterior, es emocionante ver como ha llegado una característica tan importante y esperada.
#python #cpython #multithreading #gil