Java Threads vs Virtual Threads | Tại sao điều này thay đổi mọi thứ

Tác giả: ByteMonk
Ngày xuất bản: 2025-05-31T00:00:00
Length: 08:02

Tóm tắt nội dung

Mô tả

In this video, we compare Java threads vs virtual threads, breaking down how they work, why virtual threads are more scalable.

Java threads are the foundation of concurrency in the JVM — but the traditional model doesn’t scale well for I/O-heavy applications.

That’s where **virtual threads** change the game.

✅ How platform threads map to OS threads

✅ Why virtual threads scale to millions of concurrent tasks

✅ How Java's new scheduling model works under the hood

✅ Use cases, trade-offs, and real-world best practices

✅ When to use platform vs virtual threads (and avoid costly mistakes)

Whether you’re building web servers, backend APIs, or multithreaded services — understanding **Java threads vs virtual threads** will make your code faster, simpler, and easier to scale.

#JavaThreads #VirtualThreads #JavaConcurrency #ProjectLoom #SystemDesign #BackendEngineering #Multithreading #JVMInternals #ScalableJava

https://www.linkedin.com/in/bytemonk/

⏳ Timestamps

0:00 – Intro: What Are Java Threads?

0:45 – Platform Threads: How They Work and Why They Don’t Scale

2:00 – Virtual Threads Explained (Project Loom)

3:15 – How Virtual Threads Use Mounting and Unmounting

4:20 – JVM Scheduling vs OS Scheduling

5:00 – Real-World Use Cases: HTTP Servers, I/O Workloads

6:15 – Trade-Offs and Gotchas of Virtual Threads

7:30 – Outro: Keep Your Threads Light ☕

#NGINX #SystemDesign #EventDriven #NodeJS #epoll #WebServers

https://www.youtube.com/playlist?list=PLJq-63ZRPdBt423WbyAD1YZO0Ljo1pzvY

https://www.youtube.com/playlist?list=PLJq-63ZRPdBssWTtcUlbngD_O5HaxXu6k

https://www.youtube.com/playlist?list=PLJq-63ZRPdBu38EjXRXzyPat3sYMHbIWU

https://www.youtube.com/playlist?list=PLJq-63ZRPdBuo5zjv9bPNLIks4tfd0Pui

https://www.youtube.com/playlist?list=PLJq-63ZRPdBsPWE24vdpmgeRFMRQyjvvj

https://www.youtube.com/playlist?list=PLJq-63ZRPdBslxJd-ZT12BNBDqGZgFo58

AWS Certification:

AWS Certified Cloud Practioner: https://youtu.be/wF1pldkQrOY

AWS Certified Solution Architect Associate: https://youtu.be/GzomXNLFgkk

AWS Certified Solution Architect Professional: https://youtu.be/KFZrBxSA9tI

Dịch Vào Lúc: 2025-07-06T10:18:54Z

Yêu cầu dịch (Một bản dịch khoảng 5 phút)

Phiên bản 3 (ổn định)

Tối ưu hóa cho một người nói. Phù hợp cho video chia sẻ kiến thức hoặc giảng dạy.

Video Đề Xuất