1 public class Simple extends Thread {
3 public Simple(Counting mycount) {
4 this.mycount = mycount;
8 for(int i = 0; i < 10000; i++) {
15 public static void main(String[] args) {
19 int[] mid = new int[2];
20 mid[0] = (128<<24)|(195<<16)|(175<<8)|79; //dw-8
21 mid[1] = (128<<24)|(195<<16)|(175<<8)|73; //dw-5
23 c = global new Counting();
24 s = global new Simple[numthreads];
25 for(int i = 0; i < 2; i++) {
26 s[i] = global new Simple(c);
31 for(int i = 0; i < 2; i++) {
38 for(int i = 0; i < 2; i++) {
49 System.printString("Count = "+finalcount+"\n");