Ok we are going somewhere. This is the half of the solution I'm looking.
After I collect the points I send them to getF(point[]) and collect the results.
Ok so far.
Every alg object which...
Type: Posts; User: vasemax
Ok we are going somewhere. This is the half of the solution I'm looking.
After I collect the points I send them to getF(point[]) and collect the results.
Ok so far.
Every alg object which...
The thread waiting has been implemented in getF(point[]) method.
Every alg object sends one point to getF(point) and waits the return result.
How can I gather all points from every alg object? If...
One other thing to consider is that the multithreaded implementation works well in getF(point[]), so I don't have to consider about multithreaded operation. I just have to send all points together.
every alg object is calling the one threaded version of getF(point). That's normal.
If I want it to be multithreaded, I should have an object which gathers every point from alg objects when they...
Ok, Ill try again.
public abstract class optimizer{
public point[] getF(point[] a_points){ calculates all points multithreaded}
public point getF(point a_point){ makes an array of one...
Hello. I'm new in OOP so this might have an easy answer.
I have an abstract class with a lot of functionality. The functionality I'm interested in are 2 methods.
One public object[]...