摘要:在线程同步中 当一个方法被标示为synchronize,则其他线程不可同时再访问,但可以访问其他的方法和属性,并且可改变数据。实例:package com.exmaple.Thread;public class Test6 implements Runnable{ /** * 在线程同步中 当...
阅读全文
posted @ 2015-06-16 13:31
posted @ 2015-06-16 13:31
posted @ 2015-06-16 13:19
posted @ 2015-06-16 13:07
posted @ 2015-06-16 12:58