linux 2.4ÄÚºËÏ ΢ÃÑÓʱ
ÔÚx86 2.4ÄÚºËÏ usleep¡¢selectµÈÑÓʱº¯ÊýÎÞ·¨ÊµÏÖµÍÓÚ10msÑÓʱ
¶øÔÚÇý¶¯²ãÔÚioctrlÖÐͨ¹ýudelay¡¢mdelayµÈµÈʵÏÖÑÓʱҲÎÞ·¨¶à½ø³ÌͬʱÑÓʱ
ËùÒÔʵÏÖÈçÏÂÑÓʱº¯Êý Äܹ»ÊµÏÖµÍÓÚ10usÉõÖÁ1us µÄÑÓʱ
unsigned int uDelay(unsigned int delayTime)
{
static struct timeval _tstart, _tend;
static struct timezone tz;
double t,t1,t2;
int i;
gettimeofday(&_tstart, NULL);
t1 = (double)_tstart.tv_sec + (double)_tstart.tv_usec/(1000*1000);
for(i = 0;;i++)
{
gettimeofday(&_tend, NULL);
t2 = (double)_tend.tv_sec + (double)_tend.tv_usec/(1000*1000);
t = t2 - t1;
if(t > (double)delayTime/(1000*1000))
{
return 0;
}
sched_yield();
}
}
Ïà¹ØÎĵµ£º
×ÜÀÀ
ÓÃiptables -ADC À´Ö¸¶¨Á´µÄ¹æ
Ôò
£¬-AÌí¼Ó -Dɾ³ý -C ÐÞ¸Ä
iptables - [RI] chain rule num rule-specification[option]
ÓÃiptables - RI ͨ¹ý¹æÔòµÄ˳ÐòÖ¸¶¨
iptables -D chain rule num[option]
ɾ³ýÖ¸¶¨¹æÔò
iptables -[LFZ] [chain][option]
ÓÃiptables -LFZ Á´Ãû [Ñ¡Ïî]
iptables -[NX] chain
ÓÃ -NX ......
ÒÔÏÂÊÇÅäÖÃÒýµ¼½øÈëͼÐÎģʽµÄetc/inittabÎļþµÄ²¿·ÖÄÚÈÝ£º
#Default runlevel.The runlevels used by RHS are:
# 0-halt(Do NOT set initdefault to this)
# 1 -Single user mode
# 2-Multiuser,without NFS(The same as 3,if you do not have networking)
# 3-Full multiuser mode
# 4-unu ......
cd ¿´ÅÌ·û½øÈëÒ»¸öĿ¼
ls   ......
CurlÊÇLinuxÏÂÒ»¸öºÜÇ¿´óµÄhttpÃüÁîÐй¤¾ß£¬Æ书ÄÜÊ®·ÖÇ¿´ó¡£
1) ¶ÁÈ¡ÍøÒ³
$ curl http://www.linuxidc.com
2) ±£´æÍøÒ³
$ curl http://www.linuxidc.com > page.html
$ curl -o page.html http://www.linuxidc.com
3) ʹÓõÄproxy·þÎñÆ÷¼°Æä¶Ë¿Ú£º -x
$ curl -x 123.45.67.89:1080 -o page.html http://www.linu ......
Ïë°²×°adobe reader£¬À´µ½¹Ù·½ÍøÕ¾ÏÂÔØÊÇ·¢ÏÖÓÐreader9,ËäÈ»ÊÇÓ¢ÎÄ°æµÄÏÂÏÂÀ´ÔÙ˵£¬½á¹û´ò²»¿ªÖÐÎÄÎĵµ£¬googleÁËÏ·¢ÏÖÕâôƪÎÄÕ½â¾öÁËÎÒµÄÎÊÌâ¡£²»´í£¬²»¹ýÄǸöÏÂÔØÖÐÎÄÎĵµµÄµØÖ·ÕâÀï¾ÀÕýÒ»ÏÂÊÇ£ºhttps://www.adobe.com/cn/products/acrobat/acrrasianfontpack.html
ά»¤Ô´´£¡Ô´´µ ......