Multiple threads inside docker container
<p>I need to spawn N threads inside a docker container. I am going to receive a list of elements, then divide it in chunks and each thread will process each chunk.</p>

<p>So I am using a docker container with one process and N threads. Is it  good practice in docker? I think so, because we have, e.g, apacha webserver that handle connections spawining threads.</p>

<p>Or it will be better to spawn N container each one for each chunk? If it is, what is the correct way to do this?</p>