1234567891011121314151617 |
- public class Main {
- public static void main (String argv[]) {
- Thread tA, tB;
- boolean doYield = false;
- if (doYield)
- System.out.println("Do yield");
- else
- System.out.println("NOT do yield");
- tA = new DispTask(doYield, "tA");
- tB = new DispTask(doYield, "tB");
- tA.start();
- tB.start();
- }
- }
|