- 浏览: 4213 次
- 性别:
- 来自: 杭州
文章列表
webservice实例的应用webservice实例的应用
public class threadDemo1 extends Thread {
int flag;
public threadDemo1(String name, int f) {
super(name);
this.flag = f;
}
public void run() {
char ch;
System.out.println();
System.out.print(getName() + " start: ");
synchronized ("ss") {
if (flag == 0) {
f ...
package com.apach.jb;
public class threadDemo extends Thread {
int flag;
public threadDemo(String name,int f){
super(name);
this.flag=f;
}
public void run(){
char ch;
System.out.println();
System.out.print(getName()+" start: ");
synchronized(this){
if(flag ...