Skip to content

Tychirab/multithreading_array_sum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

multithreading_array_sum

I utilized Python Multithreading module to perform parallel array summing. One master thread aggregates and sums the result of n slave-threads where each slave thread sums a different range of values in an array of 1000 random integers (programmed to generate 1000 random integers to populate the array).

The number of slave-threads is a parameter which the user can change. For example, if the user chooses 4 slave threads, each slave thread will sum 1000/4 = 250 numbers. If the user chooses 3 slave threads, the first two may each sum 333 numbers and the third slave thread sums the rest 334 numbers.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages