{{sellerTotalView > 1 ? __("sellers", {number: sellerTotalView}) : __("seller", {number: sellerTotalView}) }}, {{numTotalView > 1 ? __("items", {number: numTotalView}) : __("item", {number: numTotalView}) }}
free FREE

Change Your Zip Code

Inventory information and delivery speeds may vary for different locations.

Location History

{{email ? __('Got it!') : __('Restock Alert')}}

We will notify you by email when the item back in stock.

Cancel
Yami

Jingdong book

华章专业开发者丛书·Java并发编程实战

{{buttonTypePin == 3 ? __("Scan to view more PinGo") : __("Scan to start")}}

华章专业开发者丛书·Java并发编程实战

{{__(":people-members", {'people': item.limit_people_count})}} {{ itemCurrency }}{{ item.valid_price }} {{ itemCurrency }}{{ item.invalid_price }} {{ itemDiscount }}
Ends in
{{ itemCurrency }}{{ item.valid_price }}
{{ itemCurrency }}{{ priceFormat(item.valid_price / item.bundle_specification) }}/{{ item.unit }}
{{ itemDiscount }}
{{ itemCurrency }}{{ item.valid_price }} {{ itemCurrency }}{{ priceFormat(item.valid_price / item.bundle_specification) }}/{{ item.unit }} {{ itemCurrency }}{{ item.invalid_price }} {{itemDiscount}}
{{ itemCurrency }}{{ item.valid_price }}
Sale ends in
Sale will starts after Sale ends in
{{ getSeckillDesc(item.seckill_data) }}
{{ __( "Pay with Gift Card to get sale price: :itemCurrency:price", { 'itemCurrency' : itemCurrency, 'price' : (item.giftcard_price ? priceFormat(item.giftcard_price) : '0.00') } ) }} ({{ itemCurrency }}{{ priceFormat(item.giftcard_price / item.bundle_specification) }}/{{ item.unit }}) Details
Best before

Currently unavailable.

We don't know when or if this item will be back in stock.

Unavailable in your area.
Sold Out

Details

Full product details
Content Description

《Java并发编程实战》深入浅出地介绍了Java线程和并发,是一本完美的Java并发参考手册。书中从并发性和线程安全性的基本概念出发,介绍了如何使用类库提供的基本并发构建块,用于避免并发危险、构造线程安全的类及验证线程安全的规则,如何将小的线程安全类组合成更大的线程安全类,如何利用线程来提高并发应用程序的吞吐量,如何识别可并行执行的任务,如何提高单线程子系统的响应性,如何确保并发程序执行预期任务,如何提高并发代码的性能和可伸缩性等内容,最后介绍了一些高级主题,如显式锁、原子变量、非阻塞算法以及如何开发自定义的同步工具类。
《Java并发编程实战》适合Java程序开发人员阅读。

Author Description

Java并发编程实战》作者都是Java Community Process JSR 166专家组(并发工具)的主要成员,并在其他很多JCP专家组里任职。Brian Goetz有20多年的软件咨询行业经验,并著有至少75篇关于Java开发的文章。Tim Peierls是“现代多处理器”的典范,他在BoxPop.biz、唱片艺术和戏剧表演方面也颇有研究。Joseph Bowbeer是一个Java ME专家,他对并发编程的兴趣始于Apollo计算机时代。David Holmes是《The Java Programming Language》一书的合著者,任职于Sun公司。Joshua Bloch是Google公司的首席Java架构师,《Effective Java》一书的作者,并参与著作了《Java Puzzlers》。Doug Lea是《Concurrent Programming》一书的作者,纽约州立大学 Oswego分校的计算机科学教授。

Comments

“我曾有幸在一个伟大的团队中工作,参与设计和实现在Java 5.0和Java 6等平台中新增的并发功能。现在,仍然是这个团队,将透彻地讲解这些新功能,以及关于并发的一般性概念。并发已不再只是高级用户谈论的话题,每一位Java开发人员都应该阅读这本书。”

——Martin Buchholz,Sun公司的JDK并发大师



