I am working on a simple sieve algorithm , and the main implementation works fine for me. What I'm currently struggling with is a way to split and distribute computing across multiple processors.
I know that this will require storing the actual sieve in the shared memory or text file area, but how could one divide the calculation-related steps.
Any guidance would help. Thank!
Divide the numbers into sections of equal size, each processor will be responsible for one of these sections.
( ) , . .
, , , , .
, .
2, 3, 5 ..
, 4, 4, , , " t - , , , , .
, , - , , (, bitwise-AND) , ( API), , , , , , , , , , . - , , .
Source: https://habr.com/ru/post/1530409/More articles:Is it possible to run python in a .net application? - pythoninternal join with m / n relationship tables and the sum of a specific column - sqlИнформация о пользователе из ВКонтакте в Android - androidThe font does not appear in the IntelliJ dialog to select the font - linuxng-html-bind skip style tag - angularjs@ font-face fonts do not appear consistently on all versions of Android - androidEratosthenes Parallel Sieve - Java multithreading - javaWhy am I getting an InvalidCastException when using an expression from a static field? - c #Extend Magento REST API in custom module - restXamarin Android deserializes local json file - jsonAll Articles