Skip to content

pmrochko/centroid-multithreading

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Centroid Multithreading

Task:
Find the center of gravity for a set of points on the plane given coordinates and a positive weight.

  1. A list of points is generated or read from a file.
    image
  2. Enter the number of generated points (if random point generation is selected).
  3. The center of gravity is calculated first with one main thread,
    then by many parallel threads (2-6)
    and the result is displayed on the console along with the calculation time.
    image
  4. Finally, you can save the generated list of points to a file.
    image

Graphs of execution time results with different number of threads

10k points:

image

100k points:

image

1kk points:

image

10kk points:

image

CPU: Intel Core i7-8665U (4 cors, 8 threads)

About

Java console application in which you can calculate the center of gravity of points

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages