摘要:
package com.anyan;/** * @author anyan * @date 2021/5/4-15:47 */public class ThreadEndTest { public static void main(String[] args) { Thread t=new Thre 阅读全文
posted @ 2021-05-04 17:11
安妍
阅读(66)
评论(0)
推荐(0)
摘要:
package com.anyan;/** * @author anyan * @date 2021/5/4-16:07 *//*改进后,终止线程的第二种方法: */public class ThreadEndTest02 { public static void main(String[] arg 阅读全文
posted @ 2021-05-04 17:10
安妍
阅读(138)
评论(0)
推荐(0)
摘要:
package com.anyan;/** * @author anyan * @date 2021/5/4-11:58 *//*关于线程睡眠的测试程序Thread.sleep(参数为毫秒)在哪个线程中调用,则为哪个线程睡眠当线程睡眠时间过长时,可选择中断其睡眠 intterupt */public 阅读全文
posted @ 2021-05-04 15:36
安妍
阅读(196)
评论(0)
推荐(0)
摘要:
package com.anyan;/** * @author anyan * @date 2021/5/4-9:33 *//*该程序为暂时测试程序 */public class Temp { public static void main(String[] args) { Thread t=new 阅读全文
posted @ 2021-05-04 10:08
安妍
阅读(53)
评论(0)
推荐(0)
摘要:
线程生命周期 阅读全文
posted @ 2021-05-04 01:07
安妍
阅读(52)
评论(0)
推荐(0)
摘要:
多线程 进程:一个启动的应用程序(进程A与进程B的内存独立不共享) 线程:一个进程的执行场景/单元(线程A与线程B的内存可能共享,也可能独立) 例如在Java语言中,堆内存和方法区内存共享(因为其内存空间是固定的);但占栈内存独立,一个线程一个栈,每个栈之间互不干扰,即每个线程之间互不干扰,此即为多 阅读全文
posted @ 2021-05-04 00:19
安妍
阅读(148)
评论(0)
推荐(0)
摘要:
package com.anyan;/** * @author anyan * @date 2021/5/3-20:42 *//*内部类:即类的内部还有类,类中套类内部类分为三种:1.静态内部类2.局部内部类 其中匿名内部类较常用,是局部内部类的一种3.实例内部类 */public class In 阅读全文
posted @ 2021-05-03 23:31
安妍
阅读(67)
评论(0)
推荐(0)
摘要:
package com.anyan;/** * @author anyan * @date 2021/5/3-20:21 *//*实现多线程的第二种方式,新建类,实现Runnable接口 */public class ThreadTest03 { public static void main(St 阅读全文
posted @ 2021-05-03 20:31
安妍
阅读(44)
评论(0)
推荐(0)
摘要:
package com.anyan;/** * @author anyan * @date 2021/5/3-19:46 */public class ThreadTest02 { public static void main(String[] args) { //创建一个新的线程对象 MyThr 阅读全文
posted @ 2021-05-03 20:20
安妍
阅读(138)
评论(0)
推荐(0)
摘要:
DNS(domain Name System) 主机/路由器的两类识别系统: IP地址(机器识别) 域名(人类识别) DNS:域名解析系统 解决域名和IP地址的映射问题(能够将域名翻译为IP地址) 由多层名命服务器构成的分布式数据库 它所提供的服务是互联网的核心功能,但其却处于应用层进行服务 DNS 阅读全文
posted @ 2021-05-03 16:53
安妍
阅读(214)
评论(0)
推荐(0)