2006-12-19 回答
package p1; /** * 在主线程中开启3个子线程,分别实现打印字符串 012 345 678 (3) "abc"-->"cba"-->"bac" * * @author administrator * */ public class openthreethread_three extends thread { private static object lock = new object(); private static int p = 0; private static int[] notifyarr = { 1, 2, 3, 3, 2, 1, 2, 1, 3 }; public static void main(string[] args) { openthreethread_three a = new openthreethread_three() { public void run() { for (int i = 0; i