1、使用free – m命令查看内存使用情况代码如下:total used free shared
buffers cached Mem: 3832 2716 1115 0 95 1483 -/+ buffers/cache: 1137 2695 Swap:
6015 0 6015从上面可以看到内存...
分类:
其他好文 时间:
2014-05-26 11:57:51
阅读次数:
295
FREENAMEfree显示系统可用内存和已使用内存语法free [-b | -k | -m]
[-o] [-s delay ] [-t] [-l] [-V]描述free显示了总可用和被用的物理内存和swap内存,也包括内核使用的buffer,shared
memory已经被废弃选项[-b | -k...
分类:
系统相关 时间:
2014-05-26 11:29:08
阅读次数:
326
ARC的机制是什么?它在那里放入retain/release函数调用?请停止思考这些问题,把更多的精力放在下面的问题上,比如你的程序逻辑,对象的强,弱引用,对象的所属关系,可能的循环引用等问题上。我还需要为我的类写一个dealloc函数么?可能。因为ARC并不自动调用malloc/free,并不自动...
分类:
其他好文 时间:
2014-05-26 10:24:28
阅读次数:
279
经过长时间学习创建Oracle表空间,于是和大家分享一下,看完本文你肯定有不少收获,希望本文能教会你更多东西。1、先查询空闲空间selecttablespace_name,file_id,block_id,bytes,blocksfromdba_free_space;2、增加Oracle表空间先查询...
分类:
数据库 时间:
2014-05-26 09:30:23
阅读次数:
368
在Windows系统中查看内存的使用情况很简单,想必大家都已经耳熟能详了,那么在linux系统如何查看内存使用情况呢?下面和大家分享在Linux
下查看内存使用情况的free命令: [root@scs-2 tmp]# free total used free shared buffers c...
分类:
系统相关 时间:
2014-05-26 09:04:17
阅读次数:
352
Use Reentrant Functions for Safer Signal
Handling使用可重入函数进行更安全的信号处理How and when to employ reentrancy to keep your code bug
free何时及如何利用可重入性避免代码缺陷Dipak J...
分类:
其他好文 时间:
2014-05-22 00:33:49
阅读次数:
389
Linux发行版:CentOS、Ubuntu、RedHat、Android、Tizen、MeeGo作者:阳光岛主原文在这儿Linux,最早由Linus
BenedictTorvalds在1991年开始编写。在这之前,Richard Stallman创建了Free Software Foundatio...
分类:
移动开发 时间:
2014-05-21 21:58:57
阅读次数:
670
析构函数和构造函数是一对,就像C语言中的malloc和free,C++中的new和delete一样
先从一个实例说起:
#include
#include
using namespace std;
class Student
{
public:
Student(int n, string nam, char s)
{
num = n;
name = nam;
sex...
分类:
其他好文 时间:
2014-05-21 12:33:43
阅读次数:
259
There are two types of non-blocking thread synchronization algorithms
- lock-free, and wait-free. Their meaning is often confused. In lock-free systems, while any particular computation may be block...
分类:
其他好文 时间:
2014-05-21 10:27:20
阅读次数:
410
通常,子系统都要对其实现细节进行隐藏,在进行细节隐藏的同时,子系统为用户提供了一些关键入口点。程序员
通过调用这些关键的入口点来实现与子系统的通信。因此如果在程序中使用这样的子系统并且在其调用点加上了调
试检查,那么不同花很大力气就可以进行许多错误检查。
当子系统编写完成后,要问自己:“程序员什么情况下会错误地使用这个子系统,在这个子系统中怎样才能自动检
查出这些问题?”...
分类:
编程语言 时间:
2014-05-21 07:04:02
阅读次数:
283