[Task]: [Java 21] Support Java Virtual Threads in Ballerina Scheduler
warunalakshitha opened this issue · comments
Waruna Lakshitha commented
Description
We expect following advantages with Virtual Threads based concurrency model in following cases.
- Loops due to removal of switch cases generation
- Java to ballerina function calls can be run in the same thread.
- Clean Runtime Java APIs to call Ballerina functions from Java and get rid of callback hell with current API design.
- Ballerina thread pool will be automatically handled by Java virtual thread pool, so we do not need any explicit configuration for pool size.
- 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