Suspending the JVM for a limited amount of time

Posted by Robert Munteanu on Stack Overflow See other posts from Stack Overflow or by Robert Munteanu
Published on 2010-04-20T10:33:31Z Indexed on 2010/04/20 12:23 UTC
Read the original article Hit count: 161

Filed under:
|

How can I suspend the execution of a JVM for a configurable amount of time, similar to want happens on a full, serial, Garbage Collection? I want to test some edge cases but it's difficult to create the exact pauses I need with manually generating garbage + System.gc().

© Stack Overflow or respective owner

Related posts about jvm

Related posts about java