From 66f137e9e839a59d59ea60427d7c977ff1431b5a Mon Sep 17 00:00:00 2001 From: Bruce Eckel Date: Wed, 23 Nov 2016 09:05:26 -0800 Subject: [PATCH] Changed chapter title --- {threads => concurrent}/AtomicEvenSupplier.java | 2 +- {threads => concurrent}/AtomicIntegerTest.java | 2 +- {threads => concurrent}/Atomicity.java | 2 +- {threads => concurrent}/AtomicityTest.java | 2 +- {threads => concurrent}/AttemptLocking.java | 2 +- {threads => concurrent}/BankTellerSimulation.java | 2 +- {threads => concurrent}/CachedThreadPool.java | 2 +- {threads => concurrent}/CachedThreadPool2.java | 2 +- {threads => concurrent}/CachedThreadPool3.java | 2 +- {threads => concurrent}/CaptureUncaughtException.java | 2 +- {threads => concurrent}/CarBuilder.java | 2 +- {threads => concurrent}/Chopstick.java | 2 +- {threads => concurrent}/CollectionToStream.java | 2 +- {threads => concurrent}/CountingStream.java | 2 +- {threads => concurrent}/CountingTask.java | 2 +- {threads => concurrent}/CriticalSection.java | 2 +- {threads => concurrent}/DeadlockingDiningPhilosophers.java | 2 +- {threads => concurrent}/DelayQueueDemo.java | 2 +- {threads => concurrent}/EvenChecker.java | 2 +- {threads => concurrent}/EvenSupplier.java | 2 +- {threads => concurrent}/ExceptionThread.java | 2 +- {threads => concurrent}/ExplicitCriticalSection.java | 2 +- {threads => concurrent}/FixedDiningPhilosophers.java | 2 +- {threads => concurrent}/Futures.java | 2 +- {threads => concurrent}/GreenhouseScheduler.java | 2 +- {threads => concurrent}/HorseRace.java | 2 +- {threads => concurrent}/IntSupplier.java | 2 +- {threads => concurrent}/InterferingTask.java | 2 +- {threads => concurrent}/LambdasAndMethodReferences.java | 2 +- {threads => concurrent}/MoreTasksAfterShutdown.java | 2 +- {threads => concurrent}/MutexEvenSupplier.java | 2 +- {threads => concurrent}/NaiveExceptionHandling.java | 2 +- {threads => concurrent}/NumberOfProcessors.java | 2 +- {threads => concurrent}/ParallelStreamPuzzle.java | 2 +- {threads => concurrent}/ParallelStreamPuzzle2.java | 2 +- {threads => concurrent}/ParallelStreamPuzzle3.java | 2 +- {threads => concurrent}/Philosopher.java | 2 +- {threads => concurrent}/Prime.java | 2 +- {threads => concurrent}/PriorityBlockingQueueDemo.java | 2 +- {threads => concurrent}/QuittableTask.java | 2 +- {threads => concurrent}/QuittingTasks.java | 2 +- {threads => concurrent}/Restaurant.java | 2 +- {threads => concurrent}/SerialNumberChecker.java | 2 +- {threads => concurrent}/SerialNumberSupplier.java | 2 +- {threads => concurrent}/SettingDefaultHandler.java | 2 +- {threads => concurrent}/SingleThreadExecutor.java | 2 +- {threads => concurrent}/SingleThreadExecutor2.java | 2 +- {threads => concurrent}/SingleThreadExecutor3.java | 2 +- {threads => concurrent}/SleepAndPrintTask.java | 2 +- {threads => concurrent}/Summing.java | 2 +- {threads => concurrent}/Summing2.java | 2 +- {threads => concurrent}/Summing3.java | 2 +- {threads => concurrent}/Summing4.java | 2 +- {threads => concurrent}/SwallowedException.java | 2 +- {threads => concurrent}/SyncObject.java | 2 +- {threads => concurrent}/SynchronizedEvenSupplier.java | 2 +- {threads => concurrent}/ThreadSize.java | 2 +- {threads => concurrent}/ToastOMatic.java | 2 +- {threads => concurrent}/WorkStealingPool.java | 2 +- {threads => concurrent}/restaurant2/RestaurantWithQueues.java | 2 +- 60 files changed, 60 insertions(+), 60 deletions(-) rename {threads => concurrent}/AtomicEvenSupplier.java (94%) rename {threads => concurrent}/AtomicIntegerTest.java (96%) rename {threads => concurrent}/Atomicity.java (97%) rename {threads => concurrent}/AtomicityTest.java (96%) rename {threads => concurrent}/AttemptLocking.java (97%) rename {threads => concurrent}/BankTellerSimulation.java (99%) rename {threads => concurrent}/CachedThreadPool.java (96%) rename {threads => concurrent}/CachedThreadPool2.java (95%) rename {threads => concurrent}/CachedThreadPool3.java (97%) rename {threads => concurrent}/CaptureUncaughtException.java (97%) rename {threads => concurrent}/CarBuilder.java (99%) rename {threads => concurrent}/Chopstick.java (94%) rename {threads => concurrent}/CollectionToStream.java (95%) rename {threads => concurrent}/CountingStream.java (96%) rename {threads => concurrent}/CountingTask.java (94%) rename {threads => concurrent}/CriticalSection.java (99%) rename {threads => concurrent}/DeadlockingDiningPhilosophers.java (97%) rename {threads => concurrent}/DelayQueueDemo.java (98%) rename {threads => concurrent}/EvenChecker.java (97%) rename {threads => concurrent}/EvenSupplier.java (95%) rename {threads => concurrent}/ExceptionThread.java (93%) rename {threads => concurrent}/ExplicitCriticalSection.java (98%) rename {threads => concurrent}/FixedDiningPhilosophers.java (97%) rename {threads => concurrent}/Futures.java (95%) rename {threads => concurrent}/GreenhouseScheduler.java (99%) rename {threads => concurrent}/HorseRace.java (99%) rename {threads => concurrent}/IntSupplier.java (92%) rename {threads => concurrent}/InterferingTask.java (93%) rename {threads => concurrent}/LambdasAndMethodReferences.java (95%) rename {threads => concurrent}/MoreTasksAfterShutdown.java (95%) rename {threads => concurrent}/MutexEvenSupplier.java (95%) rename {threads => concurrent}/NaiveExceptionHandling.java (93%) rename {threads => concurrent}/NumberOfProcessors.java (89%) rename {threads => concurrent}/ParallelStreamPuzzle.java (94%) rename {threads => concurrent}/ParallelStreamPuzzle2.java (96%) rename {threads => concurrent}/ParallelStreamPuzzle3.java (95%) rename {threads => concurrent}/Philosopher.java (97%) rename {threads => concurrent}/Prime.java (97%) rename {threads => concurrent}/PriorityBlockingQueueDemo.java (98%) rename {threads => concurrent}/QuittableTask.java (94%) rename {threads => concurrent}/QuittingTasks.java (96%) rename {threads => concurrent}/Restaurant.java (98%) rename {threads => concurrent}/SerialNumberChecker.java (97%) rename {threads => concurrent}/SerialNumberSupplier.java (89%) rename {threads => concurrent}/SettingDefaultHandler.java (93%) rename {threads => concurrent}/SingleThreadExecutor.java (97%) rename {threads => concurrent}/SingleThreadExecutor2.java (95%) rename {threads => concurrent}/SingleThreadExecutor3.java (94%) rename {threads => concurrent}/SleepAndPrintTask.java (94%) rename {threads => concurrent}/Summing.java (98%) rename {threads => concurrent}/Summing2.java (97%) rename {threads => concurrent}/Summing3.java (97%) rename {threads => concurrent}/Summing4.java (95%) rename {threads => concurrent}/SwallowedException.java (92%) rename {threads => concurrent}/SyncObject.java (96%) rename {threads => concurrent}/SynchronizedEvenSupplier.java (93%) rename {threads => concurrent}/ThreadSize.java (96%) rename {threads => concurrent}/ToastOMatic.java (99%) rename {threads => concurrent}/WorkStealingPool.java (96%) rename {threads => concurrent}/restaurant2/RestaurantWithQueues.java (99%) diff --git a/threads/AtomicEvenSupplier.java b/concurrent/AtomicEvenSupplier.java similarity index 94% rename from threads/AtomicEvenSupplier.java rename to concurrent/AtomicEvenSupplier.java index 15e34244..84104c8f 100644 --- a/threads/AtomicEvenSupplier.java +++ b/concurrent/AtomicEvenSupplier.java @@ -1,4 +1,4 @@ -// threads/AtomicEvenSupplier.java +// concurrent/AtomicEvenSupplier.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/threads/AtomicIntegerTest.java b/concurrent/AtomicIntegerTest.java similarity index 96% rename from threads/AtomicIntegerTest.java rename to concurrent/AtomicIntegerTest.java index 3b122d4a..600cd7cf 100644 --- a/threads/AtomicIntegerTest.java +++ b/concurrent/AtomicIntegerTest.java @@ -1,4 +1,4 @@ -// threads/AtomicIntegerTest.java +// concurrent/AtomicIntegerTest.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/threads/Atomicity.java b/concurrent/Atomicity.java similarity index 97% rename from threads/Atomicity.java rename to concurrent/Atomicity.java index 4adcadd0..25ac917b 100644 --- a/threads/Atomicity.java +++ b/concurrent/Atomicity.java @@ -1,4 +1,4 @@ -// threads/Atomicity.java +// concurrent/Atomicity.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/threads/AtomicityTest.java b/concurrent/AtomicityTest.java similarity index 96% rename from threads/AtomicityTest.java rename to concurrent/AtomicityTest.java index 9734e201..0f4577f8 100644 --- a/threads/AtomicityTest.java +++ b/concurrent/AtomicityTest.java @@ -1,4 +1,4 @@ -// threads/AtomicityTest.java +// concurrent/AtomicityTest.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/threads/AttemptLocking.java b/concurrent/AttemptLocking.java similarity index 97% rename from threads/AttemptLocking.java rename to concurrent/AttemptLocking.java index 9ce120c1..bcc2f276 100644 --- a/threads/AttemptLocking.java +++ b/concurrent/AttemptLocking.java @@ -1,4 +1,4 @@ -// threads/AttemptLocking.java +// concurrent/AttemptLocking.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/threads/BankTellerSimulation.java b/concurrent/BankTellerSimulation.java similarity index 99% rename from threads/BankTellerSimulation.java rename to concurrent/BankTellerSimulation.java index 1dcb0e5f..f9b597c5 100644 --- a/threads/BankTellerSimulation.java +++ b/concurrent/BankTellerSimulation.java @@ -1,4 +1,4 @@ -// threads/BankTellerSimulation.java +// concurrent/BankTellerSimulation.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/threads/CachedThreadPool.java b/concurrent/CachedThreadPool.java similarity index 96% rename from threads/CachedThreadPool.java rename to concurrent/CachedThreadPool.java index bca8b9e9..1cd48564 100644 --- a/threads/CachedThreadPool.java +++ b/concurrent/CachedThreadPool.java @@ -1,4 +1,4 @@ -// threads/CachedThreadPool.java +// concurrent/CachedThreadPool.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/threads/CachedThreadPool2.java b/concurrent/CachedThreadPool2.java similarity index 95% rename from threads/CachedThreadPool2.java rename to concurrent/CachedThreadPool2.java index 9cfa97de..3c66da6d 100644 --- a/threads/CachedThreadPool2.java +++ b/concurrent/CachedThreadPool2.java @@ -1,4 +1,4 @@ -// threads/CachedThreadPool2.java +// concurrent/CachedThreadPool2.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/threads/CachedThreadPool3.java b/concurrent/CachedThreadPool3.java similarity index 97% rename from threads/CachedThreadPool3.java rename to concurrent/CachedThreadPool3.java index 967fd16c..7565e896 100644 --- a/threads/CachedThreadPool3.java +++ b/concurrent/CachedThreadPool3.java @@ -1,4 +1,4 @@ -// threads/CachedThreadPool3.java +// concurrent/CachedThreadPool3.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/threads/CaptureUncaughtException.java b/concurrent/CaptureUncaughtException.java similarity index 97% rename from threads/CaptureUncaughtException.java rename to concurrent/CaptureUncaughtException.java index 7ee35680..04e262b9 100644 --- a/threads/CaptureUncaughtException.java +++ b/concurrent/CaptureUncaughtException.java @@ -1,4 +1,4 @@ -// threads/CaptureUncaughtException.java +// concurrent/CaptureUncaughtException.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/threads/CarBuilder.java b/concurrent/CarBuilder.java similarity index 99% rename from threads/CarBuilder.java rename to concurrent/CarBuilder.java index a5624138..6942158b 100644 --- a/threads/CarBuilder.java +++ b/concurrent/CarBuilder.java @@ -1,4 +1,4 @@ -// threads/CarBuilder.java +// concurrent/CarBuilder.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/threads/Chopstick.java b/concurrent/Chopstick.java similarity index 94% rename from threads/Chopstick.java rename to concurrent/Chopstick.java index 046d1727..2c853a97 100644 --- a/threads/Chopstick.java +++ b/concurrent/Chopstick.java @@ -1,4 +1,4 @@ -// threads/Chopstick.java +// concurrent/Chopstick.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/threads/CollectionToStream.java b/concurrent/CollectionToStream.java similarity index 95% rename from threads/CollectionToStream.java rename to concurrent/CollectionToStream.java index 0209a9b4..fe188adf 100644 --- a/threads/CollectionToStream.java +++ b/concurrent/CollectionToStream.java @@ -1,4 +1,4 @@ -// threads/CollectionToStream.java +// concurrent/CollectionToStream.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/threads/CountingStream.java b/concurrent/CountingStream.java similarity index 96% rename from threads/CountingStream.java rename to concurrent/CountingStream.java index f7e9403c..62ecfcfc 100644 --- a/threads/CountingStream.java +++ b/concurrent/CountingStream.java @@ -1,4 +1,4 @@ -// threads/CountingStream.java +// concurrent/CountingStream.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/threads/CountingTask.java b/concurrent/CountingTask.java similarity index 94% rename from threads/CountingTask.java rename to concurrent/CountingTask.java index 4c1375df..3a7d6262 100644 --- a/threads/CountingTask.java +++ b/concurrent/CountingTask.java @@ -1,4 +1,4 @@ -// threads/CountingTask.java +// concurrent/CountingTask.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/threads/CriticalSection.java b/concurrent/CriticalSection.java similarity index 99% rename from threads/CriticalSection.java rename to concurrent/CriticalSection.java index a653f35e..dba1b9e0 100644 --- a/threads/CriticalSection.java +++ b/concurrent/CriticalSection.java @@ -1,4 +1,4 @@ -// threads/CriticalSection.java +// concurrent/CriticalSection.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/threads/DeadlockingDiningPhilosophers.java b/concurrent/DeadlockingDiningPhilosophers.java similarity index 97% rename from threads/DeadlockingDiningPhilosophers.java rename to concurrent/DeadlockingDiningPhilosophers.java index 6100d661..69224c0e 100644 --- a/threads/DeadlockingDiningPhilosophers.java +++ b/concurrent/DeadlockingDiningPhilosophers.java @@ -1,4 +1,4 @@ -// threads/DeadlockingDiningPhilosophers.java +// concurrent/DeadlockingDiningPhilosophers.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/threads/DelayQueueDemo.java b/concurrent/DelayQueueDemo.java similarity index 98% rename from threads/DelayQueueDemo.java rename to concurrent/DelayQueueDemo.java index 651bb771..9ae60b14 100644 --- a/threads/DelayQueueDemo.java +++ b/concurrent/DelayQueueDemo.java @@ -1,4 +1,4 @@ -// threads/DelayQueueDemo.java +// concurrent/DelayQueueDemo.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/threads/EvenChecker.java b/concurrent/EvenChecker.java similarity index 97% rename from threads/EvenChecker.java rename to concurrent/EvenChecker.java index f42046fb..74af645c 100644 --- a/threads/EvenChecker.java +++ b/concurrent/EvenChecker.java @@ -1,4 +1,4 @@ -// threads/EvenChecker.java +// concurrent/EvenChecker.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/threads/EvenSupplier.java b/concurrent/EvenSupplier.java similarity index 95% rename from threads/EvenSupplier.java rename to concurrent/EvenSupplier.java index f344bb70..38a92d2d 100644 --- a/threads/EvenSupplier.java +++ b/concurrent/EvenSupplier.java @@ -1,4 +1,4 @@ -// threads/EvenSupplier.java +// concurrent/EvenSupplier.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/threads/ExceptionThread.java b/concurrent/ExceptionThread.java similarity index 93% rename from threads/ExceptionThread.java rename to concurrent/ExceptionThread.java index b2bb33df..cf66c3b8 100644 --- a/threads/ExceptionThread.java +++ b/concurrent/ExceptionThread.java @@ -1,4 +1,4 @@ -// threads/ExceptionThread.java +// concurrent/ExceptionThread.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/threads/ExplicitCriticalSection.java b/concurrent/ExplicitCriticalSection.java similarity index 98% rename from threads/ExplicitCriticalSection.java rename to concurrent/ExplicitCriticalSection.java index bcc32c09..adcd2ea0 100644 --- a/threads/ExplicitCriticalSection.java +++ b/concurrent/ExplicitCriticalSection.java @@ -1,4 +1,4 @@ -// threads/ExplicitCriticalSection.java +// concurrent/ExplicitCriticalSection.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/threads/FixedDiningPhilosophers.java b/concurrent/FixedDiningPhilosophers.java similarity index 97% rename from threads/FixedDiningPhilosophers.java rename to concurrent/FixedDiningPhilosophers.java index b321412d..e3a6745b 100644 --- a/threads/FixedDiningPhilosophers.java +++ b/concurrent/FixedDiningPhilosophers.java @@ -1,4 +1,4 @@ -// threads/FixedDiningPhilosophers.java +// concurrent/FixedDiningPhilosophers.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/threads/Futures.java b/concurrent/Futures.java similarity index 95% rename from threads/Futures.java rename to concurrent/Futures.java index 7af93964..3a8c3f92 100644 --- a/threads/Futures.java +++ b/concurrent/Futures.java @@ -1,4 +1,4 @@ -// threads/Futures.java +// concurrent/Futures.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/threads/GreenhouseScheduler.java b/concurrent/GreenhouseScheduler.java similarity index 99% rename from threads/GreenhouseScheduler.java rename to concurrent/GreenhouseScheduler.java index 9fc385d6..1d52a01a 100644 --- a/threads/GreenhouseScheduler.java +++ b/concurrent/GreenhouseScheduler.java @@ -1,4 +1,4 @@ -// threads/GreenhouseScheduler.java +// concurrent/GreenhouseScheduler.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/threads/HorseRace.java b/concurrent/HorseRace.java similarity index 99% rename from threads/HorseRace.java rename to concurrent/HorseRace.java index c5ce98d1..de84f25d 100644 --- a/threads/HorseRace.java +++ b/concurrent/HorseRace.java @@ -1,4 +1,4 @@ -// threads/HorseRace.java +// concurrent/HorseRace.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/threads/IntSupplier.java b/concurrent/IntSupplier.java similarity index 92% rename from threads/IntSupplier.java rename to concurrent/IntSupplier.java index e463bd02..6c0be8d2 100644 --- a/threads/IntSupplier.java +++ b/concurrent/IntSupplier.java @@ -1,4 +1,4 @@ -// threads/IntSupplier.java +// concurrent/IntSupplier.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/threads/InterferingTask.java b/concurrent/InterferingTask.java similarity index 93% rename from threads/InterferingTask.java rename to concurrent/InterferingTask.java index 262c9dbd..b64afdd8 100644 --- a/threads/InterferingTask.java +++ b/concurrent/InterferingTask.java @@ -1,4 +1,4 @@ -// threads/InterferingTask.java +// concurrent/InterferingTask.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/threads/LambdasAndMethodReferences.java b/concurrent/LambdasAndMethodReferences.java similarity index 95% rename from threads/LambdasAndMethodReferences.java rename to concurrent/LambdasAndMethodReferences.java index a37831da..2e713d46 100644 --- a/threads/LambdasAndMethodReferences.java +++ b/concurrent/LambdasAndMethodReferences.java @@ -1,4 +1,4 @@ -// threads/LambdasAndMethodReferences.java +// concurrent/LambdasAndMethodReferences.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/threads/MoreTasksAfterShutdown.java b/concurrent/MoreTasksAfterShutdown.java similarity index 95% rename from threads/MoreTasksAfterShutdown.java rename to concurrent/MoreTasksAfterShutdown.java index 1ba36d9b..a940bd67 100644 --- a/threads/MoreTasksAfterShutdown.java +++ b/concurrent/MoreTasksAfterShutdown.java @@ -1,4 +1,4 @@ -// threads/MoreTasksAfterShutdown.java +// concurrent/MoreTasksAfterShutdown.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/threads/MutexEvenSupplier.java b/concurrent/MutexEvenSupplier.java similarity index 95% rename from threads/MutexEvenSupplier.java rename to concurrent/MutexEvenSupplier.java index cbdf07c0..db4c62c9 100644 --- a/threads/MutexEvenSupplier.java +++ b/concurrent/MutexEvenSupplier.java @@ -1,4 +1,4 @@ -// threads/MutexEvenSupplier.java +// concurrent/MutexEvenSupplier.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/threads/NaiveExceptionHandling.java b/concurrent/NaiveExceptionHandling.java similarity index 93% rename from threads/NaiveExceptionHandling.java rename to concurrent/NaiveExceptionHandling.java index 914ab321..d848b146 100644 --- a/threads/NaiveExceptionHandling.java +++ b/concurrent/NaiveExceptionHandling.java @@ -1,4 +1,4 @@ -// threads/NaiveExceptionHandling.java +// concurrent/NaiveExceptionHandling.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/threads/NumberOfProcessors.java b/concurrent/NumberOfProcessors.java similarity index 89% rename from threads/NumberOfProcessors.java rename to concurrent/NumberOfProcessors.java index 7ffc8a7a..8acf272f 100644 --- a/threads/NumberOfProcessors.java +++ b/concurrent/NumberOfProcessors.java @@ -1,4 +1,4 @@ -// threads/NumberOfProcessors.java +// concurrent/NumberOfProcessors.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/threads/ParallelStreamPuzzle.java b/concurrent/ParallelStreamPuzzle.java similarity index 94% rename from threads/ParallelStreamPuzzle.java rename to concurrent/ParallelStreamPuzzle.java index 9855af2b..d9052087 100644 --- a/threads/ParallelStreamPuzzle.java +++ b/concurrent/ParallelStreamPuzzle.java @@ -1,4 +1,4 @@ -// threads/ParallelStreamPuzzle.java +// concurrent/ParallelStreamPuzzle.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/threads/ParallelStreamPuzzle2.java b/concurrent/ParallelStreamPuzzle2.java similarity index 96% rename from threads/ParallelStreamPuzzle2.java rename to concurrent/ParallelStreamPuzzle2.java index 0dab06ca..20b5cb74 100644 --- a/threads/ParallelStreamPuzzle2.java +++ b/concurrent/ParallelStreamPuzzle2.java @@ -1,4 +1,4 @@ -// threads/ParallelStreamPuzzle2.java +// concurrent/ParallelStreamPuzzle2.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/threads/ParallelStreamPuzzle3.java b/concurrent/ParallelStreamPuzzle3.java similarity index 95% rename from threads/ParallelStreamPuzzle3.java rename to concurrent/ParallelStreamPuzzle3.java index 55562a0f..9f304aa9 100644 --- a/threads/ParallelStreamPuzzle3.java +++ b/concurrent/ParallelStreamPuzzle3.java @@ -1,4 +1,4 @@ -// threads/ParallelStreamPuzzle3.java +// concurrent/ParallelStreamPuzzle3.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/threads/Philosopher.java b/concurrent/Philosopher.java similarity index 97% rename from threads/Philosopher.java rename to concurrent/Philosopher.java index 7e33f118..c5bc8d39 100644 --- a/threads/Philosopher.java +++ b/concurrent/Philosopher.java @@ -1,4 +1,4 @@ -// threads/Philosopher.java +// concurrent/Philosopher.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/threads/Prime.java b/concurrent/Prime.java similarity index 97% rename from threads/Prime.java rename to concurrent/Prime.java index 9f4e8841..906fbeb2 100644 --- a/threads/Prime.java +++ b/concurrent/Prime.java @@ -1,4 +1,4 @@ -// threads/Prime.java +// concurrent/Prime.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/threads/PriorityBlockingQueueDemo.java b/concurrent/PriorityBlockingQueueDemo.java similarity index 98% rename from threads/PriorityBlockingQueueDemo.java rename to concurrent/PriorityBlockingQueueDemo.java index 7eee0c8c..aa45515b 100644 --- a/threads/PriorityBlockingQueueDemo.java +++ b/concurrent/PriorityBlockingQueueDemo.java @@ -1,4 +1,4 @@ -// threads/PriorityBlockingQueueDemo.java +// concurrent/PriorityBlockingQueueDemo.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/threads/QuittableTask.java b/concurrent/QuittableTask.java similarity index 94% rename from threads/QuittableTask.java rename to concurrent/QuittableTask.java index 335add9c..bd7e80d9 100644 --- a/threads/QuittableTask.java +++ b/concurrent/QuittableTask.java @@ -1,4 +1,4 @@ -// threads/QuittableTask.java +// concurrent/QuittableTask.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/threads/QuittingTasks.java b/concurrent/QuittingTasks.java similarity index 96% rename from threads/QuittingTasks.java rename to concurrent/QuittingTasks.java index 9c68bcbf..78289266 100644 --- a/threads/QuittingTasks.java +++ b/concurrent/QuittingTasks.java @@ -1,4 +1,4 @@ -// threads/QuittingTasks.java +// concurrent/QuittingTasks.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/threads/Restaurant.java b/concurrent/Restaurant.java similarity index 98% rename from threads/Restaurant.java rename to concurrent/Restaurant.java index d2092de4..bc8c11e2 100644 --- a/threads/Restaurant.java +++ b/concurrent/Restaurant.java @@ -1,4 +1,4 @@ -// threads/Restaurant.java +// concurrent/Restaurant.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/threads/SerialNumberChecker.java b/concurrent/SerialNumberChecker.java similarity index 97% rename from threads/SerialNumberChecker.java rename to concurrent/SerialNumberChecker.java index d2283b22..0be31b5e 100644 --- a/threads/SerialNumberChecker.java +++ b/concurrent/SerialNumberChecker.java @@ -1,4 +1,4 @@ -// threads/SerialNumberChecker.java +// concurrent/SerialNumberChecker.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/threads/SerialNumberSupplier.java b/concurrent/SerialNumberSupplier.java similarity index 89% rename from threads/SerialNumberSupplier.java rename to concurrent/SerialNumberSupplier.java index cedfe485..53137d5f 100644 --- a/threads/SerialNumberSupplier.java +++ b/concurrent/SerialNumberSupplier.java @@ -1,4 +1,4 @@ -// threads/SerialNumberSupplier.java +// concurrent/SerialNumberSupplier.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/threads/SettingDefaultHandler.java b/concurrent/SettingDefaultHandler.java similarity index 93% rename from threads/SettingDefaultHandler.java rename to concurrent/SettingDefaultHandler.java index 3b07bbf8..ed45f8f3 100644 --- a/threads/SettingDefaultHandler.java +++ b/concurrent/SettingDefaultHandler.java @@ -1,4 +1,4 @@ -// threads/SettingDefaultHandler.java +// concurrent/SettingDefaultHandler.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/threads/SingleThreadExecutor.java b/concurrent/SingleThreadExecutor.java similarity index 97% rename from threads/SingleThreadExecutor.java rename to concurrent/SingleThreadExecutor.java index 5515d98c..705e7932 100644 --- a/threads/SingleThreadExecutor.java +++ b/concurrent/SingleThreadExecutor.java @@ -1,4 +1,4 @@ -// threads/SingleThreadExecutor.java +// concurrent/SingleThreadExecutor.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/threads/SingleThreadExecutor2.java b/concurrent/SingleThreadExecutor2.java similarity index 95% rename from threads/SingleThreadExecutor2.java rename to concurrent/SingleThreadExecutor2.java index f93183bc..2166b9b6 100644 --- a/threads/SingleThreadExecutor2.java +++ b/concurrent/SingleThreadExecutor2.java @@ -1,4 +1,4 @@ -// threads/SingleThreadExecutor2.java +// concurrent/SingleThreadExecutor2.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/threads/SingleThreadExecutor3.java b/concurrent/SingleThreadExecutor3.java similarity index 94% rename from threads/SingleThreadExecutor3.java rename to concurrent/SingleThreadExecutor3.java index 9f5f5897..c90b9505 100644 --- a/threads/SingleThreadExecutor3.java +++ b/concurrent/SingleThreadExecutor3.java @@ -1,4 +1,4 @@ -// threads/SingleThreadExecutor3.java +// concurrent/SingleThreadExecutor3.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/threads/SleepAndPrintTask.java b/concurrent/SleepAndPrintTask.java similarity index 94% rename from threads/SleepAndPrintTask.java rename to concurrent/SleepAndPrintTask.java index afedb375..421d3f80 100644 --- a/threads/SleepAndPrintTask.java +++ b/concurrent/SleepAndPrintTask.java @@ -1,4 +1,4 @@ -// threads/SleepAndPrintTask.java +// concurrent/SleepAndPrintTask.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/threads/Summing.java b/concurrent/Summing.java similarity index 98% rename from threads/Summing.java rename to concurrent/Summing.java index 3086be1f..a1be4bbf 100644 --- a/threads/Summing.java +++ b/concurrent/Summing.java @@ -1,4 +1,4 @@ -// threads/Summing.java +// concurrent/Summing.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/threads/Summing2.java b/concurrent/Summing2.java similarity index 97% rename from threads/Summing2.java rename to concurrent/Summing2.java index ccc0f1ba..eb214572 100644 --- a/threads/Summing2.java +++ b/concurrent/Summing2.java @@ -1,4 +1,4 @@ -// threads/Summing2.java +// concurrent/Summing2.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/threads/Summing3.java b/concurrent/Summing3.java similarity index 97% rename from threads/Summing3.java rename to concurrent/Summing3.java index 9d0e446e..623d35c5 100644 --- a/threads/Summing3.java +++ b/concurrent/Summing3.java @@ -1,4 +1,4 @@ -// threads/Summing3.java +// concurrent/Summing3.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/threads/Summing4.java b/concurrent/Summing4.java similarity index 95% rename from threads/Summing4.java rename to concurrent/Summing4.java index c068e55d..49940bf3 100644 --- a/threads/Summing4.java +++ b/concurrent/Summing4.java @@ -1,4 +1,4 @@ -// threads/Summing4.java +// concurrent/Summing4.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/threads/SwallowedException.java b/concurrent/SwallowedException.java similarity index 92% rename from threads/SwallowedException.java rename to concurrent/SwallowedException.java index bb34879b..0596711a 100644 --- a/threads/SwallowedException.java +++ b/concurrent/SwallowedException.java @@ -1,4 +1,4 @@ -// threads/SwallowedException.java +// concurrent/SwallowedException.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/threads/SyncObject.java b/concurrent/SyncObject.java similarity index 96% rename from threads/SyncObject.java rename to concurrent/SyncObject.java index c70e949a..c5f59b33 100644 --- a/threads/SyncObject.java +++ b/concurrent/SyncObject.java @@ -1,4 +1,4 @@ -// threads/SyncObject.java +// concurrent/SyncObject.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/threads/SynchronizedEvenSupplier.java b/concurrent/SynchronizedEvenSupplier.java similarity index 93% rename from threads/SynchronizedEvenSupplier.java rename to concurrent/SynchronizedEvenSupplier.java index 20555f37..99c6f55f 100644 --- a/threads/SynchronizedEvenSupplier.java +++ b/concurrent/SynchronizedEvenSupplier.java @@ -1,4 +1,4 @@ -// threads/SynchronizedEvenSupplier.java +// concurrent/SynchronizedEvenSupplier.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/threads/ThreadSize.java b/concurrent/ThreadSize.java similarity index 96% rename from threads/ThreadSize.java rename to concurrent/ThreadSize.java index 6002df84..7ee1acd5 100644 --- a/threads/ThreadSize.java +++ b/concurrent/ThreadSize.java @@ -1,4 +1,4 @@ -// threads/ThreadSize.java +// concurrent/ThreadSize.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/threads/ToastOMatic.java b/concurrent/ToastOMatic.java similarity index 99% rename from threads/ToastOMatic.java rename to concurrent/ToastOMatic.java index 89821469..a27f8820 100644 --- a/threads/ToastOMatic.java +++ b/concurrent/ToastOMatic.java @@ -1,4 +1,4 @@ -// threads/ToastOMatic.java +// concurrent/ToastOMatic.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/threads/WorkStealingPool.java b/concurrent/WorkStealingPool.java similarity index 96% rename from threads/WorkStealingPool.java rename to concurrent/WorkStealingPool.java index 13c8d6b4..0cb922e7 100644 --- a/threads/WorkStealingPool.java +++ b/concurrent/WorkStealingPool.java @@ -1,4 +1,4 @@ -// threads/WorkStealingPool.java +// concurrent/WorkStealingPool.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/threads/restaurant2/RestaurantWithQueues.java b/concurrent/restaurant2/RestaurantWithQueues.java similarity index 99% rename from threads/restaurant2/RestaurantWithQueues.java rename to concurrent/restaurant2/RestaurantWithQueues.java index 30101d7f..8cc184f7 100644 --- a/threads/restaurant2/RestaurantWithQueues.java +++ b/concurrent/restaurant2/RestaurantWithQueues.java @@ -1,4 +1,4 @@ -// threads/restaurant2/RestaurantWithQueues.java +// concurrent/restaurant2/RestaurantWithQueues.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information.