@sir It could maybe even be worth mentioning that shared memory is a thing, so you don't even need to give up performance if you're doing something like image processing where there's a ton of shared state - just explicitly put that state in shm.

The advantage of threads though is cross platform support (Windows can't multiprocess) and that a multiprocessing event loop system is way more code than `#pragma omp parallel for`.

Follow

@mort @sir Shared memory across threads completely kills the cache though

· · Web · 0 · 0 · 0
Sign in to participate in the conversation
Game Liberty Mastodon

Mainly gaming/nerd instance for people who value free speech. Everyone is welcome.