Java virtual thread is a new feature available from JDK 19. It has potential to improve the application’s availability, throughput and code quality on top of reducing memory consumption. In this video, let’s learn the pitfalls one should avoid when switching from Java platform threads to virtual threads.
If you liked this video, you'll love our Java Performance Masterclass. Learn more:
https://ycrash.io/java-performance-tr...
- - - - - - - - - - - - - - -
Topics covered:
00:40 - Avoid synchronized blocks/methods
03:20 - Avoid Thread pools to limit resource access
05:14 - Reduce ThreadLocal usage
- - - - - - - - - - - - - - -
Links shared in the video:
Introduction to Java virtual threads
https://blog.ycrash.io/2023/01/20/jav...
Advantages of Java Virtual Threads:
https://blog.ycrash.io/2023/01/20/adv...
‘ReentrantLock‘:
https://docs.oracle.com/en/java/javas...
APIs to create Java Virtual Thread:
https://blog.ycrash.io/2023/01/20/api...
Executor with Semaphore:
https://docs.oracle.com/en/java/javas...
Java Semaphore – easy introduction:
https://blog.ycrash.io/2023/01/23/jav...
‘Java ThreadLocal – easy introduction’ “
https://blog.ycrash.io/2023/01/23/jav...
- - - - - - - - - - - - - - -
Read more in this blog:
https://blog.ycrash.io/2023/02/27/pit...
- - - - - - - - - - - - - - -
Our Tools:
yCrash: https://ycrash.io/
GCeasy: https://gceasy.io/
HeapHero: https://heaphero.io/
fastThread Tool: https://fastthread.io/
- - - - - - - - - - - - - - -
SRE Community:
Need help in troubleshooting your performance problems?
Post here: https://answers.ycrash.io/
- - - - - - - - - - - - - - -
Follow us on:
LinkedIn: / ycrash
Instagram: / ycrash_rca
Facebook: / tier1app
Twitter: / tier1app
- - - - - - - - - - - - - - -- - - - - - - - - - - - - - -
Related videos:
Java Virtual Threads – Easy introduction
• Java Virtual Threads – easy introduction
Advantages of Java Virtual Threads:
• Advantages of Java Virtual Threads
APIs to create Java Virtual Thread:
• APIs to create Java Virtual Thread
Is Java Virtual Threads lightweight?
• Is Java Virtual Threads lightweight?
- - - - - - - - - - - - - - -
#virtualthreads | #javavirtualmachine | #javavirtualthreads | #threads | #virtual | #projectloomvirtualthreads | #javathreads | #thread | #javathreadsignaling | #javavirtualmachineadvantages | #javavirtualmachinearchitecture | #javavirtualmachineoptions | #javavirtualmachinearchitecturediagram | #javavirtualmachineconcept | #threadsinostutorial | #javavirtualmachineexplained | #javavirtualmachinecomponents | #javavirtualmachineexplanation | #introductiontojavathreads