Search:

Type: Posts; User: Nick7

Search: Search took 0.43 seconds.

  1. Replies
    5
    Views
    435

    Re: java concurrency problem

    Ok, I added println to the run:


    public void run()
    {
    System.out.println(Thread.currentThread());

    for(int i = startIndex; i < endIndex; i++)
    {
    ...
  2. Replies
    5
    Views
    435

    Re: java concurrency problem

    I want to multiply an array using two threads (which should be done using two cores of a C2D CPU).


    The program prints, for example: "0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, Finished,...
  3. Replies
    5
    Views
    435

    java concurrency problem

    Hi ! I want to make a simple math operations on a vector(array) using two cores of my CPU. The program doesn't work correctly. Please explain me how to solve my problem.



    public class...
Results 1 to 3 of 3