# Unreal can run two functions at the same time?

**URL:** <https://forums.unrealengine.com/t/unreal-can-run-two-functions-at-the-same-time/490517>\
**Category:** C++\
**Tags:** logic, unreal-engine, Blueprint, CPP, question\
**Created:** [November 2, 2021, 5:59pm UTC](https://forums.unrealengine.com/t/unreal-can-run-two-functions-at-the-same-time/490517 "2021-11-02T17:59:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Itam0990](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Itam0990](https://forums.unrealengine.com/u/Itam0990)\
**Post date:** [November 2, 2021, 5:59pm UTC](https://forums.unrealengine.com/t/unreal-can-run-two-functions-at-the-same-time/490517/1 "2021-11-02T17:59:22Z")

</div>

Hi, i need to know if normally unreal engine will run two functions of the same class at the same time if one is activated while the other one is still running, or will it execute one and then the other?

![351502-3.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/c/0/5c04000cdc4b6db6f1edfe1e4d8e3c6bb2058a89.png)

---

<div class="post-metadata">

**Author:** ![chrudimer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/chrudimer/32/918651_2.png) [@chrudimer](https://forums.unrealengine.com/u/chrudimer)\
**Post date:** [November 2, 2021, 6:20pm UTC](https://forums.unrealengine.com/t/unreal-can-run-two-functions-at-the-same-time/490517/2 "2021-11-02T18:20:24Z")

</div>

Hi, AFAIK by default UE will run all the code you write in one process (the GameThread), so one after another.

---

<div class="post-metadata">

**Author:** ![Itam0990](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Itam0990](https://forums.unrealengine.com/u/Itam0990)\
**Post date:** [November 8, 2021, 11:27pm UTC](https://forums.unrealengine.com/t/unreal-can-run-two-functions-at-the-same-time/490517/3 "2021-11-08T23:27:16Z")

</div>

I did some tests and it actually runs one after another, thanks.
