Re:We have to talk about this Python, Gunicorn, Gevent thing
by Izkata on Sunday March 08, 2020 @01:19PM
(#22519201)
> > These "green thread" systems provide concurrency, but not parallelism.
> I'm not sure if these specific definitions of "concurrency" and "parallelism" are universal. I wasn't aware of them, at least.
To be clear, since GP didn't define them: concurrency simulates parallelism through context switching. Context switching itself encompasses both cooperative multitasking (gevent does this) and preemptive multitasking (modern operating system threads when they're sharing a CPU).
AFAIK it is universal, but close enough not to matter in most cases so people get lazy with their words.
> I'm not sure if these specific definitions of "concurrency" and "parallelism" are universal. I wasn't aware of them, at least.
To be clear, since GP didn't define them: concurrency simulates parallelism through context switching. Context switching itself encompasses both cooperative multitasking (gevent does this) and preemptive multitasking (modern operating system threads when they're sharing a CPU).
AFAIK it is universal, but close enough not to matter in most cases so people get lazy with their words.