Skip to content

SabaFathi/JavaThreadExamination

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

JavaThreadExamination

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

Light-Thread

2- used ExecutorService, for light task

Light-ExecutorService

3- directly used Thread, for heavy task

Heavy-Thread

4- used ExecutorService, for heavy task

Heavy-ExecutorService

About

Comparison between Parallel and Sequential Processing + Visualization

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages