- Beginning C# 7 Hands-On:Advanced Language Features
- Tom Owsiak
- 120字
- 2021-07-02 15:29:27
Starting a thread
Now, with threads like this, you get a thread started on the next line as follows:
td.Start();
This will start the thread in its own little separate piece of processing, separate from the main program so to speak.
So, the big idea here is that this anonymous stuff is quite powerful. For example, you can build an anonymous function or method such as the preceding one we created. It runs, but it's not named, and basically, even when you make a new Thread object, you can make a delegate. In other words, it can do a bit of processing of its own and you don't have to put this off into other functions or anything like that.
推薦閱讀
- Learning Neo4j
- 深度實踐OpenStack:基于Python的OpenStack組件開發(fā)
- C語言實驗指導(dǎo)及習(xí)題解析
- Drupal 8 Configuration Management
- 從零開始學(xué)C語言
- iOS開發(fā)實戰(zhàn):從入門到上架App Store(第2版) (移動開發(fā)叢書)
- BeagleBone Black Cookbook
- Instant Nancy Web Development
- Python算法詳解
- 代碼閱讀
- Learning Ionic
- Python預(yù)測之美:數(shù)據(jù)分析與算法實戰(zhàn)(雙色)
- MySQL從入門到精通
- Instant AppFog
- Netty 4核心原理與手寫RPC框架實戰(zhàn)