上一页 1 ··· 7 8 9 10 11 12 13 下一页
摘要: 阅读全文
posted @ 2021-11-28 17:14 yydssc 阅读(25) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-11-27 22:31 yydssc 阅读(33) 评论(0) 推荐(0)
摘要: package com.study.cas;import sun.misc.Unsafe;import java.lang.reflect.Field;public class CounterUnsafe { volatile int i = 0; private static Unsafe uns 阅读全文
posted @ 2021-11-27 18:58 yydssc 阅读(31) 评论(0) 推荐(0)
摘要: import java.util.List;import java.util.concurrent.LinkedBlockingQueue;import java.util.concurrent.RejectedExecutionHandler;import java.util.concurrent 阅读全文
posted @ 2021-11-23 21:27 yydssc 阅读(35) 评论(0) 推荐(0)
摘要: public class Demo5 { /** threadLocal变量,每个线程都有一个副本,互不干扰 */ public static ThreadLocal<String> value = new ThreadLocal<>(); /** * threadlocal测试 * * @thro 阅读全文
posted @ 2021-11-22 21:29 yydssc 阅读(34) 评论(0) 推荐(0)
摘要: import java.util.concurrent.locks.LockSupport;/** 三种线程协作通信的方式:suspend/resume、wait/notify、park/unpark */public class Demo6 { /** 包子店 */ public static O 阅读全文
posted @ 2021-11-21 21:49 yydssc 阅读(208) 评论(0) 推荐(0)
摘要: package file.spilt.merge;import java.io.BufferedReader;import java.io.File;import java.io.FileReader;import java.io.IOException;import java.util.Prope 阅读全文
posted @ 2021-11-16 22:03 yydssc 阅读(79) 评论(0) 推荐(0)
摘要: package file.spilt.merge;import java.io.File;import java.io.FileInputStream;import java.io.FileNotFoundException;import java.io.FileOutputStream;impor 阅读全文
posted @ 2021-11-16 22:02 yydssc 阅读(113) 评论(0) 推荐(0)
摘要: package file.spilt.merge;import java.io.File;import java.io.FileInputStream;import java.io.FileNotFoundException;import java.io.FileOutputStream;impor 阅读全文
posted @ 2021-11-16 22:01 yydssc 阅读(187) 评论(0) 推荐(0)
摘要: public class FileSend { //文件发送者 客户端 public static void main(String[] args) throws IOException { Socket socket = new Socket("127.0.0.1",9999); System.o 阅读全文
posted @ 2021-11-16 21:48 yydssc 阅读(182) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 13 下一页