|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/java-concurrency-multithreading-beginner-to-intermediate/
课程评论:没有评论
Coursera 课程总结:Java 并发与多线程:从入门到进阶 本课程由 Yestastic Tech Labs LLC 提供,旨在使用 Java 编写能够充分利用处理器能力的应用程序,通过并行计算和避免空闲周期来提升性能。 **课程涵盖的主要内容:** * **基础概念:** * 深入理解进程与线程在操作系统中的概念,并能区分两者。 * 学习在 Java 中定义线程的几种方式:`Thread`、`Runnable` 和 `Callable`。 * 熟悉 Java 线程的各种状态以及线程的完整生命周期。 * **线程启动与管理:** * 掌握启动线程的不同方法,包括 `start()`、`ExecutorService` 和 `parallelStream()`。 * 理解 `ExecutorService` 的线程复用策略。 * 学习如何使用 `Future` 接口,包括阻塞和非阻塞机制。 * 了解守护线程(Daemon Threads)的概念。 * 掌握 `join()` 和 `interrupt()` 方法来控制线程的执行。 * **并发安全与同步:** * 理解数据竞争(Data Race)的概念,以及如何使用 `volatile` 关键字来缓解。 * 熟悉竞态条件(Race Condition)的概念,并学习使用互斥锁(Mutex)策略来解决。 * 掌握使用 Java 的 `synchronized` 关键字来实现互斥锁的编程技巧。 * 学习比较并交换(Compare-and-Swap,CAS)处理器指令,以及它在 Java `Atomic` 包中的应用。 * 知道何时以及如何使用 `AtomicInteger`。 * 学习 `ThreadLocal` 类的使用。 * **调试与诊断:** * 能够获取 JVM 进程的线程转储(Thread Dump)。 **课程目标:** 通过本课程的学习,学员将能够清晰地理解 Java 并发与多线程的核心概念,并能运用 JDK 提供的能力编写出高效、线程安全的 Java 应用程序。
Learn how to write applications that take full advantage of processor power by parallelizing computations and avoiding idle cycles with Java concurrency and multithreading. This course will cover both the concepts behind multithreading and concurrency with real-world examples and provide practical coding examples that demonstrate how to use the capabilities provided by the JDK.By the end of this course, you will:Understand the concepts of processes and threads in operating systems and be able to distinguish between the two.Define threads in Java using Thread, Runnable, and Callable.Be familiar with Java thread states and the thread lifecycle.Know the different ways to start threads, including using.start(), ExecutorService, and.parallelStream() capabilities.Understand the concept behind the ExecutorService thread reuse strategy.Understand both blocking and non-blocking mechanisms for working with the Future interface.Learn about daemon threads.Be able to use the.join() and.interrupt() thread capabilities.Understand the concept of data race and how to mitigate it using the volatile keyword.Be familiar with the race condition concept and the mutex strategy to mitigate it.Know how to write Java code using the synchronized keyword to implement the mutex paradigm.Understand the compare-and-swap processor instruction and how it is used in the Java atomics package.Know when and how to use AtomicInteger.Learn about the ThreadLocal class.Be able to take thread dumps of the JVM process.This course is officially owned and provided by Yestastic Tech Labs LLC.