ballerina-platform / ballerina-lang

The Ballerina Programming Language

Home Page:https://ballerina.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Task]: [Java 21] Support Java Virtual Threads in Ballerina Scheduler

warunalakshitha opened this issue · comments

Description

We expect following advantages with Virtual Threads based concurrency model in following cases.

  1. Loops due to removal of switch cases generation
  2. Java to ballerina function calls can be run in the same thread.
  3. Clean Runtime Java APIs to call Ballerina functions from Java and get rid of callback hell with current API design.
  4. Ballerina thread pool will be automatically handled by Java virtual thread pool, so we do not need any explicit configuration for pool size.
  5. No effect on ballerina source code.

Describe your task(s)

No response

Related area

-> Runtime

Related issue(s) (optional)

No response

Suggested label(s) (optional)

No response

Suggested assignee(s) (optional)

No response