Programming with Java Structured Concurrency

preview_player
Показать описание
This video transcript gives a introduction to programming with Java structured concurrency mechanisms. It introduces the idea of organizing tasks and subtasks hierarchically, allowing for nested levels of subtasks within a parent task. This approach ensures that the lifetime of subtasks is confined to their parent's syntactic block, and all subtasks must complete before the parent task can finish. Java structured concurrency facilitates the collective management of tasks, making it easier to reason about concurrent behavior. My presentation also highlights the compatibility of structured concurrency with lightweight virtual threads in Java 19. In addition, I mention new features in Java 19, such as the StructuredTaskScope and ThreadPerTaskExecutor, both of which are currently receiving feedback from the Java community to improve concurrency management in Java programs.
Рекомендации по теме
welcome to shbcf.ru