Logstash multiple pipelines processing

Hello, i have this doubt:

if i have 4 pipelines in the pipelines.yml file, one instance of logstash will process and output at the same time/in parallel for those 4 different type of pipelines or will they work as the files come one at a time?

Each pipeline runs in its own set of threads, so they will all execute in parallel.

thanks for the quick answer.