1 public class Atomic5 extends Thread {
5 public static void main(String[] st) {
6 int mid = (128<<24)|(195<<16)|(175<<8)|70;
13 at5 = global new Atomic5[4];
16 for(int i = 0; i < 4; i++) {
17 at5[i] = global new Atomic5();
18 at5[i].team = global new People[2];
19 at5[i].team[0] = global new People();
20 at5[i].team[1] = global new People();
21 age = global new Integer(35);
22 at5[i].team[0].age = age;
24 b = at5[1].team[0].getAge();
27 System.printString("\n");
29 age = global new Integer(70);
30 at5[1].team[1].age = age;
31 c = at5[1].team[1].getAge();
34 System.printString("\n");
35 System.printString("Starting\n");
36 for(int i = 0 ; i< 4; i++) {
43 for(int i = 0; i< 4; i++) {
50 System.printString("Finished\n");
61 ag = team[1].getAge();
66 System.printString(" gets Pension");
67 System.printString("\n");
70 System.printString("Atomic5() Inside the run program");
71 System.printString("\n");
73 for(int i=0; i<4 ; i++) {
86 public People(Integer age) {
90 public void setAge(Integer a) {
95 return age.intValue();
98 public boolean isSenior() {
99 if(this.getAge() > 65)