“在过去30多年时间里,计算机性能一直遵循着摩尔定律,但从现在开始,它将遵循Amdahl定律。编写能高效利用多处理器的代码非常具有挑战性。 在这本书中介绍的一些概念和技术,对于在当前(以及未来的)系统上编写安全的和可伸缩的代码来说都是非常有用的。”

——Doron Rajwan,Intel公司研究人员



“如果你正在编写、设计、调试、维护以及分析多线程的Java程序,那么本书正是你所需要的。如果你曾对某个方法进行过同步,但却不理解其中的原因,那么你以及你的用户都有必要从头至尾仔细地读一读这本书。”

——Ted Neward,《Effective Enterprise Java》的作者



“Brian非常清晰地阐述了并发的一些基本问题与复杂性。对于使用线程并关注程序执行性能的开发人员来说,这是一本必读的书。”

——Kirk Pepperdine,JavaPerformanceTuning.com网站CTO



“本书深入浅出地介绍了一些复杂的编程主题,是一本完美的Java并发参考手册。书中的每一页都包含了程序员日常需要应对的问题(以及相应的解决方案)。随着摩尔定律的发展趋势由提高处理器核的速度转向增加处理器核的数量,如何有效地利用并发性已变得越来越重要,本书正好介绍了这些方面的内容。”

——Cliff Click博士,Azul Systems公司高级软件工程师



“我对并发有着浓厚的兴趣,并且与大多数程序员相比,我或许写过更多存在线程死锁的代码,也在同步上犯了更多的错误。在介绍Java线程和并发等主题的众多书籍中,Brian的这本书颇具可读性,它通过循序渐进的方式将一些复杂的主题阐述得很清楚。我将本书推荐给Java Specialists Newsletter的所有读者,因为它不仅有趣,而且很有用,它介绍了当前Java开发人员正在面对的许多问题。”

——Heinz Kabutz博士,Java Specialists Newsletter的维护者



“我一直努力想使一些简单的问题变得更简单,然而本书已经简化了一个复杂但却关键的主题:并发。这本书采用了创新的讲解方法、简单明了的风格,它注定会成为一本非常重要的书。

——Bruce Tate,《Beyond Java》的作者



这本书为Java开发人员在线程编程领域提供了不可多得的知识。我在读这本书时受到了极大的启发,部分原因在于它详细地介绍了Java中并发领域的API,但更重要的却在于这本书以一种透彻并且易懂的方式来介绍复杂的并发知识,这是其他书籍很难媲美的。

——Bill Venners,《Inside the Java Virtual Machine》的作者
Catalogue

