Search:

Type: Posts; User: vasemax

Search: Search took 0.10 seconds.

  1. Replies
    10
    Views
    1,688

    Re: Objects communication issue

    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...
  2. Replies
    10
    Views
    1,688

    Re: Objects communication issue

    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...
  3. Replies
    10
    Views
    1,688

    Re: Objects communication issue

    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.
  4. Replies
    10
    Views
    1,688

    Re: Objects communication issue

    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...
  5. Replies
    10
    Views
    1,688

    Re: Objects communication issue

    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...
  6. Replies
    10
    Views
    1,688

    Objects communication issue

    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[]...
Results 1 to 6 of 6