资源简介

多线程依次循环打印26个英文字母

资源截图

代码片段和文件信息

package com.zhangjinpeng;


public class AlphabetUtil {

public static String printAlphabet(CustomRingArrayQueue ringQueue) {
String alphabet = ringQueue.dequeue();

if (alphabet == null) {
while (alphabet == null) {
alphabet = ringQueue.dequeue();
}
}

return alphabet;
}

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2016-02-28 21:41  ThreadAndDataStructure\
     文件         301  2016-02-28 21:41  ThreadAndDataStructure\.classpath
     文件         398  2016-02-28 21:41  ThreadAndDataStructure\.project
     目录           0  2016-02-28 21:41  ThreadAndDataStructure\.settings\
     文件         629  2016-02-28 21:41  ThreadAndDataStructure\.settings\org.eclipse.jdt.core.prefs
     目录           0  2016-02-28 21:41  ThreadAndDataStructure\bin\
     目录           0  2016-02-29 12:12  ThreadAndDataStructure\bin\com\
     目录           0  2016-02-29 12:12  ThreadAndDataStructure\bin\com\zhangjinpeng\
     文件         921  2016-03-02 03:44  ThreadAndDataStructure\bin\com\zhangjinpeng\AlphabetUtil.class
     文件        2736  2016-03-01 19:50  ThreadAndDataStructure\bin\com\zhangjinpeng\CustomRingArrayQueue.class
     文件        2005  2016-03-03 13:03  ThreadAndDataStructure\bin\com\zhangjinpeng\Monitor.class
     文件         336  2016-03-01 20:56  ThreadAndDataStructure\bin\com\zhangjinpeng\Task.class
     文件        2750  2016-03-02 04:11  ThreadAndDataStructure\bin\com\zhangjinpeng\TaskA.class
     文件        2100  2016-03-02 04:11  ThreadAndDataStructure\bin\com\zhangjinpeng\TaskB.class
     文件        1995  2016-03-02 04:12  ThreadAndDataStructure\bin\com\zhangjinpeng\TaskC.class
     文件         456  2016-03-01 23:50  ThreadAndDataStructure\bin\com\zhangjinpeng\TaskOrder.class
     文件        2502  2016-03-03 13:05  ThreadAndDataStructure\bin\com\zhangjinpeng\TestDemo.class
     目录           0  2016-02-28 21:41  ThreadAndDataStructure\src\
     目录           0  2016-02-28 21:42  ThreadAndDataStructure\src\com\
     目录           0  2016-02-28 21:42  ThreadAndDataStructure\src\com\zhangjinpeng\
     文件         322  2016-03-02 03:44  ThreadAndDataStructure\src\com\zhangjinpeng\AlphabetUtil.java
     文件        3885  2016-03-01 19:50  ThreadAndDataStructure\src\com\zhangjinpeng\CustomRingArrayQueue.java
     文件        1463  2016-03-03 13:03  ThreadAndDataStructure\src\com\zhangjinpeng\Monitor.java
     文件         195  2016-03-01 20:56  ThreadAndDataStructure\src\com\zhangjinpeng\Task.java
     文件        1290  2016-03-02 04:11  ThreadAndDataStructure\src\com\zhangjinpeng\TaskA.java
     文件         830  2016-03-02 04:11  ThreadAndDataStructure\src\com\zhangjinpeng\TaskB.java
     文件         768  2016-03-02 04:12  ThreadAndDataStructure\src\com\zhangjinpeng\TaskC.java
     文件         259  2016-03-01 23:50  ThreadAndDataStructure\src\com\zhangjinpeng\TaskOrder.java
     文件        2106  2016-03-03 13:05  ThreadAndDataStructure\src\com\zhangjinpeng\TestDemo.java

评论

共有 条评论