对本书的赞誉
译者序
前言
第1章简介
1.1并发简史
1.2线程的优势
1.2.1发挥多处理器的强大能力
1.2.2建模的简单性
1.2.3异步事件的简化处理
1.2.4响应更灵敏的用户界面
1.3线程带来的风险
1.3.1安全性问题
1.3.2活跃性问题
1.3.3性能问题
1.4线程无处不在
第一部分基础知识
第2章线程安全性
2.1什么是线程安全性
2.2原子性
2.2.1竞态条件
2.2.2示例:延迟初始化中的竞态条件
2.2.3复合操作
2.3加锁机制
2.3.1内置锁
2.3.2重入
2.4用锁来保护状态
2.5活跃性与性能
第3章对象的共享
3.1可见性
3.1.1失效数据
3.1.2非原子的64位操作
3.1.3加锁与可见性
3.1.4Volatile变量
3.2发布与逸出
3.3线程封闭
3.3.1Ad-hoc线程封闭
3.3.2栈封闭
3.3.3ThreadLocal类
3.4不变性
3.4.1Final域
3.4.2示例:使用Volatile类型来发布不可变对象
3.5安全发布
3.5.1不正确的发布:正确的对象被破坏
3.5.2 不可变对象与初始化安全性
3.5.3安全发布的常用模式
3.5.4事实不可变对象
3.5.5可变对象
3.5.6安全地共享对象
第4章对象的组合
4.1设计线程安全的类
4.1.1收集同步需求
4.1.2依赖状态的操作
4.1.3状态的所有权
4.2实例封闭
4.2.1Java监视器模式
4.2.2示例:车辆追踪
4.3线程安全性的委托
4.3.1示例:基于委托的车辆追踪器
4.3.2独立的状态变量
4.3.3当委托失效时
4.3.4发布底层的状态变量
4.3.5示例:发布状态的车辆追踪器
4.4在现有的线程安全类中添加功能
4.4.1客户端加锁机制
4.4.2组合
4.5将同步策略文档化
第5章基础构建模块
5.1同步容器类
5.1.1同步容器类的问题
5.1.2迭代器与Concurrent-ModificationException
5.1.3隐藏迭代器
5.2并发容器
5.2.1ConcurrentHashMap
5.2.2额外的原子Map操作
5.2.3CopyOnWriteArrayList
5.3阻塞队列和生产者-消费者模式
5.3.1示例:桌面搜索
5.3.2串行线程封闭
5.3.3双端队列与工作密取
5.4阻塞方法与中断方法
5.5同步工具类
5.5.1闭锁
5.5.2FutureTask
5.5.3信号量
5.5.4栅栏
5.6构建高效且可伸缩的结果缓存
第二部分结构化并发应用程序
第6章任务执行
6.1在线程中执行任务
6.1.1串行地执行任务
6.1.2显式地为任务创建线程
6.1.3无限制创建线程的不足
6.2Executor框架
6.2.1示例:基于Executor的Web服务器
6.2.2执行策略
6.2.3线程池
6.2.4Executor的生命周期
6.2.5延迟任务与周期任务
6.3找出可利用的并行性
6.3.1示例:串行的页面渲染器
6.3.2携带结果的任务Callable与Future
6.3.3示例:使用Future实现页面渲染器
6.3.4在异构任务并行化中存在的局限
6.3.5CompletionService:Executor与BlockingQueue
6.3.6示例:使用CompletionService实现页面渲染器
6.3.7为任务设置时限
6.3.8示例:旅行预定门户网站
第7章取消与关闭
第8章线程池的使用
第9章图形用户界面应用程序
第三部分活跃性、性能与测试
第10章避免活跃性危险
第11章性能与可伸缩性
第12章并发程序的测试
第四部分高级主题
第13章显式锁
第14章构建自定义的同步工具
第15章原子变量与非阻塞同步机制
第16章Java内存模型
附录A并发性标注
参考文献
Book Abstract

并发编程是Java语言的重要特性之一,在Java平台上提供了许多基本的并发功能来辅助开发多线程应用程序。然而,这些相对底层的并发功能与上层应用程序的并发语义之间并不存在一种简单而直观的映射关系。因此,如何在Java并发应用程序中正确且高效地使用这些功能就成了Java开发人员的关注重点。
本书正是为了解决这个问题而写的。书中采用循序渐进的讲解方式,从并发编程的基本理论入手,逐步介绍了在设计Java并发程序时各种重要的设计原则、设计模式以及思维模式,同时辅以丰富的示例代码作为对照和补充,使得开发人员能够更快地领悟Java并发编程的要领,围绕着Java平台的基础并发功能快速地构建大规模的并发应用程序。
全书内容由浅入深,共分为四个部分。第一部分介绍了Java并发编程的基础理论,包括线程安全性与状态对象的基础知识,如何构造线程安全的类并将多个小型的线程安全类构建成更大型的线程安全类,以及Java平台库中的一些基础并发模块;第二部分介绍了并发应用程序的构造理论,包括应用程序中并行语义的分解及其与逻辑任务的映射,任务的取消与关闭等行为的实现,以及Java线程池中的一些高级功能,此外还介绍了如何提高GUI应用程序的响应性;第三部分介绍了并发编程的性能调优,包括如何避免活跃性问题,如何提高并发代码的性能和可伸缩性以获得理想的性能,以及在测试并发代码正确性和性能时的一些实用技术;第四部分介绍了Java并发编程中的一些高级主题,包括显式锁、原子变量、非阻塞算法以及如何开发自定义的同步工具类等。
本书的特点在于注重阐述并发技术背后的理论知识,对于每种技术的介绍不仅使读者能做到“知其然”,更能做到“知其所以然”。对于希望深入研究和探索Java并发编程的读者来说,本书是非常合适的。
参与本书翻译工作的还有李杨、吴汉平、徐光景、童胜汉、陈军、胡凯、刘红、张玮、陈红、李斌、李勇涛、王海涛、周云波、彭敏才、张世锋、朱介秋、宗敬、李静、叶锦、高波、熊莉、程凤、陈娟、胡世娟、董敏、谢路阳、冯卓、李志勇、胡欢、王进等。由于译者的时间和水平有限,翻译中的疏漏和错误在所难免,还望读者和同行不吝指正。
……
Introduction

