Skip to content
Snippets Groups Projects
Routines.java 317 B
Newer Older
Jan Kožusznik's avatar
Jan Kožusznik committed
package lab;

public class Routines {

	
	
	public static void sleep(int timeInMilisenonds) {
		try {
			Thread.sleep(timeInMilisenonds);
		} catch (InterruptedException e) {
			Thread.currentThread().interrupt();
		}
	}
	
	public static boolean isEndOfThreadRequestedByJavaVM() {
		return Thread.interrupted();
	}
}