Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- OnClickListener listenerRegexThread = new OnClickListener() {
- @Override
- public void onClick(View view) {
- /* Run 10 threads for 120 seconds */
- int NUM_THREADS = 10, RUNNING_TIME = 120;
- for(int i = 0; i < 2; ++i){
- new RegexThread();
- }
- try {
- Thread.sleep(1000*RUNNING_TIME);
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
- };
- findViewById(R.id.startRegex).setOnClickListener(listenerRegexThread);
Advertisement
Add Comment
Please, Sign In to add comment