13

Threads

CERTIFICATION OBJECTIVES

    •    Create and Use the Thread Class and the Runnable Interface

    •    Manage and Control the Thread Lifecycle

    •    Synchronize Thread Access to Shared Data

    •    Identify Code that May Not Execute Correctly in a Multithreaded Environment

     image    Two-Minute Drill

Q&A Self Test

CERTIFICATION OBJECTIVES

Defining, Instantiating, and Starting Threads (OCP Objective 10.1)

10.1 Create and use the Thread class and the Runnable interface.

Imagine a stockbroker application with a lot of complex capabilities. One of its functions is “download last stock option prices,” another is “check prices for ...

Get OCA/OCP Java SE 7 Programmer I & II Study Guide (Exams 1Z0-803 & 1Z0-804) now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.