Created
January 14, 2018 07:17
-
-
Save GitEliteNovice/2031f6f77706530e7eab2bd4be342002 to your computer and use it in GitHub Desktop.
Runnable class
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
package nation.know.aryan.com.poolofthreads.runnable; | |
import nation.know.aryan.com.poolofthreads.threadPoolClass.MyPool; | |
/** | |
* Created by user on 11/1/18. | |
*/ | |
public class MyRunnable implements Runnable { | |
MyPool info; | |
int value; | |
public MyRunnable(int value, MyPool context) { | |
info= context; | |
this.value=value; | |
} | |
@Override | |
public void run() { | |
try { | |
Thread.sleep(500); | |
} catch (InterruptedException e) { | |
e.printStackTrace(); | |
} | |
info.PasInfofromRunnable(value); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment