Archived

This forum has been archived. Please start a new discussion on GitHub.

why is there only have one message print out?

hello ,I use a demo to test the java thread performance.In my client, i start 100 thread to send a structure which is definded in slice. I circulate the to send the structure 100 000,when the thread was execute completely I would print out a prompt message,but the program only print out one message ,when i change the thread to 2,the message print out twice ,and change to 3,the message also only print once.why?

Comments

  • benoit
    benoit Rennes, France
    Hi,

    It's not clear from description what component prints out the message... Is it the server or the client threads? The best would be to package your simple demo in a zip file and post it here on the forum so that we can have a quick look at it.

    Cheers,
    Benoit.
  • dwayne
    dwayne St. John's, Newfoundland
    Perhaps this FAQ may be relevant.
  • thanks ,i find the problem