Results 1 to 2 of 2
  1. #1
    yamarules is offline Member
    Join Date
    Feb 2012
    Posts
    1
    Rep Power
    0

    Default Single Thread Optimisation

    Hello Folks

    Needless to that am new here and Java

    As part of testing using TestNG for async methods, am looking for a more optimized method for handling latency. So, we are trying to split a given test method into parts where intermediate waits might be required. Is there is a way that a master method can add all these test parts into a queue, retrieve the desired piece at will and execute and push the intermediate objects back to the queue so that the same might be retrieved back on execution of next piece of code?
    If there are available annotations which I can use over my methods to handle that, that would be great (since am looking to create annotations to handle the same). else, a better approach is always welcome

    Regards
    V

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,816
    Rep Power
    25

    Default Re: Single Thread Optimisation

    Have you looked at the classes in the java.util.concurrent package?

Similar Threads

  1. log and exp optimisation
    By malaguena in forum Advanced Java
    Replies: 20
    Last Post: 06-14-2011, 03:03 PM
  2. Main Thread not waiting for grand child thread to finish
    By prashanthn in forum Threads and Synchronization
    Replies: 3
    Last Post: 06-07-2011, 10:26 AM
  3. Single thread to handle queue based logging
    By impacted in forum Threads and Synchronization
    Replies: 5
    Last Post: 04-28-2011, 11:28 PM
  4. Single thread to handle queue based logging
    By impacted in forum New To Java
    Replies: 4
    Last Post: 04-28-2011, 11:25 PM
  5. Optimisation of a java equijoin implimentation
    By int80 in forum Advanced Java
    Replies: 3
    Last Post: 04-16-2010, 06:32 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •