🚀 Novo no blog: Enviando sinais para threads ou processos no POSIX

Exploro como enviar sinais em POSIX: uso de pthread_kill() para verificar se uma thread está “viva” (com sig = 0) ou para enviar sinais efetivamente; e alternativa mais rica com pthread_sigqueue(), que permite anexar dados ao sinal como sigqueue(), mas direcionado a threads, não ao processo. Leia mais: https://danieltak.com.br/posts/os/enviar-sinal-pthread/

#POSIX #pthread #Signals #Linux #Programacao #Dev #danieltak

Enviar Sinal para Pthread ou Processo

Como enviar sinais para uma thread ou processo no POSIX

danieltak

Still working on #swad, and currently very busy with improving quality, most of the actual work done inside my #poser library.

After finally supporting #kqueue and #epoll, I now integrated #xxhash to completely replace my previous stupid and naive hashing. I also added a more involved #dictionary class as an alternative to the already existing #hashtable. While the hashtable's size must be pre-configured and collissions are only ever resolved by storing linked lists, the new dictionary dynamically nests multiple hashtables (using different bits of a single hash value). I hope to achieve acceptable scaling while maintaining also acceptable memory overhead that way ...

#swad already uses both container classes as appropriate.

Next I'll probably revisit poser's #threadpool. I think I could replace #pthread condition variables by "simple" #semaphores, which should also reduce overhead ...

https://github.com/Zirias/swad

#c #coding

GitHub - Zirias/swad: Simple Web Authentication Daemon

Simple Web Authentication Daemon. Contribute to Zirias/swad development by creating an account on GitHub.

GitHub

Los mutex permiten solucionar el problema de las race condition en programación concurrente. En este articulo te explico como usarlos correctamente.

https://www.lateclaescape.com/post/2025/mutex/

#Mutex #raceconditions #pthread #concurrencia

Los mutex

Articulo disponible en formato audiblog: Introducción En un entorno de programación concurrente, varios hilos de ejecución pueden intentar acceder a un mismo recurso al mismo tiempo. Si este acceso concurrente no se controla de alguna manera, pueden ocurrir condiciones de carrera, que tal y como analicé en un articulo anterior, pueden generar resultados inconsistentes e impredecibles.

La tecla ESC

Now that I'm several days into removing pthread from Darknet/YOLO I can finally comment on the image data loading process.

Both how it is currently implemented, and what I'm doing to change it.

A short thread into one of the "darker" portions of the Darknet/YOLO codebase...

#darknet #yolo #cpp #pthread

🧵 1/8

Pigz - Compress And Decompress Files In Parallel In Linux - OSTechNix

Pigz, is a free, open source multi-threaded compression utility to compress and decompress files in parallel in Linux operating system.

OSTechNix