How run async method multiple times in separate threads? <p>I am newbie in using of await/async and windows phone 8.1 programming. I need to run async method simulateously in more than one thread. May be four, because my phone has four cores. But i cannot figure it out :-(</p> <p>This is example of my async method.</p> <pre><code>public async Task GetFilesAsyncExample(StorageFolder root) { IReadOnlyList&lt;StorageFolder&gt; folders = await root.GetFoldersAsync(); //DO SOME WORK WITH FOLDERS// } </code></pre> <p>Four threads can be ensured by using of a semaphore object, but how i can run it in simulatously running threads?</p> <p><strong>EDIT:</strong> This is my code which explores folder structure and log metadata about files into database. I want to speed up execution of this code by calling method "async LogFilesFromFolderToDB(StorageFolder folder)" simulateously in separate thread for each folder.</p> <pre><code> Stack&lt;StorageFolder&gt; foldersStack = new Stack&lt;StorageFolder&gt;(); foldersStack.Push(root); while (foldersStack.Count &gt; 0) { StorageFolder currentFolder = foldersStack.Pop(); await LogFilesFromFolderToDB(null, currentFolder);// Every call of this method can be done in a separate thread. IReadOnlyList&lt;StorageFolder&gt; folders = await currentFolder.GetFoldersAsync(); for (int i = 0; i &lt; folders.Count; i++) foldersStack.Push(folders[i]); } </code></pre> <p>Method: async LogFilesFromFolderToDB(StorageFolder folder) looks like:</p> <pre><code> async Task LogFilesFromFolderToDB(StorageFolder folder) { IReadOnlyList&lt;StorageFile&gt; files = await folder.GetFilesAsync(); //SOME ANOTHER CODE// } </code></pre>