在写作本书时,对于中端桌面系统来说,多核处理器正变得越来越便宜。无独有偶,许多开发团队也注意到,在他们的项目中出现了越来越多与线程有关的错误报告。在NetBeans开发者网站上的最近一次公告中,一位核心维护人员注意到,为了修复与线程相关的问题,在某个类中竟然打了14次补丁。Dion Almaer,这位TheServerSide网站的前编辑,最近(在经过一番痛苦的调试过程并最终发现了一个与线程有关的错误之后)在其博客上写道,在大多数Java程序中充满了各种并发错误,使得程序只有在“偶然的情况下”才能正常工作。
确实,在开发、测试以及调试多线程程序时存在着巨大的困难,因为并发性错误通常并不会以某种确定的方式显现出来。当这些错误出现时,通常是在最糟糕的时刻,例如在正式产品中,或者在高负载的情况下。
当开发Java并发程序时,所要面对的挑战之一就是:平台提供的各种并发功能与开发人员在程序中需要的并发语义并不匹配。在Java语言中提供了一些底层机制,例如同步和条件等待,但在使用这些机制来实现应用级的协议与策略时必须始终保持一致。如果没有这些策略,那么在编写程序时,虽然程序看似能顺利地编译和运行,但却总会出现各种奇怪的问题。许多介绍并发的其他书籍更侧重于介绍一些底层机制和API,而在设计级的策略和模式上叙述的不多。
Java 5.0在Java并发应用程序的开发方面进展巨大,它不仅提供了一些新的高层组件,还补充了一些底层机制,从而使得无论是新手级开发人员还是专家级开发人员都能够更容易地构建并发应用程序。本书的作者都是JCP专家组的主要成员,也正是该专家组编写了这些新功能。本书不仅描述了这些新功能的行为和特性,还介绍了它们的底层设计模式和促使它们被添加到平台库中的应用场景。
我们的目标是向读者介绍一些设计规则和思维模式,从而使读者能够更容易也更乐意去构建正确的以及高性能的Java并发类和应用程序。
我们希望你能享受本书的阅读过程。
Brian Goetz
Williston,VT
2006年3月



Specifications

Brand Jingdong book
Brand Origin China

Disclaimer

Product packaging, specifications and price are subject to change without notice. All information about the products on our website is provided for information purposes only. Please always read labels, warnings and directions provided with the product before use.

View Full Terms of Use
Add to favorites
{{ $isZh ? coupon.coupon_name_sub : coupon.coupon_ename_sub | formatCurrency }}
{{__("Buy Directly")}} {{ itemCurrency }}{{ item.directly_price }}
Quantity
{{ quantity }}
{{ instockMsg }}
{{ limitText }}
{{buttonTypePin == 3 ? __("Scan to view more PinGo") : __("Scan to start")}}
Sold by JD@CHINA
Ship to
{{ __("Ship to United States only") }}
Free shipping over 69
Genuine guarantee

Added to Cart

Keep Shopping

More to Consider

{{ item.brand_name }}

{{ item.item_name }}

{{ item.currency }}{{ item.market_price }}

{{ item.currency }}{{ item.unit_price }}

{{ item.currency }}{{ item.unit_price }}

