[C#學習筆記之異步編程模式1]瞭解同步與異步

同步執行 程序執行的流程是按照語句順序執行,一句執行完再執行下一句,若是遇到函數調用,要等到函數調用返回之後纔會執行下一句——這就是「程序的同步執行模式」。異步 例 1:函數 using System.Threading; using System; public class SynchroPattern { public delegate int NewTaskDelegate(int x);
相關文章
相關標籤/搜索