1、磁盘lvm管理,完成下面要求,并写出详细过程: 创建一个至少有两个PV组成的大小为20G的名为testvg的VG;要求PE大小 为16MB, 而后在卷组中创建大小为5G的逻辑卷testlv;挂载至/users目录创建pv pvcreate /dev/sd{a6,c}创建卷组并指定块大小vgcre ...
分类:
其他好文 时间:
2019-06-16 20:13:59
阅读次数:
121
//程序演进1 //thread loop,忙等Busy wait //不断的检查是不是该做什么事情了;为了减少CPU占用,sleep睡眠一会 //while (1) //{ // do_something(); // sleep(time); //} //程序演进2 //while (1) //{... ...
分类:
编程语言 时间:
2019-06-16 17:29:51
阅读次数:
116
六、线程得等待和唤醒 1.wait()和notify()的简单示范 public class Wait extends Thread{ public synchronized void run() { System.out.println(getName()+"执行notify()"); notif ...
分类:
编程语言 时间:
2019-06-16 09:40:47
阅读次数:
115
public class SleepAndWait { public static void main(String[] args) { new Thread(new Thread1()).start(); try { //sleep不会释放锁对象,但是导致了程序暂停执行指定的时间,让出cpu给其他 ...
分类:
其他好文 时间:
2019-06-14 22:18:47
阅读次数:
153
统计80端口的连接数据 netstat -nat | grep -i "80" | wc -l 统计httpd协议连接数 ps -ef | grep httpd | wc -l 统计已连接的,状态为establish的 netstat -na | greo ESTABLISH | wc -l 查出那 ...
分类:
Web程序 时间:
2019-06-14 14:49:05
阅读次数:
119
Conditon中的await()对应Object的wait(),Condition中的signal()对应Object的notify(),Condition中的signalAll()对应Object的notifyAll() 两个线程交替执行例子(同理生产者消费者也是这样交替执行): 运行结果: c ...
分类:
其他好文 时间:
2019-06-14 01:07:21
阅读次数:
84
#!/usr/bin/env python# -*- coding: utf-8 -*-import MySQLdbimport timeimport sysclass m_s: def __init__(self,host,user,password,port): self.host=host s ...
分类:
数据库 时间:
2019-06-13 18:50:32
阅读次数:
216
selenium:from selenium import webdriver 安装:pip install seleniumtime:import time等待时间:from selenium.webdriver.support.wait import WebDriverWait 等待条件:fro ...
分类:
Web程序 时间:
2019-06-13 01:08:37
阅读次数:
192
xinnian xinnian xinnian xinnian 浏览: 131159 次 性别: 来自: 北京 浏览: 131159 次 性别: 来自: 北京 浏览: 131159 次 性别: 来自: 北京 浏览: 131159 次 性别: 来自: 北京 浏览: 131159 次 性别: 来自: 北 ...
分类:
数据库 时间:
2019-06-13 00:33:34
阅读次数:
123
原文:使用CefSharp在.Net程序中嵌入Chrome浏览器(八)——Cookie CEF中的Cookie是通过CookieManager来管理的,可以用它来设置发送的Cookie。 发送Cookie 发送Cookie的一个基本示例如下: var cookieManager = _chrome. ...
分类:
Web程序 时间:
2019-06-12 22:50:43
阅读次数:
140