Linux¶àÏ̱߳à³ÌµÄ»ù±¾µÄº¯Êý
º¯ÊýÔÐÍ£º
#include <pthread.h>
int pthread_create(pthread_t *restrict tidp,const pthread_attr_t *restrict attr, void *(*start_rtn)(void),void *restrict arg);
·µ»ØÖµ£ºÈôÊdzɹ¦½¨Á¢Ï̷߳µ»Ø0,·ñÔò·µ»Ø´íÎóµÄ±àºÅ
ÐÎʽ²ÎÊý£º
pthread_t *restrict tidp Òª´´½¨µÄÏ̵߳ÄÏß³ÌidÖ¸Õë
const pthread_attr_t *restrict attr ´´½¨Ïß³ÌʱµÄÏß³ÌÊôÐÔ
void* (start_rtn)(void) ·µ»ØÖµÊÇvoidÀàÐ͵ÄÖ¸Õ뺯Êý
vodi *restrict arg start_rtnµÄÐвÎ
ÀýÌâ1£º
¹¦ÄÜ£º²âÊÔ½¨Á¢Ò»¸öеÄÏß³Ì
³ÌÐòÃû³Æ£º pthread_test.c
#include <pthread.h>
#include <stdio.h>
void *create(void *arg)
...{
printf("new thread created ..... ");
}
int main(int argc,char *argv[])
...{
pthread_t tidp;
int error;
error=pthread_create(&tidp,NULL,create,NULL);
if(error!=0)
......{
printf("pthread_create is not created ... ");
return -1;
}
printf("prthread_create is created... ");
return 0;
}
±àÒë·½·¨£º
#gcc -Wal
Ïà¹ØÎĵµ£º
£¨L2CAPÐÒé¼ò½é£¬L2CAPÔÚBlueZÖеÄʵÏÖÒÔ¼°L2CAP±à³Ì½Ó¿Ú£©
Ò»£ºL2CAPÐÒé¼ò½é£º
Logical Link Control and Adaptation Protocol(L2CAP)
Âß¼Á¬½Ó¿ØÖƺÍÊÊÅäÐÒé (L2CAP) ΪÉϲãÐÒéÌá¹©ÃæÏòÁ¬½ÓºÍÎÞÁ¬½ÓµÄÊý¾Ý·þÎñ£¬²¢Ìṩ¶àÐÒ鹦ÄܺͷָîÖØ×é²Ù×÷¡£L2CAP ³äÐíÉϲãÐÒéºÍÓ¦ÓÃÈí¼þ´«ÊäºÍ½ÓÊÕ×î´ó³¤¶ÈΪ 64K µÄ L2CAP Ê ......
bin/mail»áĬÈÏʹÓñ¾µØsendmail·¢ËÍÓʼþ£¬ÕâÑùÒªÇ󱾵صĻúÆ÷±ØÐë°²×°ºÍÆô¶¯Sendmail·þÎñ£¬ÅäÖ÷dz£Âé·³£¬¶øÇÒ»á´øÀ´²»±ØÒªµÄ×ÊÔ´Õ¼Ó᣶øÍ¨¹ýÐÞ¸ÄÅäÖÃÎļþ¿ÉÒÔʹÓÃÍⲿSMTP·þÎñÆ÷£¬¿ÉÒÔ´ïµ½²»Ê¹ÓÃsendmail¶øÓÃÍⲿµÄsmtp·þÎñÆ÷·¢ËÍÓʼþµÄÄ¿µÄ£º
ÐÞ¸Ä
/etc/mail.rc
set from=fromUser@domain.com
smtp=smtp.domain. ......
¼ÙÉèphp°²×°ÔÚ/usr/local/php5/bin/php£¬³õʼÔÚÃüÁîÐÐÖ´ÐÐPHPµÄʱºòÒªÊäÈëÒ»³¤´®µÄ·¾¶£¬eg£º
$>/usr/local/php5/bin/php phpinfo.php
·Ç³£µÄÂé·³£¬ÏÖÔÚÖ»Ð轫php¿½±´ÖÁusr/sbinĿ¼¼´¿ÉÖ±½ÓʹÓÃphpÃüÁeg£º
$>cp /usr/local/php5/bin/php /usr/sbin/
$>php phpinfo.php
......
RPMÓÐ5ÖÖ»ù±¾²Ù×÷ģʽ£¨²»°üÀ¨Èí¼þ°ü½¨¹¹£©£º°²×°¡¢É¾³ý¡¢Éý¼¶¡¢²éѯºÍУÑé¡£
RPM°üµÄÃû³Æ¸ñʽ£¬eg£ºcaleng-1.0-1.i386.rpm¡£¸ÃÎļþÃû°üÀ¨Èí¼þ°üÃû³Æ“caleng”£»Èí¼þ°æ±¾ºÅ“1.0“£¬ÆäÖаüÀ¨Ö÷°æ±¾ºÅºÍ´Î°æ±¾ºÅ£»"i386"ÊÇÈí¼þËùÔËÐеÄÓ²¼þƽ̨¡£
1¡¢°²×°RPM°ü£¬eg: $>rpm -ivh test.rp ......
±¾ÎļòÒª½éÉÜÁËJNIµ÷Óù淶£¬¼°³£Óú¯Êý¡£²¢Í¨¹ý¾ßÌåʾÀý³ÌÐòչʾÁËʵÏÖÒ»¸ö±¾µØµ÷ÓõĻù±¾²½Öè¡£
ÒýÑÔ
Java
µÄ³öÏÖ¸ø´ó¼Ò¿ª·¢´øÀ´µÄ¼«´óµÄ·½±ã¡£µ«ÊÇ£¬Èç¹ûÎÒÃÇÓдóÁ¿ÔÓеľ¹ý¹ã·º²âÊԵķÇJava´úÂ룬½«ËüÃÇÈ«²¿ÓÃJavaÀ´ÖØÐ´£¬¿ÖÅÂ»á´øÀ´¾Þ´óµÄ¹¤×÷Á¿ºÍ³¤
ÆÚµÄ²âÊÔ£»Èç¹ûÎÒÃǵÄÓ¦ÓÃÖÐÐèÒª·ÃÎʵ½Ìض¨µÄÉ豸£¬ÉõÖÁÊǽ ......