Java Concurrency 简明教程

Java Concurrency Tutorial

Java 是一种多线程编程语言,这意味着我们可以使用 Java 开发多线程程序。多线程程序包含两个或更多部分,可以同时运行,并且每个部分可以同时处理不同的任务,从而最大限度地利用可用资源,特别是在您的计算机有多个 CPU 的情况下。多线程使您可以编写这样的代码,其中多个活动可以在同一程序中同时进行。

Java is a multi-threaded programming language which means we can develop multi-threaded program using Java. A multi-threaded program contains two or more parts that can run concurrently and each part can handle a different task at the same time making optimal use of the available resources specially when your computer has multiple CPUs. Multi-threading enables you to write in a way where multiple activities can proceed concurrently in the same program.

Java 是由 Sun Microsystems 开发的高级编程语言,并于 1995 年发布。Java 运行在各种平台上,例如 Windows、Mac OS 和各种版本的 UNIX。本教程可以让您全面了解 Java。本参考将通过 Java 编程语言提供的 Java 并发框架学习,带您了解简单实用的方法。

Java is a high-level programming language originally developed by Sun Microsystems and released in 1995. Java runs on a variety of platforms, such as Windows, Mac OS, and the various versions of UNIX. This tutorial gives a complete understanding of Java. This reference will take you through simple and practical approaches while learning Java Concurrency framework provided by Java Programming language.

Audience

本教程专为初学者准备,旨在帮助他们了解与 Java 编程语言的 Java 并发框架相关的从基础到高级的概念。

This tutorial has been prepared for the beginners to help them understand the basic to advanced concepts related to Java Concurrency framework of Java Programming language.

Prerequisites

在您开始练习本参考中提供的各种类型的示例之前,我们假设您已经了解计算机程序和计算机编程语言。

Before you start practicing various types of examples given in this reference, we assume that you are already aware about computer programs and computer programming languages.