Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

How are Java virtual threads compared to C# tasks? To me, they seem very similar.


The main benefit of virtual threads it that they release their carrier thread when they call (non native) blocking code, so that other virtual threads can be executed by the same carrier.

I don't think that it's the case for C# task, which also appear to be an higher level construct.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: