最佳答案
我对 TPL是新手,我想知道: C # 5.0(通过新的 async
和 await
关键字)对异步编程的支持与线程的创建有什么关系?
具体来说,async/await
的使用是否在每次使用时都创建一个新线程?如果有许多使用 async/await
的嵌套方法,是否会为每个方法创建一个新线程?