什么是颤动的螺纹系统
在过去的三个月中,我在Dart和Drutter中进行了编码。我在Play商店中有一个应用程序。但是我仍然不明白颤动的螺纹系统如何工作。
为了使事情变得简单,让我们采用flutter创建BasicApp
时获得的最基本的计数器应用程序。
第1号问题。该基本应用中有多少个线程?
第2号问题。如果有多个线程何时创建?当它调用runapp(myApp())
时?
问题3。我知道飞镖有一个孤立的概念。隔离与线程相同吗?
I have coded in dart and flutter for the past 3 months. I have one app in the play store. But I still don't understand how threading system of flutter works.
To make things simple let's take the most basic counter app that you get when you do flutter create basicapp
.
Question no 1. How many threads are there in that basic app?
Question no 2. If there are multiple threads when are they created? When it calls runApp(MyApp())
?
Question no 3. I know that dart has a concept of isolates. Are isolates the same as threads?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
问题1:
问题2:
问题3:
这是一个更好地理解的链接。
cheers!希望它有帮助。
Question 1:
Question 2:
Question 3:
Here is a link for better understanding.
Cheers!! Hope it helps.