一、iptables防火墙 1、基本操作 # 查看防火墙状态 service iptables status # 停止防火墙 service iptables stop # 启动防火墙 service iptables start # 重启防火墙 service iptables restart # ...
分类:
系统相关 时间:
2021-04-07 11:31:55
阅读次数:
0
1:公平锁和非公平锁 1.1 流程图 1.2 源码分析 ? 锁使用 final Lock lock = new ReentrantLock(); new Thread(()->{ lock.lock(); try { System.out.println(" "); Thread.sleep(100 ...
分类:
其他好文 时间:
2021-04-07 11:23:49
阅读次数:
0
下面这个例子和上面一样,除了说是子线程要join主线程。本例中还教会了大家,如何从主线程传参数到子线程。 例:1.5.3_2 class ThreadMark_to_win extends Thread { Thread mainT; Test t; public void run() { try ...
分类:
编程语言 时间:
2021-04-07 11:19:09
阅读次数:
0
@Test void contextLoads() { String str ="!dasd_asda_dasjdlkaj"; System.out.println(a(str)); } //截取字符串 转换大写并且输出 String a(String name) { String[] str= { ...
分类:
其他好文 时间:
2021-04-07 11:18:46
阅读次数:
0
A-AC 时间限制:C/C++ 1秒,其他语言2秒 空间限制:C/C++ 262144K,其他语言524288K Special Judge, 64bit IO Format: %lld 题目描述 Crystal's fortune predict system is successfully de ...
分类:
其他好文 时间:
2021-04-07 11:07:42
阅读次数:
0
切换到数据库用户Oracle su oracle lsnrctl start 启动数据库监听端口 登录SQLplus sqlplus /nolog conn / as sysdba 链接数据库 startup 启动 ...
分类:
数据库 时间:
2021-04-07 10:57:03
阅读次数:
0
static关键字 public class OOPDemo01 { //2:赋初值 { System.out.println("匿名代码块"); } //1:只执行一次 static{ System.out.println("静态代码块"); } //3 public OOPDemo01(){ S ...
分类:
其他好文 时间:
2021-04-07 10:49:07
阅读次数:
0
包装类 java提供了8中基本数据类型的包装类,是的基本数据类的变量具有类的特征 基本数据类型、包装类、String三者之间的转换 基本数据类型 包装类 byte Byte short Short int Interger long Long float Float double Double bo ...
分类:
其他好文 时间:
2021-04-07 10:35:55
阅读次数:
0
信号发送 kill 和 raise函数 kill函数参数详解: 实验1 raise和kill 的使用 #include <stdio.h> #include <signal.h> #include <unistd.h> #include <stdlib.h> #include <sys/wait.h ...
分类:
其他好文 时间:
2021-04-06 15:18:50
阅读次数:
0
注释 单行注释 //+注释eg://sout是输出语句System.out.println();的快捷输入法 多行注释 /* 注释 */eg:/* 多行注释 多行注释 多行注释 */ 文档注释 /** JavaDoc */和JavaDoc联合使用,一般进大公司用得着。 ...
分类:
编程语言 时间:
2021-04-06 15:07:48
阅读次数:
0