Flutter - Concurrency & Parallelism

所在平台: Udemy

课程主页: https://www.udemy.com/course/flutter-concurrency-parallelism/

课程评论:没有评论

第一个写评论        关注课程

课程简介

# Flutter - 并发与并行 这门 Coursera 课程将**面向有 Flutter 和 Dart 基础的开发者**,深入讲解 Dart 和 Flutter 中的**并发与并行**编程概念。 课程将从**初学者友好**的 Async-await、Future 和 Stream 入手,逐步过渡到更**高级的 Isolates 概念**。学习者将全面掌握这些技术,并能在自己的 Flutter 应用中**自信地运用并发与并行**来提升性能和用户体验。 Dart 语言支持通过 `async-await`、`Isolates` 以及 `Future` 和 `Stream` 等类来实现并发编程。尽管 `async-await`、`Future` 和 `Stream` 是并发的基础,但本课程将**重点深入讲解 Isolates**。 **Isolates** 是 Dart 应用中代码运行的基本单元,每个 Isolate 拥有**独立的执行线程**,并且**不共享可变对象**。Isolates 之间通过**消息传递**进行通信。大多数 Dart 应用仅使用一个主 Isolate,但通过创建额外的 Isolates,可以实现**在多个处理器核心上并行执行代码**。 需要注意的是,Dart VM 内部对操作系统提供的底层进程和线程的利用是其实现细节,本课程将**不深入讨论**这部分内容。

课程评论(0条)

课程详情

In the beginner friendly course we will learn about the Concurrency & Parallelism in Flutter and Dart. We will get started with a beginner friendly topic and slowly move to more advance topic, by the end of this course you will be confident in using Concurrency & Parallelism in you own Flutter app.You must have a basic knowledge on Flutter and Dart development to understand this course clearly, if you have never written a Flutter and Dart course this course is not for you.Dart supports concurrent programming with async-await, isolates, and classes such as Future and Stream. This page gives an overview of async-await, Future, and Stream, but it's mostly about isolates.Within an app, all Dart code runs in an isolate. Each Dart isolate has a single thread of execution and shares no mutable objects with other isolates. To communicate with each other, isolates use message passing. Many Dart apps use only one isolate, the main isolate. You can create additional isolates to enable parallel code execution on multiple processor cores.Although Dart's isolate model is built with underlying primitives such as processes and threads that the operating system provides, the Dart VM's use of these primitives is an implementation detail that this page doesn't discuss.

课程标签

0人关注该课程

主题相关的课程