Skip to content

Instantly share code, notes, and snippets.

@GitEliteNovice
Created January 14, 2018 07:17
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 GitEliteNovice/2031f6f77706530e7eab2bd4be342002 to your computer and use it in GitHub Desktop.
Save GitEliteNovice/2031f6f77706530e7eab2bd4be342002 to your computer and use it in GitHub Desktop.
Runnable class
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