Java Reference
In-Depth Information
9
WHAT'S IN THIS CHAPTER?
Introduction to asynchronous programming
What is asynchronous programming
Asynchronous programming using threads
Using asynchronous programming in beans
Asynchronous programming in servlets
When and where to best use asynchronous techniques
WROX.COM CODE DOWNLOADS FOR THIS CHAPTER
The wrox.com code download for this chapter is found at www.wrox.com/go/
projavaeedesignpatterns on the Download Code tab. The code is in the Chapter 09
download and individually named according to the names throughout the chapter.
Although asynchronous programming is not always listed as a design pattern, it has been
a popular and important programming model for the past decade. The asynchronous
programming model relies on multithreading and executing the given functionality in a
separate thread. Not only do multithreaded environments and programming languages take
advantage of asynchronous programming techniques, but single‐threaded platforms, such
as the popular server‐side JavaScript platform NodeJS, make good use of asynchronous
programming principles.
NOTE The asynchronous pattern is also referred to as nonblocking method
execution because the invoked method does not block the caller.
 
Search WWH ::




Custom Search