求asp.net(vb)写一个简单留言板,用access数据库 要求:用户登陆、留言、查看留言
求asp.net(vb)写一个简单留言板,用access数据库要求:用户登陆、留言、查看留言管理员查看、回复、删除留言...
 求asp.net(vb)写一个简单留言板,用access数据库 要求:用户登陆、留言、查看留言
管理员查看、回复、删除留言 展开
管理员查看、回复、删除留言 展开
2个回答
2015-12-04
展开全部
import java.util.Random;
public class MyThreadLocalTest {
public static final ThreadLocal<Integer> threadLocal = new ThreadLocal<Integer>();
public static void main(String[] args) {
new MyTread().start();
new MyTread().start();
new MyTread().start();
new MyTread().start();
}
}
class MyTread extends Thread implements Runnable {
@Override
public void run() {
int val = (int) (Math.random()*100);
System.out.println("now Thread:" + Thread.currentThread().getName()
+ ";val=" + val);
MyThreadLocalTest.threadLocal.set(val);
try {
Thread.sleep(10000);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
System.out.println("now Thread:" + Thread.currentThread().getName()
+ ";val=" + MyThreadLocalTest.threadLocal.get());
}
}
public class MyThreadLocalTest {
public static final ThreadLocal<Integer> threadLocal = new ThreadLocal<Integer>();
public static void main(String[] args) {
new MyTread().start();
new MyTread().start();
new MyTread().start();
new MyTread().start();
}
}
class MyTread extends Thread implements Runnable {
@Override
public void run() {
int val = (int) (Math.random()*100);
System.out.println("now Thread:" + Thread.currentThread().getName()
+ ";val=" + val);
MyThreadLocalTest.threadLocal.set(val);
try {
Thread.sleep(10000);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
System.out.println("now Thread:" + Thread.currentThread().getName()
+ ";val=" + MyThreadLocalTest.threadLocal.get());
}
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询