Chapter 1The Power and Perils of Concurrency

Need and struggle are what excite and inspire us.

William James

You’ve promised the boss that you’ll turn the new powerful multicore processor into a blazingly fast workhorse for your application. You’d love to exploit the power on hand and beat your competition with a faster, responsive application that provides great user experience. Those gleeful thoughts are interrupted by your colleague’s cry for help—he’s run into yet another synchronization issue.

Most programmers have a love-hate relationship with concurrency.

Programming concurrency is hard, yet the benefits it provides make all the troubles worthwhile. The processing power we have at our disposal, at such an affordable cost, is something ...

Get Programming Concurrency on the JVM 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.