- 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.
推薦閱讀
- R語言游戲數據分析與挖掘
- HTML5 Mobile Development Cookbook
- 青少年美育趣味課堂:XMind思維導圖制作
- Java從入門到精通(第4版)
- Mastering OpenCV 4
- Windows Server 2012 Unified Remote Access Planning and Deployment
- Mastering Kali Linux for Web Penetration Testing
- Podman實戰
- Python數據結構與算法(視頻教學版)
- C語言程序設計
- Hands-On JavaScript for Python Developers
- 從零開始學Android開發
- Python預測分析實戰
- Java面試一戰到底(基礎卷)
- AI輔助編程Python實戰:基于GitHub Copilot和ChatGPT