by snorkel · 3y ago · 0 comments
... and that didn't click for me until I understood that concurrency (async/await) and parallelism (multiple OS threads and processes) are different executions modes which the Tokio runtime in rust allows you combine those different modes.
Meanwhile when I read greenthreading, I think of lightweight threads like goroutines or Java's virtual threads.
Am I wrong?
Maybe it's inaccurate to say async is a type of greenthreading and better to say it's a form of application-layer context-switching comparable to greenthreading.