Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

linux¶àÏ̱߳à³É - Linux/UnixÉçÇø / ³ÌÐò¿ª·¢Çø

#include<stdio.h>
#include<stdlib.h>
#include<pthread.h>

void *first()
{
printf("first pthread-----ABC\n");
}

void *second()
{
printf("second pthread-----ABC\n");
}

int main()
{
printf("mian pthread----ABC\n");
pthread_t fthread;
pthread_t sthread;

pthread_create(&fthread,NULL,first,NULL);
pthread_create(&sthread,NULL,second,NULL);

pthread_join(fthread,NULL);
pthread_join(sthread,NULL);
return 0;
}

ÎÒ±àÒëÌáʾ´íÎóÈçÏÂ
fily@zhaoyf:/media/work/develop/iscsitarget/usr$ gcc -o thread thread.c
/tmp/ccRbUIwW.o: In function `main':
thread.c:(.text+0x4e): undefined reference to `pthread_create'
thread.c:(.text+0x66): undefined reference to `pthread_create'
thread.c:(.text+0x74): undefined reference to `pthread_join'
thread.c:(.text+0x82): undefined reference to `pthread_join'
collect2: ld returned 1 exit status

¸ßÊÖ°ï棬ÎÒ´íÔÚÄÄÀïÁË£¿
ÎÒʹÓõÄÊÇdebian5linux{{


Ïà¹ØÎÊ´ð£º

linuxÏÂCÓïÑÔ¿ª·¢oracleµÄÎÊÌâ¡£

Á½¸öÎļþ1.PC£¬1.inc
1.PCÓвÙ×÷oracleÊý¾Ý¿âµÄ ,1.incÒ²ÓвÙ×÷oracleÊý¾Ý¿â 
ÔÚÆäËûÊý¾ÝÖÐÈçinformix ÖÐ$include 1.inc¾Í¿ÉÒÔʹÓÃÁË
ÔÚORACLEÊý¾Ý¿âÖØ $include 1.inc²»¿ÉÓà EXEC SQL include 1.incÒ²²»¿É ......

¡¾±±¾©¡¿ÕÐƸLinuxÈí¼þÑз¢¸ß¼¶¹¤³Ìʦ

¾ßÌåְλҪÇó£º
1. ´óѧ±¾¿ÆÒÔÉÏѧÀú£¬¼ÆËã»úÏà¹Øרҵ±ÏÒµ£»
2. ÊìϤTCP/IPЭÒé¡¢SocketÍøÂç±à³Ì¡¢¶àÏ̱߳à³Ì£»
3. ¾«Í¨LinuxÏÂC/C++ÓïÑÔ±à³Ì¡¢GCC±àÒëÆ÷¡¢gdbµ÷ÊÔÆ÷µÄʹÓã¬ÊìϤMakefileºÍShell£»
4. Á˽âÈí¼þ¿ ......

linux redhat/oracle_linux rpm µÄ°ü¹ÜÀíÔõôÕâÑù£¿

±¾È˺ÜÏëѧµã¶«Î÷£¡´ÓÊÂunix ϵÄά»¤¿ìÁ½ÄêÁË£¡
¼¸ÌìÇ°±»rpm ¸ãµÄ¼¸Ìì˯²»ºÃ¾õ£¡
ΪÁË×ö²âÊÔºÍʵÑ飬ѧµ½µãÕ汾ʣ¡
ÔÚ×Ô¼ºµÄ±Ê¼Ç±¾ÉÏÏÂÔØÁËoracle10g oracle11g redhat,oracle_linux 
¿ªÊ¼°´ÕÕÇ°È˵ľ­Ñ ......

linux ȨÏÞÉèÖõÄÎÊÌâ - Web ¿ª·¢ / Ó¦Ó÷þÎñÆ÷

ÔÚubuntuÉϴÁË·þÎñÆ÷£¬¸ùĿ¼Ϊ/var/www£¬Ê¹ÓÃphp½Å±¾ÔÚ/var/www/htmlÎļþ¼ÐÏÂÉú³ÉÁËÎļþ¼ÐºÍÎļþ£¬Éú³ÉµÄ¸ñʽÊÇ/var/www/html/123456/sss.html£¬Éú³Éºó²é¿´htmlÎļþ¼ÐµÄȨÏÞÊÇwww-data£¬ÎÒÖ´ÐÐphpµÄɾ³ý½Å±¾µÄʱ ......

ѧϰLinuxµÄÃÔã - C/C++ / CÓïÑÔ

ÎÒѧϰLinuxÓÐÒ»¶Îʱ¼äÁË£¬Ñ§Ï°¹ýshell½Å±¾±àд£¬¿´¹ý¡¶Unix¸ß¼¶»·¾³±à³Ì¡·£¬µ«ÊÇ×ܾõµÃ¿´µÄºÍдµÄ³ÌÐòºÜÉÙ£¬¾õµÃ¿´ÁËÖ®ºóûÓÐʲô×÷Óã¬Ö»ÊǼÇסÁËЩº¯Êý¶øÒÑ£¬Ã»ÓÐʵս¡£¶øÇҸоõÏÖÔÚѧϰLinuxºÜûÓз½Ïò£¬²»Ö ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