Akshay M
Akshay M @akshayxml ·
In C++, when using `std::map` with custom comparators, remember that the comparator must be copied and then passed to `std::map` constructor, rather than being passed by reference or pointer. This ensures thread safety and prevents unexpected behavior. #CPlusPlus #Multithreading
9
Mastering Backend
Mastering Backend @master_backend ·
Replying to @master_backend
Build on this in our April Java Backend Bootcamp, where we apply these in production workflows. Read More: blog.masteringbackend.com/mastering-java… Author: Ayush Shrivastava #JavaConcurrency #MasteringBackend #multithreading
Mastering Java Multithreading : Thread Control, Synchronization & Concurrency Utilities - Mastering...

In part one, we explored the basics of Java multithreading, including threads, processes, and how to create threads using Thread and Runnable. In this second part, we’ll go deeper and cover essential...

From blog.masteringbackend.com
26
SqueasyAI
SqueasyAI @SqueasyAI ·
Who is 'Sarah from Finance' and why is your champion quoting her every 5 minutes? If she’s not in the CRM, your deal is at risk. Squeasy flags the stakeholders you haven't met yet. Who are you missing from the room? #Multithreading #SalesTech
4
v.sys
v.sys @v_sysbuild ·
This time tried a hybrid approach - N processes each running M threads, all pulling from one shared memory queue. Benchmarks ended up similar to pure threading/multiprocessing. Added debug logs to figure out why. #CPP #Multithreading #SystemsProgramming #LearningInPublic
v.sys v.sys @v_sysbuild ·
Benchmarks (1000 files): 2-4 workers: Threads lead (lower overhead). 10 workers: Processes win (~43ms vs ~50ms). Learning: More parallelism isn't always better. While processes have higher overhead, memory isolation scales better at higher worker counts. #CPP #Performance
1
81
Jagat
Jagat @jagatbaghel0143 ·
Ever wonder how some Java apps process millions of records in seconds while others freeze? The secret? Multi-threading. 🧵 This concept has been a total game-changer for backend performance. Let's dive into WHERE and WHEN to use it! 👇 ​#java #multithreading #interview
1
20