12/
The line I still remember most:
"More threads never means more power. It just means you're wasting less of the power you already have."
That sentence made everything finally click.
1/
I once asked my senior a question that bugged me for weeks: "Our server has 4 CPU cores. But Tomcat runs 200 threads. How is that possible?"
He explained it so simply I still remember it word for word. Sharing it here. 🧵
11/
He added one more thing: "On newer Java, look up virtual threads. Normal threads are heavy. Virtual threads are light — when one waits, it steps aside so a real thread can help someone else."
12/
The line I still remember most:
"More threads never means more power. It just means you're wasting less of the power you already have."
That sentence made everything finally click.
11/
He added one more thing: "On newer Java, look up virtual threads. Normal threads are heavy. Virtual threads are light — when one waits, it steps aside so a real thread can help someone else."