LinuxϵÄÊý¾ÝÀàÐÍ
ÄÚºËʹÓõĻù±¾Êý¾ÝÀàÐÍÖ÷ÒªÓУº int £º ±ê×¼µÄCÓïÑÔÕûÊýÀàÐÍ u32 £º 32λÕûÊýÀàÐÍ pid_t £º ÌØ¶¨Äں˶ÔÏópidµÄÀàÐÍ ÔÚ²»Í¬CPUÌåϵ½á¹¹ÉÏ£¬CÓïÑÔµÄÊý¾ÝÀàÐÍËùÕ¼ÓõĿռäÊDz»Ò»ÑùµÄ¡£ÔÚx86ϵÁнṹÏ£¬Êý¾ÝÀàÐÍÕ¼ÓõÄ×Ö½ÚÊýÈçϱíËùʾ£º arch char short int long ptr long long u8 u16 u32 u64 i686 1 2 4 4 4 8 1 2 4 8 ÔÚlinuxÏ£¬ÄÚºËÖеĵØÖ·ÊÇunsigned long ÀàÐÍ£¬Ö¸ÕëµÄ´óСÓëlongÀàÐ͵ĴóСÏàͬ¡£ ÄÚºËÌṩµÄËùÓÐÊý¾ÝÀàÐÍÔÚÍ·Îļþ<asm/types.h>ÖÐÉùÃ÷£¬Õâ¸öÎļþÓÖ±»<Linux/types.h>Ëù°üº¬¡£ LinuxʹÓÃÓÐǰ׺µÄÀàÐÍÓÃÓÚ½«±äÁ¿ÏÔ¶¸øÓû§¿Õ¼ä£¬Èç__u32¡£ ÄÚºËÖкܶàÊý¾ÝÀàÐÍÊÇÓÉtypedefÉùÃ÷£¬ÕâÑù±ãÓÚÒÆÖ²¡£
Ïà¹ØÎĵµ£º
LinuxϵÄÉ豸Çý¶¯³ÌÐò±»×é֯Ϊһ×éÍê³É²»Í¬ÈÎÎñµÄº¯ÊýµÄ¼¯ºÏ£¬Í¨¹ýÕâЩº¯ÊýʹµÃWindowsµÄÉ豸²Ù×÷ÓÌÈçÎļþÒ»°ã¡£ÔÚÓ¦ÓóÌÐò¿´À´£¬Ó²¼þÉ豸ֻÊÇÒ»¸öÉ豸Îļþ£¬Ó¦ÓóÌÐò¿ÉÒÔÏó²Ù×÷ÆÕͨÎļþÒ»Ñù¶ÔÓ²¼þÉ豸½øÐвÙ×÷£¬Èçopen ()¡¢close ()¡¢read ()¡¢write () µÈ¡£
LinuxÖ÷Òª½«É豸·ÖΪ¶þÀࣺ×Ö·ûÉ豸ºÍ¿éÉ豸¡£×Ö·ûÉ豸ÊÇÖ¸Éè ......
linuxÖÐÓÃshell»ñÈ¡×òÌì¡¢Ã÷Ìì»ò¶àÌìǰµÄÈÕÆÚ:
ÔÚLinuxÖжÔman date -d ²ÎÊý˵µÄ±È½ÏÄ£ºý,ÒÔϾÙÀý½øÒ»²½ËµÃ÷:
# -d, --date=STRING display time described by STRING, not `now’
[root@Gman root]# date -d next-day +%Y%m%d #Ã÷ÌìÈÕÆÚ
20091024
[root@Gman root]# date -d last-day +%Y%m%d #×òÌìÈÕÆÚ
20091 ......
------------------------------------------
±¾ÎÄϵ±¾Õ¾Ô´´,»¶Ó×ªÔØ!
×ªÔØÇë×¢Ã÷³ö´¦:http://ericxiao.cublog.cn/
------------------------------------------
Ò»:ǰÑÔ
CFSµ÷¶ÈÔÚ2.6.23°æ±¾µÄkernelÖб»¼ÓÈë.ÒýÓÃIngo
MolnarµÄÒ»¾ä»°:80%µÄÉè¼Æ¿ÉÒÔÓÃÒ»¾ä»°À´¸ÅÀ¨:CFSÖÐÒ»¸ö”ÀíÏëµÄ¶àÈÎÎñ´¦ÀíÆ÷”.Ò² ......
<?php
/**
* ʹÓù²ÏíÄÚ´æµÄPHPÑ»·ÄÚ´æ¶ÓÁÐʵÏÖ
* Ö§³Ö¶à½ø³Ì, Ö§³Ö¸÷ÖÖÊý¾ÝÀàÐ͵Ĵ洢
* ×¢: Íê³ÉÈë¶Ó»ò³ö¶Ó²Ù×÷,¾¡¿ìʹÓÃunset(), ÒÔÊÍ·ÅÁÙ½çÇø
*
* @author wangbinandi@gmail.com
* @created 2009-12-23
*/
class SHMQueue
{
private $maxQSize = 0; // ¶ÓÁÐ×î´ó³¤¶È
private $front = 0; ......
/etc/inittabÎļþµÄ×ֶμ°Æä˵Ã÷
/etc/inittabÎļþÖÐÿ¸öµÇ¼ÇÏîµÄ½á¹¹¶¼ÊÇÒ»ÑùµÄ£¬¹²·ÖΪÒÔðºÅ“£º”·Ö¸ôµÄ4¸ö×ֶΡ£¾ßÌåÈçÏ£º
identifier : run_level : action : process
ÆäÖУ¬¸÷×Ö¶ÎÒÔ¼°ÓëÆäÏà¹ØµÄ˵Ã÷ÈçÏ£º
identifier
µÇ¼ÇÏî±êʶ·û£¬×î¶àΪ4¸ö×Ö·û¡£ÓÃÓÚΩһµØ±êʶ/etc/inittabÎļþÖеÄÿһ¸öµÇ¼ÇÏ ......