Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
vips7L
on Nov 16, 2021
|
parent
|
context
|
favorite
| on:
Java Virtual Threads Preview
It does no function coloring. Just block :). Virtual threads are preemptive not cooperative.
kaba0
on Nov 16, 2021
[–]
It doesn’t block, that’s the whole point. The runtime knows if a given method is blocking or not and under the hood even blocking IO calls are implemented with non-blocking IOs. So those can be preempted.
vips7L
on Nov 16, 2021
|
parent
[–]
Yes I know. “Just block” refers to just waiting on virtual threads/futures via get or join. No fancy observables or callbacks etc.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: