TaskExecutor takes time to execute

Hi,

I want code written in task executor should run immediately instead of being in waiting state for some resources. Also can we name thread of taskexecutor instead of task-1 or 2

org.springframework.core.task.TaskExecutor

Please clarify your question, preferably with code examples.