base.BeginInvoke((MethodInvoker)delegate() { this.newdt.Rows[e.ProgressPercentage]["Stat"] = _link.Url; ...
分类:
编程语言 时间:
2015-06-19 23:03:07
阅读次数:
140
思维:(1)得到"."的i节点号,叫n(使用stat) (2)chdir ..(使用chdir) (3)找到inode号为n的节点,得到其文件名称。 反复上述操作直到当前文件夹“.”的inode值等于".."的inode值#include #include #include #in...
分类:
系统相关 时间:
2015-06-19 20:02:28
阅读次数:
185
文件结构stat——下面三个函数可以获取文件的状态信息:#include
int stat(const char *path, struct stat *buf);
int fstat(int fd, struct stat *buf);
int lstat(const char *path, struct stat *buf);stat函数指定文件路径,fstat指定文件...
分类:
其他好文 时间:
2015-06-19 11:57:24
阅读次数:
177
CPU 使用率衡量的是程序运行占用的CPU 百分比。Linux 的CPU 使用率信息可以通过/proc/stat 文件计算得到。 proc 文件系统 /proc 文件系统是一个伪文件系统,它只存在内存当中,而不占用外存空间。它以文件系统的方式为内核与进程提供通信的接口。用户和应用程序可以通过/pro...
分类:
系统相关 时间:
2015-06-19 10:12:24
阅读次数:
224
using System;
using System.Text;
using System.Security.Cryptography;
using System.IO;
using UnityEngine;
public class StringEncryption{
#region 方法一 C#中对字符串加密解密(对称算法)
private stat...
分类:
编程语言 时间:
2015-06-17 15:21:46
阅读次数:
124
服务器端:#include<stdio.h>#include<unistd.h>#include<stdlib.h>#include<sys/types.h>#include<sys/stat.h>#include<fcntl.h>#include<sys/socket.h>#include<sys/un.h>#include<stddef.h>charbuf[100];voidmain(vo..
分类:
系统相关 时间:
2015-06-17 01:59:44
阅读次数:
179
在登陆umail时.登陆某一个用户.有出现下面的错误提示. Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000]: General error: 145 Table './umail/wm_stat....
分类:
数据库 时间:
2015-06-16 10:35:09
阅读次数:
395
#ifndef PROCESS_STAT_H#define PROCESS_STAT_H#ifdef __cplusplusextern“C” {#endiftypedeflonglongint64_t;typedefunsigned longlonguint64_t;/// 获取当前进程的cpu使...
分类:
编程语言 时间:
2015-06-12 20:41:42
阅读次数:
123
Linux进程管理工具一、pstree:查看进程树结构二、ps命令使用1、命令说明ps:显示进程状态的命令,快照式、一次性2、常用组合参数aux:-ef:例如:3、各选项代表意义:VSZ:VirtualmemorySiZeRSS:常驻内存集STAT状态:R:runningS:可中断睡眠D:不可中断睡眠T:stoppedZ:zom..
分类:
系统相关 时间:
2015-06-10 01:20:23
阅读次数:
199
1利用GCD方式实现单例(ARC)#import "People.h"@implementation Peoplestatic id _instace;+(id)allocWithZone:(struct _NSZone *)zone{ //为防止用alloc创建对象 stat...
分类:
其他好文 时间:
2015-06-10 01:04:09
阅读次数:
147