The Java™ Tutorials — Concurrency :前言

来源:互联网 发布:淘宝第三层级交易额 编辑:程序博客网 时间:2024/05/21 03:18

The Java™ Tutorials — Concurrency :前言

原文地址:https://docs.oracle.com/javase/tutorial/essential/concurrency/index.html

关键点

  • 并发定义:在同一时间段内处理多个业务

全文翻译

Computer users take it for granted that their systems can do more than one thing at a time. They assume that they can continue to work in a word processor, while other applications download files, manage the print queue, and stream audio. Even a single application is often expected to do more than one thing at a time. For example, that streaming audio application must simultaneously read the digital audio off the network, decompress it, manage playback, and update its display. Even the word processor should always be ready to respond to keyboard and mouse events, no matter how busy it is reformatting text or updating the display. Software that can do such things is known as concurrent software.

计算机用户理所当然地认为他们的计算机系统可以在同一时刻做多件事。他们认为他们可以一边继续在文字处理器上工作,一边使用其他程序下载文件、管理打印队列以及处理音频流。即便一个单独的程序也同样被希望能并发处理多个事件。例如,音频流处理软件必须能同时在网络上读取数字音频、解压音频、管理音频的播放以及更新界面的显示。甚至一个文字处理器也应该具有时刻准备处理键盘和鼠标事件的能力,无论它是多么地忙于文字排版或者更新显示。具有以上这些能力软件被称为并发软件。

The Java platform is designed from the ground up to support concurrent programming, with basic concurrency support in the Java programming language and the Java class libraries. Since version 5.0, the Java platform has also included high-level concurrency APIs. This lesson introduces the platform’s basic concurrency support and summarizes some of the high-level APIs in the java.util.concurrent packages.

Java平台的设计是完全支持并发操作的,由Java语言本身和类库提供基本的并发支持。从5.0版本开始,Java平台囊括了高版本的并发API。本课时介绍了平台的基本并发支持,并总结了java.util.concurrent包中一些高版本的API。

0 0
原创粉丝点击