资源简介


资源截图

代码片段和文件信息

/*
授权声明:
本源码系《Java多线程编程实战指南(设计模式篇)》一书(ISBN:978-7-121-27006-2,以下称之为“原书”)的配套源码,
欲了解本代码的更多细节,请参考原书。
本代码仅为原书的配套说明之用,并不附带任何承诺(如质量保证和收益)。
以任何形式将本代码之部分或者全部用于营利性用途需经版权人书面同意。
将本代码之部分或者全部用于非营利性用途需要在代码中保留本声明。
任何对本代码的修改需在代码中以注释的形式注明修改人、修改时间以及修改内容。
本代码可以从以下网址下载:
https://github.com/Viscent/javamtp
http://www.broadview.com.cn/27006
*/

package io.github.viscent.mtpattern.ch1;

public class JavaThreadAnywhere {

public static void main(String[] args) {
System.out.println(“The main method was executed by thread:“
    + Thread.currentThread().getName());
Helper helper = new Helper(“Java Thread AnyWhere“);
helper.run();
}

static class Helper implements Runnable {
private final String message;

public Helper(String message) {
this.message = message;
}

private void doSomething(String me

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-08-19 12:58  javamtp-master\
     目录           0  2018-08-19 12:58  javamtp-master\JavaConcurrencyPatternInAction\
     文件         535  2018-08-19 12:58  javamtp-master\JavaConcurrencyPatternInAction\.classpath
     文件          10  2018-08-19 12:58  javamtp-master\JavaConcurrencyPatternInAction\.gitignore
     文件         389  2018-08-19 12:58  javamtp-master\JavaConcurrencyPatternInAction\.project
     文件         742  2018-08-19 12:58  javamtp-master\JavaConcurrencyPatternInAction\LICENSE
     目录           0  2018-08-19 12:58  javamtp-master\JavaConcurrencyPatternInAction\lib\
     文件      280983  2018-08-19 12:58  javamtp-master\JavaConcurrencyPatternInAction\lib\commons-net-3.3.jar
     文件     1473091  2018-08-19 12:58  javamtp-master\JavaConcurrencyPatternInAction\lib\hsqldb.jar
     文件      489883  2018-08-19 12:58  javamtp-master\JavaConcurrencyPatternInAction\lib\log4j-1.2.17.jar
     文件       88575  2018-08-19 12:58  javamtp-master\JavaConcurrencyPatternInAction\lib\servlet-api.jar
     目录           0  2018-08-19 12:58  javamtp-master\JavaConcurrencyPatternInAction\src\
     目录           0  2018-08-19 12:58  javamtp-master\JavaConcurrencyPatternInAction\src\io\
     目录           0  2018-08-19 12:58  javamtp-master\JavaConcurrencyPatternInAction\src\io\github\
     目录           0  2018-08-19 12:58  javamtp-master\JavaConcurrencyPatternInAction\src\io\github\viscent\
     目录           0  2018-08-19 12:58  javamtp-master\JavaConcurrencyPatternInAction\src\io\github\viscent\mtpattern\
     目录           0  2018-08-19 12:58  javamtp-master\JavaConcurrencyPatternInAction\src\io\github\viscent\mtpattern\ch1\
     文件        1482  2018-08-19 12:58  javamtp-master\JavaConcurrencyPatternInAction\src\io\github\viscent\mtpattern\ch1\JavaThreadAnywhere.java
     文件        1649  2018-08-19 12:58  javamtp-master\JavaConcurrencyPatternInAction\src\io\github\viscent\mtpattern\ch1\JavaThreadCreationAndRun.java
     文件        1017  2018-08-19 12:58  javamtp-master\JavaConcurrencyPatternInAction\src\io\github\viscent\mtpattern\ch1\NonThreadSafeCounter.java
     文件        1065  2018-08-19 12:58  javamtp-master\JavaConcurrencyPatternInAction\src\io\github\viscent\mtpattern\ch1\ThreadCreationViaSubclass.java
     文件        1070  2018-08-19 12:58  javamtp-master\JavaConcurrencyPatternInAction\src\io\github\viscent\mtpattern\ch1\ThreadSafeCounter.java
     文件        1878  2018-08-19 12:58  javamtp-master\JavaConcurrencyPatternInAction\src\io\github\viscent\mtpattern\ch1\WorkerThread.java
     目录           0  2018-08-19 12:58  javamtp-master\JavaConcurrencyPatternInAction\src\io\github\viscent\mtpattern\ch10\
     目录           0  2018-08-19 12:58  javamtp-master\JavaConcurrencyPatternInAction\src\io\github\viscent\mtpattern\ch10\tss\
     文件        2733  2018-08-19 12:58  javamtp-master\JavaConcurrencyPatternInAction\src\io\github\viscent\mtpattern\ch10\tss\ManagedThreadLocal.java
     目录           0  2018-08-19 12:58  javamtp-master\JavaConcurrencyPatternInAction\src\io\github\viscent\mtpattern\ch10\tss\example\
     文件        2268  2018-08-19 12:58  javamtp-master\JavaConcurrencyPatternInAction\src\io\github\viscent\mtpattern\ch10\tss\example\ImplicitParameterPassing.java
     文件        1564  2018-08-19 12:58  javamtp-master\JavaConcurrencyPatternInAction\src\io\github\viscent\mtpattern\ch10\tss\example\ManagedThreadLocalClient.java
     文件        2629  2018-08-19 12:58  javamtp-master\JavaConcurrencyPatternInAction\src\io\github\viscent\mtpattern\ch10\tss\example\SmsVerficationCodeSender.java
     文件        1315  2018-08-19 12:58  javamtp-master\JavaConcurrencyPatternInAction\src\io\github\viscent\mtpattern\ch10\tss\example\ThreadPrivateMember.java
............此处省略151个文件信息

评论

共有 条评论