Created
June 15, 2014 20:05
-
-
Save draliatas/a0e1bd7b56790c52b6a7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static void main(String[] args) { | |
| Runnable r = () -> { | |
| for(int s=0; s<1000_000; s++){ | |
| System.out.println("count ali : " + s); | |
| }; | |
| }; | |
| Runnable r2 = () -> { | |
| for(int s=0; s<1000_000; s++){ | |
| System.out.println("count veli : " + s); | |
| }; | |
| }; | |
| Thread t = new Thread(r); | |
| t.start(); | |
| Thread t2 = new Thread(r2); | |
| t2.start(); | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment