logoalt Hacker News

fragmedetoday at 8:09 AM1 replyview on HN

comparing it with c? thread safety maybe?


Replies

DanielHBtoday at 9:22 AM

As far as I understand co-routines help don't really help with memory shared across go-routines. They only help in the fact you need to manage spawning and joining threads, making it easier to do stuff in parallel. But they don't provide thread-safety.

edit: I suppose you don't get segfaults or buffer overflows and the sort in go for accessing memory in a parallel context, you get recoverable panics. But that is still not really thread safety in my opinion, it is memory safety.