[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Is it possible to run Lua threads in OS threads safely?
- From: "Aaron B." <aaron@...>
- Date: Mon, 15 Jun 2020 00:47:05 -0400
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.
...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>