O'Reilly logo

Patterns for Parallel Programming by Berna L. Massingill, Beverly A. Sanders, Timothy G. Mattson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix CA Brief Introduction to Concurrent Programming in Java

C.1 CREATING THREADS

C.2 ATOMICITY, MEMORY SYNCHRONIZATION, AND THE volatile KEYWORD

C.3 SYNCHRONIZED BLOCKS

C.4 WAIT AND NOTIFY

C.5 LOCKS

C.6 OTHER SYNCHRONIZATION MECHANISMS AND SHARED DATA STRUCTURES

C.7 INTERRUPTS

Java is an object-oriented programming language that provides language support for expressing concurrency in shared-memory programs. Java's support for polymorphism can be exploited to write frameworks directly supporting some of the patterns described in this book. The framework provides the infrastructure for the pattern; the application programmer adds subclasses containing the application-specific code. An example is found in the Examples section of the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required