1 /* This test case tests the thread joining for a threadDSM library */
2 public class Atomic5 extends Thread {
6 public static void main(String[] st) {
7 int mid = (128<<24)|(195<<16)|(175<<8)|70;
16 at5 = global new Atomic5[4];
19 for(i = 0; i < 4; i++) {
20 at5[i] = global new Atomic5();
21 at5[i].team = global new People[2];
22 at5[i].team[0] = global new People();
23 at5[i].team[1] = global new People();
24 age = global new Integer(35);
25 at5[i].team[0].age = age;
26 at5[i].team[1].age = age;
28 b = at5[1].team[0].getAge();
31 System.printString("\n");
33 age = global new Integer(70);
34 at5[1].team[1].age = age;
35 c = at5[1].team[1].getAge();
36 //at5[20].team[1].age = age;
39 System.printString("\n");
40 System.printString("Starting\n");
41 for(i = 0 ; i< 4; i++) {
47 for(i = 0; i< 4; i++) {
53 System.printString("Finished\n");
65 ag = team[1].getAge();
70 System.printString("Gets Pension");
71 System.printString("\n");
73 System.printString("Gets No Pension");
74 System.printString("\n");
85 public People(Integer age) {
89 public void setAge(Integer a) {
94 return age.intValue();
97 public boolean isSenior() {
98 if(this.getAge() > 65)