Project Loom - Structured Concurrency

Поделиться
HTML-код
  • Опубликовано: 9 фев 2025
  • Structured Concurrency treats groups of related tasks running in different threads as a single unit of work. It streamlines error handling and cancellation, improves reliability, enhances observability and is a great match for virtual threads. In this session we will introduce the topic and the API that is currently in preview to support this feature.
    Check inside.java/ta... for more information on Project Loom.
    Make sure to also visit dev.java, the destination for all Java developers.
    Video recorded during Java Day™ London
    Tags #Java #Concurrency #Programming #JDK #OpenJDK #InsideJava

Комментарии • 19

  • @bigbrother1211
    @bigbrother1211 4 месяца назад +3

    Structured concurrency can be very useful, it's great to have it built-in!

  • @basilbourque1326
    @basilbourque1326 6 месяцев назад +1

    I appreciate the dry jokes sprinkled along in this well-honed technical talk.

  • @RickBrandson
    @RickBrandson 2 месяца назад

    Great talk! This was the piece missing in the Java ecosystem!

  • @pconcannon
    @pconcannon 7 месяцев назад +7

    Great talk! Alan Bateman is the man! 😄

    • @java
      @java  6 месяцев назад +1

      No doubt!

  • @davidhsv2
    @davidhsv2 7 месяцев назад +7

    Great talk, thank you 🙏

  • @sanjaygatne1424
    @sanjaygatne1424 7 месяцев назад +16

    code font size too small to read.

  • @loic.bertrand
    @loic.bertrand 7 месяцев назад +1

    Great presentation!

  • @tarphuer
    @tarphuer 7 месяцев назад +8

    any benchmark on the cost of context switching for virtual thread and platform thread?

    • @deadviny
      @deadviny 7 месяцев назад

      Platform thread has context switching. Virtual thread has no context switching itself

    • @tarphuer
      @tarphuer 7 месяцев назад +1

      @@deadviny the platform threat thats backing the virtual threads have. They need to copy the stack into memory when they yield.

    • @sergeibatiuk3468
      @sergeibatiuk3468 Месяц назад

      @@tarphuer I don't think they need as long as the backing threadpool is ForkJoinPool with the number of threads = CPU cores

  • @andmal8
    @andmal8 6 месяцев назад +1

    Thank you!

  • @nguyentructranxuan6521
    @nguyentructranxuan6521 6 месяцев назад +2

    It's kill vertx :(