How to do it...

Follow these steps to implement the example:

  1. Navigate to Window | Preferences.
  2. Expand the Java option in the left-hand side menu.
  3. Then, select the Debug option. The following screenshot illustrates the window:
  1. Change the value of Default suspend policy for new breakpoints from Suspend Thread to Suspend VM (marked in red in the screenshot).
  2. Click on the OK button to confirm the change.

Get Java 9 Concurrency Cookbook - Second Edition 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.