LinuxÉÏautofsÅäÖü°Æä˵Ã÷....
°æȨÉùÃ÷£ºÔ´´×÷Æ·£¬ÔÊÐíתÔØ£¬×ªÔØʱÇëÎñ±ØÒÔ³¬Á´½ÓÐÎʽ±êÃ÷ÎÄÕ Ôʼ³ö´¦ ¡¢×÷ÕßÐÅÏ¢ºÍ±¾ÉùÃ÷¡£·ñÔò½«×·¾¿·¨ÂÉÔðÈΡ£http://blog.csdn.net/Neverland2012
ÎÒÃǾ³£»áÈ¥ÏÂÔرðµÄ·þÎñÆ÷ÉϵĶ«Î÷..»òÕß¹ÒÔر¾µØµÄĿ¼µ½Ò»ÁíÒ»¸öĿ¼Ö÷ҪΪÁË·ÃÎÊÆðÀ´·½±ã·¾¶ÈÝÒ×¼Çס.Õâ¸ö·þÎñÖ÷ÒªÓÐÁ½¸öÅäÖÃÎļþÒ»¸öÊÇ/etc/auto.master.Õâ¸öÎļþ¶¨ÒåÁ˹ÒÔصĹÒÔصãºóÃæ½ô¸ú×Åmount¶¯×÷...ÁíÒ»¸öÊÇ/etc/auto.misc,Õâ¸öÎļþ¶¨Òå¹ÒÔصĵط½ÒÔ¼°±»¹ÒÔÚµÄĿ¼.´ËĿ¼¿ÉÒÔÊÇÔ¶³Ì·þÎñÆ÷ÉϵÄĿ¼Ҳ¿ÉÒÔÊDZ¾µØĿ¼.....ÎÒÃÇ¿ÉÒÔ¼ä½ÓÀ´½øÐÐÓ³ÉäÔ¶³Ì»úÆ÷ÉϵÄĿ¼µ½±¾»ú,Ò²¿ÉÖ±½ÓÓ³Éä±¾µØµÄĿ¼...
ÏÂÃæÎÒÀ´¸ø´ó¼ÒÏêϸ½²½â¼ä½ÓÓ³ÉäÔ¶³Ì»úÆ÷Ŀ¼µ½±¾µØµÄĿ¼.......ÏÈ¿´¿´¿´/etc/auto.masterµÄÅäÖÃÎļþ
#
# $Id: auto.master,v 1.4 2005/01/04 14:36:54 raven Exp $
#
# Sample auto.master file
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# For details of the format look at autofs(5).
#
#/misc /etc/auto.misc
/myfiles /etc/auto.home # /myfiles¶¨ÒåÁËmountµÄ¹ÒÔصã.¶ø/etc/auto.home¶¨ÒåÁËmountµÄ¶¯×÷./etc/auto.home±¾Éí²»´æÔÚ¿ÉÒÔ×Ô¼º´´½¨..
/myftp /etc/auto.misc # ͬÀí/myftp¶¨ÒåÁËmountµÄ¹ÒÔصã¶ø/etc/auto.misc¶¨ÒåÁËmountµÄ¶¯×÷..
# NOTE: mounts done from a hosts map will be mounted with the
# "nosuid" and "nodev" options unless the "suid" and "dev"
# options are explicitly given.
#
/net -hosts
#
# Include central master map if it can be found using
# nsswitch sources.
#
# Note that if there are entries for /net or /misc (as
# above) in the inc
Ïà¹ØÎĵµ£º
¹¤×÷Ä¿±ê£º¿ª·¢°åÉϵÄÎļþϵͳͨ¹ýnfsÍøÂç¹ÒÔØ£¬µ÷ÊÔpowerpc 8315»ò5121
PC»ú»·¾³£º(1)ubuntu 8.04 linux OS »òÕß (2)ÐéÄâ»úVMware£¨ubuntu 8.04£© + Windows XP OS
¿ª·¢°å£ºFreescaleµÄpowerpc¿ª·¢°å8315»ò5121µÈµÈ
PC»úÐèÒªµÄ´®¿Úµ÷ÊÔ¹¤¾ß:
£¨1£©ubuntu linux OS : minicom
£¨2£©Windows XP OS: ¸½¼ ......
Ç°ÑÔ:ÕâÒ»ÕÂÎÒÃÇÌÖÂÛÒ»ÏÂLinuxϵÄÐźŴ¦Àíº¯Êý.
LinuxϵÄÐźŴ¦Àíº¯Êý:
1.ÐźŵIJúÉú
2.ÐźŵĴ¦Àí
3.ÆäËüÐźź¯Êý
--------------------------------------------------------------------------------
Ò»¸öʵÀý
1¡£ÐźŵIJúÉú ......
Èç¹ûÄã°®ºÃѧϰ֪ʶ£¬ÓÈÆäÊÇLinux²Ù×÷ϵͳ֪ʶ£¬Ëæ×ÅLinuxÓ¦ÓõÄÀ©Õ¹£¬Ðí¶àÅóÓÑ¿ªÊ¼½Ó´¥Linux£¬¿ÉÄã²»ÖªµÀÈ¥ÄÄÀïÕÒµ½ÕâЩ֪ʶ£¬À´ÕâÀÈÃÄã¸ü¼ÓÁ˽âLinuxѧϰ·½·¨¡£ÈÃÄãÈ«ÃæÕÆÎÕLinuxѧϰ·½·¨¡£
1£®Ñ§Ï°µÄÄ¿µÄ
¡¡¡¡Í¨¹ýLinuxµÄѧϰÕÆÎÕUNIXµÄÄ¿µÄÏë±Ø²»Óöà˵ÁË£¬ÔÚÕâ¸öÍøÂçÈ˲ÅÉí¼Û±¶ÔöµÄÄê´ú£¬Ïë¿¿¼¼Êõ³Ô·¹ÓÖ²»ÏëÕÆÎÕÍ ......
#include
#include
pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
pthread_cond_t cond = PTHREAD_COND_INITIALIZER;
void *thread1(void *);
void *thread2(void *);
int i=1;
main(void)
{
pthread_t t_a;
pthread_t t_b;
pthread_create(&t_a,NULL,thread1,(void *)NULL) ......