Created
October 26, 2015 19:53
-
-
Save ted80/e9d6e2937c797ff49b94 to your computer and use it in GitHub Desktop.
This file contains 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 Object ditIsEenLock = new Object(); | |
public void threadA() | |
{ | |
lock(ditIsEenLock) | |
{ | |
while(true) | |
{ | |
//endless loop | |
} | |
} | |
} | |
public void threadB() | |
{ | |
lock(ditIsEenLock) | |
{ | |
//kan niet in komen | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment