Imagine you want to compare a big hand full of binary files (e.g audio, video or image files). Roughly speaking that are n2/2 comparisons. If the files or the amount is large this is quite costly. If you have multiple processors available is is prudent to split the workload into different threads.
„Concurrent file processing with java“ weiterlesen