Creating Components —— Object Oriented, Concurrent, and Distributed Computing in Java

----- 创建组件:Java中的面向对象,并发和分布式计算

ISBN: 9781138468542 出版年:2017 页码:450 Kann, Charles W Auerbach Publications

知识网络
知识图谱网络
内容简介

INTRODUCTION TO CONCURRENT PROGRAMMING AND COMPONENTS Chapter Goals What is Concurrent Programming? Components Types of Concurrent Programming THREADS AND PROGRAM CONTEXTS Writing threads in Java A Simple Execution Model Program Safety Deadlock DESIGNING AND IMPLEMENTING CONCURRENT PROGRAMS WITH STATE DIAGRAMS Background Steps to Create a Concurrent Program The Producer/Consumer Problem Why Passive Objects are Components Gas Station Simulation Problem Identifiers, Variables, Objects, and Collection Classes Identifiers and Variables Java Identifiers and Variables Primitives Objects Collection Classes in Java PROGRAMMING TO AN INTERFACE Reuse with Interfaces Programming to a Promise Dynamic Polymorphism Using Multiple Interfaces Implementing the SortedPrintTable Using the SortedPrintTable Expression Trees EXCEPTIONS IN JAVA How to Incorrectly Handle Errors Java Exception Handling Checked and Unchecked Exceptions Writing Exceptions IMPLEMENTING AN ANIMATOR COMPONENT USING THE JAVA EVENT MODEL A Very Simple Animator Adding a Speed Control to the Animator Implementing a Generic Animator Implementing the Animator using the Java Event Model Multicasters COOPERATIVE SYNCHRONIZATION Cooperative and Competitive Synchronization Coordinating Threads using Long Sleep Times Using Wait and Notify to Coordinate Threads A Solution with a Hidden Race Condition Solving the Race Condition Notification Objects Animating the Gas Station Problem COMBINING CONCURRENT TECHNIQUES A First-In-First-Out-Binary-Semaphore Readers-Writers Problem An Improved Gas Station Simulation Improving the Animator ORGANIZING THE PROBLEM FOR REUSE: REUSE OF UTILITY CLASSES Types of Reuse Finding Commonality in Code Reuse by Copy Procedural Reuse in Java Classification: Reuse by Extension Composition: Reuse by Delegation Defining the Java Event Model by Extending a Vector Using Cohesion and Coupling to Evaluate Designs OBJECT ORIENTED DESIGN Organizing Objects Choosing Composition or Classification Conclusion PROGRAM MANAGEMENT IN JAVA What is Program Management? Implementation Attributes Not Defined in Java Implementation Attributes Defined in Java Packages DISTRIBUTED PROGRAMMING USING RMI A Brief History of Distributed Computing Overview of RMI Implementing a simple program using RMI Migrating and Non-Migrating Objects Chat Program

Amazon评论 {{comment.person}}

{{comment.content}}

作品图片
推荐图书