Minimize and Isolate Multithreaded Code

So far in this chapter, we’ve given you hints on how to streamline your development toward a production environment. But of course, you’ll also have to make sure that your program performs in production. The key to that is concurrency, leveraging the multicore capabilities of today’s machines. That’s something we’ve hardly touched upon so far, essentially because it would double the size of the book. Nevertheless, we’ll give you a few basic hints and pointers to further sources in the following pages.

Concurrency isn’t easy to grasp, and it’s even harder to code correctly. Bugs in concurrent software can result in huge problems and even loss of life, according to An Investigation of the Therac-25 Accidents ...

Get Java By Comparison now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.