摘要: 初识java多线程编程 多线程编程实现的三种方式 Thread class 继承Thread类 Runnable 接口 实现Runnable接口 Callable 接口 实现Callable接口 继承Thread类(多线程下载图片) public class ThreadDownload exten 阅读全文
posted @ 2021-09-07 23:24 一纸千痕 阅读(29) 评论(0) 推荐(0)
摘要: 多人在线聊天基于(UDP) 发送端 public class TalkSend implements Runnable { DatagramSocket socket = null; BufferedReader reader = null; private int fromPort; privat 阅读全文
posted @ 2021-09-06 22:28 一纸千痕 阅读(38) 评论(0) 推荐(0)
摘要: mysql慢查询分析 什么叫做慢查询,如何可以查到慢查询的记录 顾名思义慢查询就是查询的语句反应时间超过阀值的时间,设置慢查询的全局配置就需要在配置文件my.cnf slow_query_log=1: #是否开启慢查询日志,1表示开启,0表示关闭,(默认为关闭) slow_query_time=1 阅读全文
posted @ 2021-08-29 22:43 一纸千痕 阅读(194) 评论(0) 推荐(0)
摘要: markdown学习 二级标题 三级标题 四级标题 字体 hello,world hello,world hello,world hello,wprld 引用 学习笔记 分隔线 图片 超链接 点击跳转到百度 列表 a b c 1 2 表格 名字 性别 生日 代码 java 阅读全文
posted @ 2021-08-29 19:35 一纸千痕 阅读(37) 评论(0) 推荐(0)