Difference between revisions of "Threads and Executors"
Jump to navigation
Jump to search
Line 7: | Line 7: | ||
Do *NOT* [https://docs.oracle.com/javase/8/docs/api/java/lang/Thread.html#start-- start] this thread. | Do *NOT* [https://docs.oracle.com/javase/8/docs/api/java/lang/Thread.html#start-- start] this thread. | ||
− | Certainly, do *NOT* https://docs.oracle.com/javase/8/docs/api/java/lang/Thread.html#run-- run] this thread. | + | Certainly, do *NOT* [https://docs.oracle.com/javase/8/docs/api/java/lang/Thread.html#run-- run] this thread. |
[https://en.wikipedia.org/wiki/Do_not_pass_Go._Do_not_collect_$200. Do not pass go. Do not collect $200.] | [https://en.wikipedia.org/wiki/Do_not_pass_Go._Do_not_collect_$200. Do not pass go. Do not collect $200.] |
Revision as of 21:35, 24 September 2017
Contents
Threads
class SimpleThreadFactory
implement Thread newThread(Runnable target)
Create and return a new thread with the Runnable parameter you are passed.
Do *NOT* start this thread.
Certainly, do *NOT* run this thread.
Do not pass go. Do not collect $200.
TAgeSum
implement int sumUpperLowerSplit(int[] ages, ThreadFactory threadFactory)