O'Reilly logo

Agile Java™: Crafting Code with Test-Driven Development by Jeff Langr

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

Lesson 13. Multithreading

This chapter presents the most difficult core Java technology to understand and master: multithreading. So far, you have been writing code to run in a single thread of execution. It runs serially, start to finish. You may have the need, however, to multithread, or execute multiple passages of code simultaneously.

You will learn about:

• suspending execution in a thread

• creating and running threads by extending Thread

• creating and running threads by implementing Runnable

• cooperative and preemptive multitasking

• synchronization

• BlockingQueue

• stopping threads

wait and notify methods

• locks and conditions

• thread priorities

• deadlocks

• ThreadLocal

• the timer classes

• basic design principles for multithreading ...

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