# Async() EAsyncExecution::TaskGraph vs EAsyncExecution::ThreadPool

**URL:** <https://forums.unrealengine.com/t/async-easyncexecution-taskgraph-vs-easyncexecution-threadpool/489509>\
**Category:** C++\
**Tags:** threads, async, task, unreal-engine, CPP, question\
**Created:** [October 4, 2021, 9:04am UTC](https://forums.unrealengine.com/t/async-easyncexecution-taskgraph-vs-easyncexecution-threadpool/489509 "2021-10-04T09:04:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![undercover](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@undercover](https://forums.unrealengine.com/u/undercover)\
**Post date:** [October 4, 2021, 9:04am UTC](https://forums.unrealengine.com/t/async-easyncexecution-taskgraph-vs-easyncexecution-threadpool/489509/1 "2021-10-04T09:04:48Z")

</div>

Hi!

I wonder what the difference is between using `Async(EAsyncExecution::TaskGraph, ...);` vs. `Async(EAsyncExecution::ThreadPool, ...);`. Isn’t the task graph executed through the thread pool? Which one is to prefer? Put in another way, when would you use EAsyncExecution::TaskGraph over EAsyncExecution::ThreadPool and vice versa?

I appreciate any help!

---

<div class="post-metadata">

**Author:** ![dashantaozi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dashantaozi](https://forums.unrealengine.com/u/dashantaozi)\
**Post date:** [April 12, 2022, 3:28am UTC](https://forums.unrealengine.com/t/async-easyncexecution-taskgraph-vs-easyncexecution-threadpool/489509/2 "2022-04-12T03:28:57Z")

</div>

TaskGraph is on main thread. It doesn’t make full use of you cores.

---

<div class="post-metadata">

**Author:** ![lehuan5062](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lehuan5062](https://forums.unrealengine.com/u/lehuan5062)\
**Post date:** [February 15, 2023, 6:05am UTC](https://forums.unrealengine.com/t/async-easyncexecution-taskgraph-vs-easyncexecution-threadpool/489509/3 "2023-02-15T06:05:27Z")

</div>

What about TaskGraph vs TaskGraphMainThread? Are they 2 different things?
