This is a straightforward implementation of the thread pool implementation described in `PThreads Programming'.
https://www.oreilly.com/library/view/pthreads-programming/9781449364724/
https://resources.oreilly.com/examples/9781565921153/
It doesn't work as expected because the multi-threaded support is still limited on the Emacs side.
It's still an experimental implementation.