HOME > Development > Java 21 Virtual Threads and Structured Concurrency

Java 21 Virtual Threads and Structured Concurrency

  • Development
  • Apr 23, 2025
SynopsisJava 21 Virtual Threads and Structured Concurrency, available...
Java 21 Virtual Threads and Structured Concurrency  No.1

Java 21 Virtual Threads and Structured Concurrency, available at $64.99, has an average rating of 4.46, with 87 lectures, 9 quizzes, based on 260 reviews, and has 2472 subscribers.

You will learn about What are the Scalability problems of Java Threads Hands On and Theoretical understanding of Virtual Threads How to use Spring Boot with Virtual Threads How to use the Structured Concurrency pattern in Java What are Scoped Values and how are they different from Thread Locals Hands On and Theoretical understanding of Delimited Continuations What is the internal Implementation of Virtual Threads Why Virtual Threads is a game changer for Non Blocking IO Advantages of Virtual Threads over Reactive frameworks Bonus Refresher Section on Java Futures and Completable Futures This course is ideal for individuals who are Java Developers who want to learn about Java Virtual Threads, Structured Concurrency and use in Spring Boot or Java Architects who want to know why Virtual Threads will help in cutting costs significantly It is particularly useful for Java Developers who want to learn about Java Virtual Threads, Structured Concurrency and use in Spring Boot or Java Architects who want to know why Virtual Threads will help in cutting costs significantly.

Enroll now: Java 21 Virtual Threads and Structured Concurrency

Summary

Title: Java 21 Virtual Threads and Structured Concurrency

Price: $64.99

Average Rating: 4.46

Number of Lectures: 87

Number of Quizzes: 9

Number of Published Lectures: 87

Number of Published Quizzes: 9

Number of Curriculum Items: 99

Number of Published Curriculum Objects: 99

Original Price: $39.99

Quality Status: approved

Status: Live

