← Back to context

Comment by josephg

2 days ago

> My point is that you do need mutexes, spin locks, etc with async as well, given that you have a multi threaded platform.

No, Javascript isn't a shared-memory multi threaded platform. It would only need mutexes and so on if we added threads to javascript, as the comment I was replying to suggested should have happened:

> At any step in that sequence, the language could have introduced green threads and the job would have been done

That's why I brought up C# as an example of a language with multi threaded async. But Kotlin is another example.