Threads and Executors

From CSE231 Wiki
Jump to navigation Jump to search

Threads

SimpleThreadFactory

implement Thread newThread(Runnable target)

just 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)

Executors

XNucleobaseCount

XQuicksort