Skip to content

Instantly share code, notes, and snippets.

@ztirom
Created February 11, 2017 14:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ztirom/dbd2805d5287630ecc67a46ca4c33c5d to your computer and use it in GitHub Desktop.
Save ztirom/dbd2805d5287630ecc67a46ca4c33c5d to your computer and use it in GitHub Desktop.
Thread Methods
public static void fast()
{
info('T2: Fast - started second!');
}
public static void slow()
{
sleep(15000);
info('T1: Slow, blocking - was started first!');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment