How to start multiple workers in the same process

In one Java process I would like to start multiple temporal workers to handle a high throughput of some workflow. How to do that? When I tried to instantiate multiple workers for the same task queue, it failed.

Within single java process no need to create pools of workers, create pools of worker processes (multiple pods/containers). Would also look at worker tuning guide in docs.