lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]




On Sun, Jun 14, 2020 at 9:47 PM Aaron B. <aaron@zadzmo.org> wrote:
On Sun, 14 Jun 2020 21:28:36 -0700
Russell Haley <russ.haley@gmail.com> wrote:

> If you are working in a unix-like environment, you can also flip the
> threading model on it's head and use an event loop/engine like cqueues:
> https://github.com/wahern/cqueues. Cqueues are easy to use because they
> rely on co-routines and an OS event library (which is transparent to you).
> There is no callback model so processes are just continuous loops.

cqueues is an excellent framework; however the program will be limited
to only a single CPU core.

I was unaware of that. Do you know why? (something to do with cpu affinity?)

...which may or may not matter, depending on the application. But
often when people start talking about "threads" they expect multiple
cores to be utilized.

--
Aaron B. <aaron@zadzmo.org>