o ra c le °²×°
¼ì²éÄں˲ÎÊý
ÕýÔÚ¼ì²é semmsl=250; ÒÑ·¢ÏÖ semmsl=250¡£ ͨ¹ý
ÕýÔÚ¼ì²é semmns=32000; ÒÑ·¢ÏÖ semmns=32000¡£ ͨ¹ý
ÕýÔÚ¼ì²é semopm=100; ÒÑ·¢ÏÖ semopm=32¡£ ʧ°Ü <<<<
ÕýÔÚ¼ì²é semmni=128; ÒÑ·¢ÏÖ semmni=128¡£ ͨ¹ý
ÕýÔÚ¼ì²é shmmax=536870912; ÒÑ·¢ÏÖ shmmax=33554432¡£ ʧ°Ü <<<<
ÕýÔÚ¼ì²é shmmni=4096; ÒÑ·¢ÏÖ shmmni=4096¡£ ͨ¹ý
ÕýÔÚ¼ì²é shmall=2097152; ÒÑ·¢ÏÖ shmall=2097152¡£ ͨ¹ý
ÕýÔÚ¼ì²é file-max=65536; ÒÑ·¢ÏÖ file-max=102464¡£ ͨ¹ý
ÕýÔÚ¼ì²é VERSION=2.6.9; ÒÑ·¢ÏÖ VERSION=2.6.9-67.0.0.0.1.ELsmp¡£ ͨ¹ý
ÕýÔÚ¼ì²é ip_local_port_range=1024 - 65000; ÒÑ·¢ÏÖ ip_local_port_range=32768 - 61000¡£ ʧ°Ü <<<<
ÕýÔÚ¼ì²é rmem_default=4194304; ÒÑ·¢ÏÖ rmem_default=110592¡£ ʧ°Ü <<<<
ÕýÔÚ¼ì²é rmem_max=4194304; ÒÑ·¢ÏÖ rmem_max=131071¡£ ʧ°Ü <<<<
ÕýÔÚ¼ì²é wmem_default=262144; ÒÑ·¢ÏÖ wmem_default=110592¡£ ʧ°Ü <<<<
ÕýÔÚ¼ì²é wmem_max=262144; ÒÑ·¢ÏÖ wmem_max=131071¡£ ʧ°Ü <<<<
¼ì²éÍê³É¡£´Ë´Î¼ì²éµÄ×ÜÌå½á¹ûΪ: ʧ°Ü <<<<
ÎÊÌâ: Äں˲ÎÊý²»Âú×ã×îµÍÒªÇó (²Î¼ûÉÏÎÄ)¡£
½¨Òé°¸: Çë°´ÕÕ²Ù×÷ϵͳÌض¨µÄ˵Ã÷¸üÐÂÄں˲ÎÊý¡£_
vi /etc/sysctl.conf
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default=4194304
net.core.rmem_max=4194304
net.core.wmem_default=262144
net.core.wmem_max=262144
Ïà¹ØÎĵµ£º
1. CµÄʵÏÖ
//stack.h
#ifndef STACK_H
#define STACK_H
#define STACK_CAPACITY 20//maximum size of stack
typedef int stackEle;
typedef struct
{
stackEle myArray[ STACK_CAPACITY ];
int myTop;
}stack;
//construct(initialize) an empty stack
stack *stack_init(void);
//return 1 if stack is em ......
1. ÓÃÔ¤´¦ÀíÖ¸Áî#define ÉùÃ÷Ò»¸ö³£Êý£¬ÓÃÒÔ±íÃ÷1ÄêÖÐÓжàÉÙÃ루ºöÂÔÈòÄêÎÊÌ⣩
#define SECONDS_PER_YEAR (60 * 60 * 24 * 365)UL
ÎÒÔÚÕâÏë¿´µ½¼¸¼þÊÂÇ飺
1). #define Óï·¨µÄ»ù±¾ÖªÊ¶£¨ÀýÈ磺²»ÄÜÒԷֺŽáÊø£¬À¨ºÅµÄʹÓ㬵ȵȣ©
2). ¶®µÃÔ¤´¦ÀíÆ÷½«ÎªÄã¼ÆËã³£Êý±í´ïʽµÄÖµ£¬Òò´Ë£¬Ö±½Óд³öÄãÊÇÈçºÎ¼ÆËãÒ»ÄêÖÐÓж ......
2008-06-05 12:38------------------------------------------------------------------------------------------------
º¯ÊýÖ¸Õëͨ³£ÓÃÀ´ÊµÏֻص÷£¬Æä»ù±¾Ó÷¨ÈçÏ£º
1¡¢¶¨Ò庯ÊýÖ¸ÕëÀàÐÍ
// ¶¨ÒåÒ»¸öÔÐÍΪint Fun( int a );µÄº¯ÊýÖ¸Õë
typedef int (*PTRFUN) ( int aPara );
2¡¢º¯ÊýÖ¸Õë±äÁ¿µ ......
12.1 λÔËËã·û£ÃÓïÑÔÌṩÁËÁùÖÖλÔËËã·û£º
& °´Î»Óë
| °´Î»»ò
^ &nb ......
±àÒëµÄ¸ÅÄ±àÒë³ÌÐò¶ÁÈ¡Ô´³ÌÐò£¨×Ö·ûÁ÷£©£¬¶ÔÖ®½øÐдʷ¨ºÍÓï·¨µÄ·ÖÎö£¬½«¸ß¼¶ÓïÑÔÖ¸Áîת»»Îª¹¦ÄܵÈЧµÄ»ã±à´úÂ룬ÔÙÓÉ»ã±à³ÌÐòת»»Îª»úÆ÷ÓïÑÔ£¬²¢ÇÒ°´ÕÕ²Ù×÷ϵͳ¶Ô¿ÉÖ´ÐÐÎļþ¸ñʽµÄÒªÇóÁ´½ÓÉú³É¿ÉÖ´ÐгÌÐò¡£
±àÒëµÄÍêÕû¹ý³Ì£ºCÔ´³ÌÐò££>Ô¤±àÒë´¦Àí(.c)££>±àÒë¡¢ÓÅ»¯³ÌÐò£¨.s¡¢.asm£©££>»ã± ......