Coupons

{{ coupon.coupon_name_new | formatCurrency }}
Clip Clipped Over
{{ getCouponDescStr(coupon) }}
{{ coupon.use_time_desc }}
Expires soon {{ formatTime(coupon.use_end_time) }}

Share this item with friends

Cancel

Yami Gift Card

Get this exclusive deal when paying with gift card

Terms and Conditions

Gift card deals are special offers for selected products;

The gift card deals will automatically be activated if a customer uses gift card balance at check out and the balance is sufficient to pay for the total price of the shopping cart products with gift card deals;

You will not be able to activate the gift card deals if you choose other payment methods besides gift card. The products will be purchased at their normal prices;

If your account balance is not enough to pay for the products with gift card deals, you can choose to reload your gift card balance by clicking on the Reload button at either shopping cart page or check out page;

Products that have gift card deals can be recognized by a special symbol showing 'GC Deal';

For any additional questions or concerns, please contact our customer service;

Yamibuy reserves the right of final interpretation.

Sold by Yami

Service Guarantee

Yami Free Shipping over $49
Yami Easy Returns
Yami Ships from United States

Shipping

  • United States

    Standard Shipping is $5.99 (Excluding Alaska & Hawaii). Free on orders of $49 or more.

    Local Express is $5.99 (Available in Parts of CA, NJ, MA & PA). Free on orders of $49 or more.

    2-Day Express (Includes Alaska & Hawaii) starts at $19.99.

Return Policy

Yami is committed to provide our customers with a peace of mind when purchasing from us. Most items shipped from Yamibuy.com can be returned within 30 days of receipt of shipment (For Food, Beverages, Snacks, Dry Goods, Health supplements, Fresh Grocery and Perishables Goods, within 7 days of receipt of shipment due to damages or quality issues; To ensure that every customer receives safe and high-quality products, we do not provide refunds or returns for beauty products once they have been opened or used, except in the case of quality issues; Some products may have different policies or requirements associated with them, please see below for products under special categories, or contact Yami Customer Service for further assistance).
Thank you for your understanding and support.

Learn More

Sold by Yami

Terms and Conditions of Yami E-Gift Card

If you choose “Redeem automatically” as your delivery method, your gift card balance will be reload automatically after your order has been processed successfully;

If you choose “Send to Email”as your delivery method, the card number and CVV will be sent to the email address automatically;

Any user can use the card number and CVV to redeem the gift card, please keep your gift card information safely. If you have any trouble receiving email, please contact Yami customer service;

Yami gift card can be used to purchase both Yami owned or Marketplace products;

Yami gift card will never expire;

Yami gift card balance does not have to be used up at once;

All rights reserved by Yami.

Return Policy

Gift card that has already been consumed is non-refundable.

Sold by JD@CHINA

Service Guarantee

Yami Free Shipping over $49
Yami Easy Returns
Yami Ships from United States

Shipping

  • United States

    Standard Shipping is $5.99 (Excluding Alaska & Hawaii). Free on orders of $49 or more.

    Local Express is $5.99 (Available in Parts of CA, NJ, MA & PA). Free on orders of $49 or more.

    2-Day Express (Includes Alaska & Hawaii) starts at $19.99.

Return Policy

You may return product within 30 days upon receiving the product. Items returned must be new in it's original packing, including the original invoice for the purchase. Customer return product at their own expense.

Sold by JD@CHINA

Service Guarantee

Yami Cross-store Free Shipping over $69
Yami 30-days Return

Yami-China FC

Yami has a consolidation warehouse in China which collects multiple sellers’ packages and combines to one order. Our Yami consolidation warehouse will directly ship the packages to your door. Cross-store free shipping over $69.

Return Policy

You may return products within 30 days upon receiving the products. Sellers take responsibilities for any wrong shipment or missing items. Packing needs to be unopened for any other than quality issues return. We promise to pack carefully, but because goods are taking long journey to destinations, simple damages to packaging may occur. Any damages not causing internal goods quality problems are not allowed to return. If you open the package and any quality problem is found, please contact customer service within three days after receipt of goods.

