Hacker News new | comments | show | ask | jobs | submit login

> It's also not a very compelling argument for threading to say "web programs don't share a lot of state, so you don't have to worry about synchronization".

Isn't this an issue with both models? Shared state is shared state, regardless of whether you use threads or an evented model. Unless you're only running on 1 CPU.

No, because evented code (usually) is scheduled cooperatively; (most) conflicts are precluded.

This goes out the window when you start forking processes and using shared memory, but at least then you're default-private instead of default-shared.

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | DMCA | Apply to YC | Contact