What You Will Learn

  • What are the Scalability problems of Java Threads
  • Hands On and Theoretical understanding of Virtual Threads
  • How to use Spring Boot with Virtual Threads
  • How to use the Structured Concurrency pattern in Java
  • What are Scoped Values and how are they different from Thread Locals
  • Hands On and Theoretical understanding of Delimited Continuations
  • What is the internal Implementation of Virtual Threads
  • Why Virtual Threads is a game changer for Non Blocking IO
  • Advantages of Virtual Threads over Reactive frameworks
  • Bonus Refresher Section on Java Futures and Completable Futures
  • Who Should Attend

  • Java Developers who want to learn about Java Virtual Threads, Structured Concurrency and use in Spring Boot
  • Java Architects who want to know why Virtual Threads will help in cutting costs significantly
  • Target Audiences

  • Java Developers who want to learn about Java Virtual Threads, Structured Concurrency and use in Spring Boot
  • Java Architects who want to know why Virtual Threads will help in cutting costs significantly
  • Recent Updates :

  • Added new Section on scalability using Virtual Threads with Spring Boot 3.2.0and JDK 21

  • Project demonstrating scaling a Spring Boot application to 100,000 concurrent users with impressive response time

  • Bonus Section on Java Futures and Completable Futures as a Refresher

  • Project Loomin a new revolutionary initiative in OpenJDK to create a Lightweight implementation of Threads called Virtual Threads (available in JDK 21). Java Virtual Threads promises to revolutionize the way non blocking code is written and dramatically reduce costs by using less resources in the Cloud. Instead of relying on complex Reactive programming, Java developers can now write code sequentially and still achieve the same result in many cases. This is one of the most extensive changes in the Java Platform and it will be a game changer for writing highly scalable Multithreading applications. Existing code (like Spring Bootcode) can also take advantage of this new technology with minor modifications.

    Developers and Architects can help their Organization cut costs by using less number of machines to support the same number of users. Be a hero by proposing the use of Virtual Threads in your project.

    WHAT THE LEARNERS ARE SAYING:

    5 STARS – This was pleasurable journey. Very informative, understandable and easy to follow. I wish there was such a course about java io/nio, net/sockets on Udemy.

    5 STARS – Excellent course .. simplifiedsuch a complex topic ! Great work !!

    5 STARS – Excellent introduction to virtual threads and the complex concepts are explained with simple diagrams, which makes it easy to visualize the inner workings of virtual threads.

    5 STARSGreat course. Nice start with describing all the concurrency concepts. Course includes practical examples and descriptive diagrams to understand better the internal workings of virtual threads. If somebody is interested in this subject – this course is a good choice to understand how threads in java works and virtual threads.

    5 STARSGood and concise explanation. I’m looking forward to see virtual threads in a LTS version or at least as a non-preview feature

    In this course, you will learn the following

  • How to increase scalability and dramatically reduce costs using Virtual Threads ?

  • What is the reason behind scalability issues of Java Platform Threads?

  • What are Virtual Threadsand how are they different from Platform Threads ?

  • How can developers scale their application using Virtual Threads in Spring Boot ?

  • How do Virtual Threads work and why it’s a game changer ?

  • What is Structured Concurrency and how to use it in Java?

  • What are Scoped Values and how are they different from Thread Locals ?

  • What are Delimited Continuations  ?

  • How do we do Multithreading with Virtual Threads and Structured Concurrency?

  • How are Virtual Threads implemented using Continuations

  • What is the difference between Java Virtual Threads and Reactive programming(at a high level)?

  • Join me in exploring Virtual Threads using a step-by-step and Hands-On approach to learning. By the end of the course, you will have an excellent grasp of Virtual Threads, Structured Concurrency, Thread Locals, Scoped Valuesand Continuations and how they can be used to write highly scalable Java applications using Spring Boot.

    REMEMBER… I’m so confident that you’ll love this course that we’re offering a FULL money-back guarantee for 30 days! So it’s a complete no-brainer, sign up today with ZERO risk and EVERYTHING to gain.

    Note :Java Virtual Threadsis available as part of JDK 21.Structured Concurrency and Scoped Value classes are available in JDK 21 as Preview features.

    Course Curriculum

    Chapter 1: Introduction

    Lecture 1: Introduction and Course Content

    Lecture 2: Clarifications

    Chapter 2: Java Threads and Scalability

    Lecture 1: Section Introduction

    Lecture 2: Task Types

    Lecture 3: Handling User Requests

    Lecture 4: Concurrency and Parallelism

    Lecture 5: Java Platform Threads

    Lecture 6: Scalability Demonstration

    Lecture 7: Demonstration on Linux and Windows

    Lecture 8: Java Threads Scalability

    Lecture 9: Current Scalability Solutions

    Lecture 10: Non Blocking IO

    Lecture 11: Bonus Section on Executor Service, Futures and Completable Futures

    Chapter 3: Project Loom and Java Virtual Threads

    Lecture 1: Section Introduction

    Lecture 2: Loom JDK Installation

    Lecture 3: Instructions to install JDK Loom

    Lecture 4: Java Virtual Threads Demonstration

    Lecture 5: Instructions to install an Eclipse project ZIP

    Lecture 6: Java Virtual Threads Overview

    Lecture 7: Java Virtual Threads Creation

    Lecture 8: Java Virtual Threads Advantages

    Lecture 9: Java Virtual Threads Current Limitations

    Lecture 10: Virtual Threads : A few Good Links

    Chapter 4: Virtual Threads with Java Executor, Futures and Completable Futures

    Lecture 1: Section Introduction

    Lecture 2: REST Example Coding

    Lecture 3: REST Example Scalability Testing

    Lecture 4: Using JConsole

    Lecture 5: Virtual Threads with Java Futures

    Lecture 6: Virtual Threads with Java Completable Futures

    Lecture 7: Virtual Threads and Application Scalability

    Chapter 5: Structured Concurrency

    Lecture 1: What is Structured Concurrency?

    Lecture 2: Structured Concurrency using Executor Service

    Lecture 3: Structured Concurrency Usecases

    Lecture 4: Interrupts and Thread Cancellation

    Lecture 5: Eclipse Project Zip for this Section

    Lecture 6: Writing a Long Running Task

    Lecture 7: StructuredTaskScope and Subtask

    Lecture 8: Demonstration Of StructuredTaskScope

    Lecture 9: StructuredTaskScope.ShutdownOnFailure

    Lecture 10: StructuredTaskScope.ShutdownOnSuccess

    Lecture 11: Writing Custom Structured Task Scope

    Lecture 12: Task Scope Hierarchy

    Lecture 13: Structured Concurrency : Further Reading

    Chapter 6: Thread Locals and Scoped Values

    Lecture 1: Introduction

    Lecture 2: Eclipse project ZIP file for this Section

    Lecture 3: Thread Locals

    Lecture 4: Inheritable Thread Locals

    Lecture 5: Disadvantages of Thread Locals

    Lecture 6: Scoped Values

    Lecture 7: A note on ScopedValue class

    Lecture 8: Scoped Values in Action

    Lecture 9: Rebinding Scoped Values

    Lecture 10: Inheriting Scoped Values

    Lecture 11: Scoped Values : Further Reading

    Chapter 7: Delimited Continuations

    Lecture 1: Introduction to Coroutines and Continuations

    Lecture 2: Eclipse project ZIP file for this Section

    Lecture 3: Java Continuation Example

    Lecture 4: Java Continuation Scopes

    Lecture 5: Continuation with Objects

    Lecture 6: Java Virtual Thread Implementation using Continuations

    Chapter 8: Virtual Threads and scalability with Spring Boot

    Lecture 1: Introduction

    Lecture 2: Spring Boot Projects Zip for this Section

    Lecture 3: Spring Boot with Platform Threads

    Lecture 4: Spring Boot with Virtual Threads

    Lecture 5: Project – Explanation

    Lecture 6: Project – Create Book Store REST API

    Lecture 7: Project – Create Best Price Book Store REST API

    Lecture 8: Project – Add Timing Statistics

    Lecture 9: Project – Scalability Testing Setup

    Lecture 10: Project – Scalability Testing

    Lecture 11: Extending Scalability Testing

    Lecture 12: Spring Boot with Virtual Threads : Further Reading

    Chapter 9: Conclusion

    Lecture 1: Conclusion

    Lecture 2: Bonus Lecture

    Chapter 10: Bonus – Java Futures and Completable Futures Tutorial

    Lecture 1: Quick guide on Java Futures and Completable Futures

    Lecture 2: Eclipse Project ZIP file for this section

    Lecture 3: Java Thread Creation

    Lecture 4: What is a Java Future?

    Lecture 5: Java Futures in Action

    Lecture 6: Limitations of Java Futures

    Instructors

  • Java 21 Virtual Threads and Structured Concurrency  No.2
    Viraj Shetty
    Senior Solutions Architect
  • Rating Distribution

  • 1 stars: 1 votes
  • 2 stars: 0 votes
  • 3 stars: 17 votes
  • 4 stars: 85 votes
  • 5 stars: 157 votes
  • Frequently Asked Questions

    How long do I have access to the course materials?

    You can view and review the lecture materials indefinitely, like an on-demand channel.

    Can I take my courses with me wherever I go?

    Definitely! If you have an internet connection, courses on Udemy are available on any device at any time. If you don’t have an internet connection, some instructors also let their students download course lectures. That’s up to the instructor though, so make sure you get on their good side!