java???????????????????
???????????? ???????[ 2017/3/15 10:16:59 ] ??????????????????? Java
????Lock ??????????? synchronized ???????????????????????????????????????????????????в??????????????????????? Condition ????
????public class Storage<T> {
????// ????洢??
????private final int MAX_SIZE = 1000;
????private int storageSize = 100;
????private Object[] data;
????private int top = 0;
????private Lock lock = new ReentrantLock();
????private Condition producerCon = lock.newCondition();
????private Condition consumerCon = lock.newCondition();
????public Storage(int size) {
????size = size <= 0 ? storageSize : size;
????size = size > this.MAX_SIZE ? this.MAX_SIZE : size;
????this.storageSize = size;
????data = new Object[this.storageSize];
????}
????public int getStorageSize() {
????return storageSize;
????}
????public T pop() throws InterruptedException {
????T t = null;
????lock.lock();
????try {
????while (top == 0) {
????//????????
????consumerCon.await();
????}
????top--;
????t = (T) data[top];
????//??????????
????producerCon.signal();
????} finally {
????lock.unlock();
????}
????return t;
????}
????public void push(T t) throws InterruptedException {
????lock.lock();
????try {
????while (top == storageSize) {
????//????????
????producerCon.await();
????}
????data[top++] = t;
????//??????????
????consumerCon.signal();
????} finally {
????lock.unlock();
????}
????}
????}
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????
??????
Java???????????Щ???????????????Java????????????????Java?б???Map????????Java Web???????????????Java??????????????д?????Java????????7???????????????????????(java .net ?????)???Java??????????Python??????Java webdriver??λ????????′????е?????Java??д??????????????????Java???????????????JavaScript????????????Java?????????????????? Java???????10??????????????Java?м????????????????java???????ü???????????м???????????????????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11????????
?????????App Bug???????????????????????Jmeter?????????QC??????APP????????????????app?????е????????jenkins+testng+ant+webdriver??????????????JMeter????HTTP???????Selenium 2.0 WebDriver ??????