CPU Intensive Tasks inside Nginx Module

Hello,

I am writing an application server as Nginx standard module, This code
is
supposed to perform some CPU intensive tasks. If the single
thread/master-process in Nginx doing event-loop is stuck inside this
part
then throughput/performance of server would drop. What is the way to
execute
this? Is there any coroutine/thread-pool library that can solve this
issue?

I am new to this platform & want to get rolling ASAP, so forgive if this
is
very trivial question.

Thanks,
Ajay.

Posted at Nginx Forum: