sar(System Activity Reporter系统活动情况报告)是目前 Linux 上最为全面的系统性能分析工具之一,可以从多方面对系统的活动进行报告,包括:文件的读写情况、系统调用的使用情况、磁盘I/O、CPU效率、内存使用状况、进程活动及IPC有关的活动等。本文主要以CentOS 6. ...
分类:
系统相关 时间:
2021-04-19 15:09:15
阅读次数:
0
依赖范围 对于编译classpath有效 对于测试classpath有效 对于运行时classpath有效 compile Y Y Y test - Y - provided Y Y - runtime - Y Y system Y Y - ...
分类:
其他好文 时间:
2021-04-19 15:02:44
阅读次数:
0
C#中对xml数据的读取和写入: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Xml.Linq; using System.Xml; using ...
1.Scanner对象:可以通过使用Scanner 类来获取用户的输入 基本语法: Scanner s = new Scanner(System.in); 通过Scanner 类的next()与nextline() 方法获取输入的字符串,在读取前我们需要使用hasnext()与hasnextline ...
分类:
编程语言 时间:
2021-04-19 14:13:52
阅读次数:
0
核心概念 Topic:消息主题,一级消息类型,通过Topic对消息进行分类。 Tag:消息标签,二级消息类型,用来进一步区分某个Topic下的消息分类。 Message ID:消息的全局唯一标识,由消息队列RocketMQ版系统自动生成,唯一标识某条消息。 Message Key:消息的业务标识,由 ...
分类:
其他好文 时间:
2021-04-19 14:11:21
阅读次数:
0
1. 多态 多态 1.1 多态概述 代码示例: 动物类: public class Animal { public void eat(){ System.out.println("动物吃东西"); } } 猫类: 多态的前提有继承/实现关系,所以猫类要继承动物类。 public class Cats ...
分类:
编程语言 时间:
2021-04-16 12:17:46
阅读次数:
0
使用as连接真机时,找不到设备,发现 D:\Android\Sdk\platform-tools\adb.exe start-server' failed -- run manually if necessary 这是可能是adb端口占用的问题,解决方法: 1.查找此时正在占用adb默认端口‘503 ...
分类:
移动开发 时间:
2021-04-16 12:15:52
阅读次数:
0
用户交互Scanner 作用:获取用户的输入 基本语法: //创建一个扫描器对象,用于接收键盘数据 Scanner scanner = new Scanner(System.in); //判断用户有没有输入字符串 if(scanner.hasNext()){ //使用next方法接收 String ...
分类:
编程语言 时间:
2021-04-16 12:14:03
阅读次数:
0
import org.junit.Test; public class TestMethods { @Test public void test() { System.out.println("hello world"); } } 1:首先需要导入import org.junit.test这个jar ...
分类:
编程语言 时间:
2021-04-16 12:01:06
阅读次数:
0
参见微软官方 https://docs.microsoft.com/en-us/windows/win32/sysinfo/operating-system-versionusing System; using System.Collections.Generic; using System.Lin ...