Skip to content

Commit ded2d52

Browse files
committed
edits
1 parent f1f6c79 commit ded2d52

33 files changed

+102
-79
lines changed

Checklist.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
[ ] Appendix: Passing & Returning Objects
3333
[X] Appendix: Network Programming
3434
[X] Appendix: Remote Methods
35-
[ ] Appendix: Logging
35+
[X] Appendix: Logging
3636
[X] Appendix: Debugging
3737
[X] Appendix: Profiling and Optimizing
3838
[ ] Appendix: The Benefits and Costs of Static Type Checking

Copyright.txt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,10 @@ ENHANCEMENTS, OR MODIFICATIONS.
6464

6565
Please note that MindView LLC maintains a Web site which
6666
is the sole distribution point for electronic copies of the
67-
Source Code, http://www.MindView.net (and official mirror
68-
sites), where it is freely available under the terms stated
69-
above.
67+
Source Code, https://github.com/BruceEckel/TIJ-Directors-Cut/,
68+
where it is freely available under the terms stated above.
7069

7170
If you think you've found an error in the Source Code,
72-
please submit a correction using the feedback system that
73-
you will find at http://www.MindView.net.
71+
please submit a correction at:
72+
https://github.com/BruceEckel/TIJ-Directors-Cut/issues
7473
///:~

concurrency/CarBuilder.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
//: concurrency/CarBuilder.java
22
// ©2015 MindView LLC: see Copyright.txt
33
// A complex example of tasks working together.
4+
// {OutputFirstAndLast: 10 Lines}
45
import java.util.concurrent.*;
56
import java.util.*;
67
import static net.mindview.util.Print.*;
@@ -209,4 +210,4 @@ public static void main(String[] args) throws Exception {
209210
TimeUnit.SECONDS.sleep(7);
210211
exec.shutdownNow();
211212
}
212-
} /* (Execute to see output) *///:~
213+
} ///:~

concurrency/CountDownLatchDemo.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
//: concurrency/CountDownLatchDemo.java
22
// ©2015 MindView LLC: see Copyright.txt
3+
// {OutputFirstAndLast: 10 Lines}
34
import java.util.concurrent.*;
45
import java.util.*;
56
import static net.mindview.util.Print.*;
@@ -68,4 +69,4 @@ public static void main(String[] args) throws Exception {
6869
print("Launched all tasks");
6970
exec.shutdown(); // Quit when all tasks complete
7071
}
71-
} /* (Execute to see output) *///:~
72+
} ///:~

concurrency/DaemonFromFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ public static void main(String[] args) throws Exception {
2525
print("All daemons started");
2626
TimeUnit.MILLISECONDS.sleep(500); // Run for a while
2727
}
28-
} /* (Execute to see output) *///:~
28+
} ///:~

concurrency/DeadlockingDiningPhilosophers.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// ©2015 MindView LLC: see Copyright.txt
33
// Demonstrates how deadlock can be hidden in a program.
44
// {Args: 0 5 timeout}
5+
// {FirstAndLast: 10 Lines}
56
import java.util.concurrent.*;
67

78
public class DeadlockingDiningPhilosophers {
@@ -27,4 +28,4 @@ public static void main(String[] args) throws Exception {
2728
}
2829
exec.shutdownNow();
2930
}
30-
} /* (Execute to see output) *///:~
31+
} ///:~

concurrency/FastSimulation.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
//: concurrency/FastSimulation.java
22
// ©2015 MindView LLC: see Copyright.txt
3+
// {OutputFirstAndLast: 10 Lines}
34
import java.util.concurrent.*;
45
import java.util.concurrent.atomic.*;
56
import java.util.*;
@@ -49,4 +50,4 @@ public static void main(String[] args) throws Exception {
4950
TimeUnit.SECONDS.sleep(5);
5051
exec.shutdownNow();
5152
}
52-
} /* (Execute to see output) *///:~
53+
} ///:~

concurrency/FixedDiningPhilosophers.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// ©2015 MindView LLC: see Copyright.txt
33
// Dining philosophers without deadlock.
44
// {Args: 5 5 timeout}
5+
// {OutputFirstAndLast: 10 Lines}
56
import java.util.concurrent.*;
67

78
public class FixedDiningPhilosophers {
@@ -31,4 +32,4 @@ public static void main(String[] args) throws Exception {
3132
}
3233
exec.shutdownNow();
3334
}
34-
} /* (Execute to see output) *///:~
35+
} ///:~

concurrency/GreenhouseScheduler.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// Rewriting innerclasses/GreenhouseController.java
44
// to use a ScheduledThreadPoolExecutor.
55
// {Args: 5000}
6+
// {OutputFirstAndLast: 10 Lines}
67
import java.util.concurrent.*;
78
import java.util.*;
89

@@ -163,4 +164,4 @@ public static void main(String[] args) {
163164
gh.repeat(gh.new ThermostatDay(), 0, 1400);
164165
gh.repeat(gh.new CollectData(), 500, 500);
165166
}
166-
} /* (Execute to see output) *///:~
167+
} ///:~

concurrency/HorseRace.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//: concurrency/HorseRace.java
22
// ©2015 MindView LLC: see Copyright.txt
33
// Using CyclicBarriers.
4-
// {ValidateByHand}
4+
// {OutputFirstAndLast: 10 Lines}
55
import java.util.concurrent.*;
66
import java.util.*;
77
import static net.mindview.util.Print.*;
@@ -86,4 +86,4 @@ public static void main(String[] args) {
8686
}
8787
new HorseRace(nHorses, pause);
8888
}
89-
} /* (Execute to see output) *///:~
89+
} ///:~

0 commit comments

Comments
 (0)