Nice read! @mamantoha published a short and nice blog post about
#semaphores in
@CrystalLanguage at @thepracticaldev:

Nice read! @mamantoha published a short and nice blog post about
#semaphores in
@CrystalLanguage at @thepracticaldev:
> Raspberry Pi projects?
Solved a month long mystery!
How to manage Raspberry Pi I2C device access inside ROS2/Ubuntu/Docker container **AND** outside the container in Raspberry PiOS Bookworm?
Docker invocation must map both the bus AND the mutex lock folder /var/lock/
#RaspberryPi5 #RaspberryPiOS
#I2C #Mutex #Docker #ROS2humble #Robot #GoPiGo3
@drfootleg Another tip that has been plaguing me for a month!
If you have processes inside a Docker container and other processes outside the Docker container that need mutex protection such as I2C bus or SPI bus accesses, you need to map the bus (obviously) **and** the mutex folder!
I had the sensor access working great but could not figure out why my inside and outside "mutex protected" accesses were colliding...
Think I solved why my inside Docker (ROS 2) access to I2C INA219 current sensor was colliding with my outside Docker access to the device - forgot to map the /var/lock directory so the mutex is visible from both environments!
Make Your Code Slower With Multithreading https://hackaday.com/2024/06/07/make-your-code-slower-with-multithreading/ #MULTITHREADING #SoftwareHacks #performance #profiling #spinlocks #syscall #futex #mutex #Perf+
Make Your Code Slower With Multithreading - With the performance of modern CPU cores plateauing recently, the main performance... - https://hackaday.com/2024/06/07/make-your-code-slower-with-multithreading/ #multithreading #softwarehacks #performance #profiling #spinlocks #syscall #futex #mutex #perf
#tui #daw for #jack in #rustlang
Rewrote the UI of the #midi sequencer with #ratatui for double buffering.
We're polyphonic now! Multithreaded, too - I put a #mutex between input/render/audio threads instead of message passing.
Doesn't even properly support Note Off events yet, but it does play a mean cheerful dirge. Playback cursor position still off, though.
Hooking this up to the VST host every time I restart either is bit of a faff. Gotta teach it to auto-connect the MIDI/audio ports...
Unlock the secrets of #atomicity and discover how #Dragonfly achieves its transactional magic without the need for heavy exclusive locks in our latest blog. Dive in now! https://www.dragonflydb.io/blog/transactions-in-dragonfly #Concurrency #Parallelism #Mutex #Multithreading #Caching
The Rust `std::sync::Mutex` on Linux has been remarkably speed up, https://github.com/rust-lang/rust/pull/95035#issuecomment-1073966631.
Congrats @m_ou_se for the hard work!