|
|
|
|
|
by cogman10
1689 days ago
|
|
For VM languages no problem, all those languages will support threads or using threads. For non-VM interopt it will block the carrier thread if a native call causes any sort of blocking. In Java, external to the VM calls are almost non-existent so it's not much of an issue. Likely you'd do those sorts of calls as regular kernel threads instead of the Loom virtual threads. |
|
For example, suppose you're writing a Windows desktop app, and you decide to do so in Java. Modern Windows APIs are async. How would you asynchronously invoke such an API? In C#, you'd just use await.