Comparison between Parallel and Sequential Processing + Visualization
To compare parallel and sequential processing, 4 parameters were considered: workload (light/heavy task), Task Frequency, number of threads, type of thread management (directly use Thread/use ExecutorService).
So 4 scenarios were investigated: 1- directly used Thread, for light task 2- used ExecutorService, for light task 3- directly used Thread, for heavy task 4- used ExecutorService, for heavy task
In each scenario, 2 charts were drawn: First, the number of threads is fixed and task frequency varies. Second, task frequency is fixed and the number of threads varies.
This experiment was conducted with 4 CPU cores and The results are as follows: *note that "ArrayLength" is equal to task frequency.
1- directly used Thread, for light task
2- used ExecutorService, for light task
3- directly used Thread, for heavy task
4- used ExecutorService, for heavy task