Shipping Information

Yami Consolidation Service Shipping Fee $9.99(Free shipping over $69)

Sellers in China will ship their orders within 1-2 business days once the order is placed. Packages are sent to our consolidation warehouse in China and combined there. Our Yami consolidation warehouse will directly ship the packages to you via UPS. The average time for UPS to ship from China to the United States is about 10 working days and it can be traced using the tracking number. Due to the pandemic, the delivery time may be delayed by about 5 days. The package needs to be signed by the guest. If the receipt is not signed, the customer shall bear the risk of loss of the package.

Sold by JD@CHINA

Service Guarantee

Free shipping over 69
Genuine guarantee

Shipping

Yami Consolidated Shipping $9.99(Free shipping over $69)


Seller will ship the orders within 1-2 business days. The logistics time limit is expected to be 7-15 working days. In case of customs clearance, the delivery time will be extended by 3-7 days. The final receipt date is subject to the information of the postal company.

Yami Points information

All items are excluding from any promotion or points events on Yamibuy.com

Return Policy

You may return product within 30 days upon receiving the product. Items returned must be new in it's original packing, including the original invoice for the purchase. Customer return product at their own expense.

Yami

Download the Yami App

Back Top

Recommended for You

About the brand

Jingdong book

为您推荐

Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折

Reviews{{'('+ commentList.posts_count + ')'}}

Have your say. Be the first to help other guests.

Write a review
{{ totalRating }} Write a review
  • {{i}} star

    {{i}} stars

    {{ parseInt(commentRatingList[i]) }}%

Yami Yami
{{ comment.user_name }}

{{ showTranslate(comment) }}Show Less

{{ strLimit(comment,800) }}Show more

Show Original

{{ comment.content }}

Yami
Show All

{{ formatTime(comment.in_dtm) }} VERIFIED PURCHASE {{groupData}}

{{ comment.likes_count }} {{ comment.likes_count }} {{ comment.reply_count }} {{comment.in_user==uid ? __('Delete') : __('Report')}}
Yami Yami
{{ comment.user_name }}

{{ showTranslate(comment) }}Show Less

{{ strLimit(comment,800) }}Show more

Show Original

{{ comment.content }}

Yami
Show All

{{ formatTime(comment.in_dtm) }} VERIFIED PURCHASE {{groupData}}

{{ comment.likes_count }} {{ comment.likes_count }} {{ comment.reply_count }} {{comment.in_user==uid ? __('Delete') : __('Report')}}

No related comment~

Review

Yami Yami

{{ showTranslate(commentDetails) }}Show Less

{{ strLimit(commentDetails,800) }}Show more

Show Original

{{ commentDetails.content }}

Yami
Show All

{{ formatTime(commentDetails.in_dtm) }} VERIFIED PURCHASE {{groupData}}

{{ commentDetails.likes_count }} {{ commentDetails.likes_count }} {{ commentDetails.reply_count }} {{commentDetails.in_user==uid ? __('Delete') : __('Report')}}

Please write at least one word

Comments{{'(' + replyList.length + ')'}}

Yami Yami

{{ showTranslate(reply) }}Show Less

{{ strLimit(reply,800) }}Show more

Show Original

{{ reply.reply_content }}

{{ formatTime(reply.reply_in_dtm) }}

{{ reply.reply_likes_count }} {{ reply.reply_likes_count }} {{ reply.reply_reply_count }} {{reply.reply_in_user==uid ? __('Delete') : __('Report')}}

Please write at least one word

Cancel

That’s all the comments so far!

Write a review
How would you rate this item?

Please add your comment.

  • A nice nickname will make your comments more popular!
  • The nickname in your account will be changed to the same as here.
Thanks for your review
Our community rely on great reviews like yours to find the best of Asia.

Report

If you find this content inappropriate and think it should be removed from the Yami.com site, let us know please.

Cancel

Are you sure to delete your review?

Cancel

You’ve Recently Viewed

About the brand

Jingdong book