# Multi-Threading Two Wiki Tutorials and a Video, Enjoy!

**URL:** <https://forums.unrealengine.com/t/multi-threading-two-wiki-tutorials-and-a-video-enjoy/3073>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [April 22, 2014, 10:09pm UTC](https://forums.unrealengine.com/t/multi-threading-two-wiki-tutorials-and-a-video-enjoy/3073 "2014-04-22T22:09:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rama/32/882413_2.png) [@Rama](https://forums.unrealengine.com/u/Rama)\
**Post date:** [April 22, 2014, 10:09pm UTC](https://forums.unrealengine.com/t/multi-threading-two-wiki-tutorials-and-a-video-enjoy/3073/1 "2014-04-22T22:09:52Z")

</div>

Dear Community,

I have two wiki tutorials on multi threading now!

**1. Actual Multi Threading for Large Tasks**

This is a tutorial on creating actual new threads that will run until they are requested to stop!

To put this in perspective, the entire Render Thread is one such thread, as I am showing you how to create below!

I had great performance gains from creating an actual thread to compute the first 50,000 prime numbers. My fps stayed at solid 90 (my personal chosen max) the whole time!

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — https://unrealcommunity.wiki/! You will be able to find content from...

**2. Using the UE4 Task Graph System to perform a bunch of smaller tasks**

If you have a bunch of small tasks to be handled outside of game thread then the Task Graph system is ideal!

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — https://unrealcommunity.wiki/! You will be able to find content from...

**3. Video**

In this video I am computing the first 50,000 prime numbers while continuing to play in the Game thread!

This used my slower method of the Task Graph system (I created 50,000 tasks, one for each prime to find ;))

The performance of actually creating a dedicated thread is incredibly much better than what I did below 🙂

The video shows you the overall result though, of being able to compute large quantities of data while still playing in the Game Thread 🙂

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/c/d/ccd1bd8d1d6da9686b9c9b2bb2b49f3e6d9fe16e.jpeg "MultiThreadingPrimeNumbers") ](https://www.youtube.com/watch?v=cgELOodtoSU)

Enjoy!

Rama

---

<div class="post-metadata">

**Author:** ![Rama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rama/32/882413_2.png) [@Rama](https://forums.unrealengine.com/u/Rama)\
**Post date:** [April 23, 2014, 9:29pm UTC](https://forums.unrealengine.com/t/multi-threading-two-wiki-tutorials-and-a-video-enjoy/3073/2 "2014-04-23T21:29:05Z")

</div>

bump Multi-threading 4 you

Rama
