# How to specify one particular thread to execute async code?

**URL:** <https://forums.unrealengine.com/t/how-to-specify-one-particular-thread-to-execute-async-code/489220>\
**Category:** C++\
**Tags:** threads, task, unreal-engine, sync, question\
**Created:** [September 26, 2021, 1:26pm UTC](https://forums.unrealengine.com/t/how-to-specify-one-particular-thread-to-execute-async-code/489220 "2021-09-26T13:26:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![somawheels](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@somawheels](https://forums.unrealengine.com/u/somawheels)\
**Post date:** [September 26, 2021, 1:26pm UTC](https://forums.unrealengine.com/t/how-to-specify-one-particular-thread-to-execute-async-code/489220/1 "2021-09-26T13:26:12Z")

</div>

I am using :

```
AsyncTask(ENamedThreads::AnyBackgroundThreadNormalTask, [parameter]()]{ //some async code });

```

to execute code async. This executes the code on various threads, and doesn’t give me complete control over which thread executes it.

I need my code to always execute on one single thread (but not the main game thread). Does anyone know how i could do this?
