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

Linux ÏÂÌõ¼þ±äÁ¿

1.»¥³âËøµÄ´æÔÚÎÊÌ⣺
»¥³âËøÒ»¸öÃ÷ÏÔµÄȱµãÊÇËüÖ»ÓÐÁ½ÖÖ״̬£ºËø¶¨ºÍ·ÇËø¶¨¡£ÉèÏëÒ»ÖÖ¼òµ¥Çé¾°£º¶à¸öÏ̷߳ÃÎÊͬһ¸ö¹²Ïí×ÊԴʱ£¬²¢²»ÖªµÀºÎʱӦ¸ÃʹÓù²Ïí×ÊÔ´£¬Èç¹ûÔÚÁÙ½çÇøÀï¼ÓÈëÅжÏÓï¾ä£¬»òÕß¿ÉÒÔÓÐЧ£¬µ«Ò»À´Ð§Âʲ»¸ß£¬¶þÀ´¸´ÔÓ»·¾³Ï¾ÍÄÑÒÔ±àдÁË£¬ÕâÊÇÎÒÃÇÐèÒªÒ»¸ö½á¹¹£¬ÄÜÔÚÌõ¼þ³ÉÁ¢Ê±´¥·¢ÏàÓ¦Ị̈߳¬½øÐбäÁ¿Ð޸ĺͷÃÎÊ¡£
2.Ìõ¼þ±äÁ¿:
Ìõ¼þ±äÁ¿Í¨¹ýÔÊÐíÏß³Ì×èÈûºÍµÈ´ýÁíÒ»¸öÏ̷߳¢ËÍÐźŵķ½·¨ÃÖ²¹ÁË»¥³âËøµÄ²»×㣬Ëü³£ºÍ»¥³âËøÒ»ÆðʹÓá£Ê¹ÓÃʱ£¬Ìõ¼þ±äÁ¿±»ÓÃÀ´×èÈûÒ»¸öỊ̈߳¬µ±Ìõ¼þ²»Âú×ãʱ£¬Ïß³ÌÍùÍù½â¿ªÏàÓ¦µÄ»¥³âËø²¢µÈ´ýÌõ¼þ·¢Éú±ä»¯¡£Ò»µ©ÆäËüµÄij¸öÏ̸߳ıäÁËÌõ¼þ±äÁ¿£¬Ëü½«Í¨ÖªÏàÓ¦µÄÌõ¼þ±äÁ¿»½ÐÑÒ»¸ö»ò¶à¸öÕý±»´ËÌõ¼þ±äÁ¿×èÈûµÄÏ̡߳£ÕâЩÏ߳̽«ÖØÐÂËø¶¨»¥³âËø²¢ÖØвâÊÔÌõ¼þÊÇ·ñÂú×ã¡£
3.Ìõ¼þ±äÁ¿µÄÏà¹Øº¯Êý
Í·Îļþ£º#include <pthread.h>
       pthread_cond_t cond = PTHREAD_COND_INITIALIZER; //Ìõ¼þ±äÁ¿½á¹¹
       int    pthread_cond_init(pthread_cond_t    *cond,    pthread_condattr_t
       *cond_attr);
       int pthread_cond_signal(pthread_cond_t *cond);
       int pthread_cond_broadcast(pthread_cond_t *cond);
       int pthread_cond_wait(pthread_cond_t *cond, pthread_mutex_t *mutex);
       int   pthread_cond_timedwait(pthread_cond_t   *cond,    pthread_mutex_t
       *mutex, const struct timespec *abstime);
       int pthread_cond_destroy(pthread_cond_t *cond);
Ïêϸ˵Ã÷£º
  £¨1£©´´½¨ºÍ×¢Ïú
Ìõ¼þ±äÁ¿ºÍ»¥³âËøÒ»Ñù£¬¶¼Óо²Ì¬¶¯Ì¬Á½ÖÖ´´½¨·½Ê½
 a.¾²Ì¬·½Ê½
¾²Ì¬·½Ê½Ê¹ÓÃPTHREAD_COND_INITIALIZER³£Á¿£¬ÈçÏ£º
pthread_cond_t cond=PTHREAD_COND_INITIALIZER
 b.¶¯Ì¬·½Ê½
¶¯Ì¬·½Ê½µ÷ÓÃpthread_cond_init()º¯Êý£¬API¶¨ÒåÈçÏ£º
int pthread_cond_init(pthread_cond_t *cond, pthread_condattr_t *cond_attr)
¾¡¹ÜPOSIX±ê×¼ÖÐΪÌõ¼þ±äÁ¿¶¨ÒåÁËÊôÐÔ£¬µ«Ô


Ïà¹ØÎĵµ£º

Linux½Å±¾±àд»ù´¡

1. Linux ½Å±¾±àд»ù´¡
1.1 Óï·¨»ù±¾½éÉÜ
1.1.1 ¿ªÍ·
³ÌÐò±ØÐëÒÔÏÂÃæµÄÐпªÊ¼£¨±ØÐë·ÅÔÚÎļþµÄµÚÒ»ÐУ©£º
#!/bin/sh
¡¡¡¡·ûºÅ#!ÓÃÀ´¸æËßϵͳËüºóÃæµÄ²ÎÊýÊÇÓÃÀ´Ö´ÐиÃÎļþµÄ³ÌÐò¡£ÔÚÕâ¸öÀý×ÓÖÐÎÒÃÇʹÓÃ/bin/shÀ´Ö´ÐгÌÐò¡£
¡¡¡¡µ±±à¼­ºÃ½Å±¾Ê±£¬Èç¹ûÒªÖ´Ðиýű¾£¬»¹±ØÐëʹÆä¿ÉÖ´ÐС£
¡¡¡¡ÒªÊ¹½Å±¾¿ÉÖ´ÐУº
±àÒë ch ......

LinuxÎļþËÑË÷Ö® find / locate / whereis / which

ÒýÑÔ
find×îÇ¿´ó£¬Ê²Ã´¶¼Äܲ飬¿ÉÒÔ¸ù¾ÝÌõ¼þ²éÕÒÎļþ¡£
whichÖ»Äܲé¿ÉÖ´ÐÐÎļþºÍ±ðÃû(alias)¡£
whereisÖ»Äܲé¶þ½øÖÆÎļþ¡¢ËµÃ÷Îĵµ£¬Ô´ÎļþµÈ£¬¿ÉÒÔÕÒµ½¿ÉÖ´ÐгÌÐòºÍman page¡£
locateÊÇÔÚÊý¾Ý¿âÀï²éÕÒ£¬Êý¾Ý¿â´óÖÁÿÌì¸üÐÂÒ»´Î£¬µ«¸úwhereisÒ»Ñù¶¼ÊDzéÊý¾Ý¿âÀïµÄÄÚÈÝ¡£
1.find /etc -name my.so
2.locate ÊÇÓÃÀ´Í¨¹ý ......

ÐÞ¸ÄSUSE LinuxϵͳµÄ³¬¼¶Óû§ÃÜÂë

1 ¡¢ÖØÐÂÆô¶¯»úÆ÷£¬ÔÚ³öÏÖgrubÒýµ¼½çÃæºó£¬°´F2£¬ÔÚÆô¶¯linux µÄÑ¡ÏîÀï¼ÓÉÏinit=/bin/bash£¬Í¨¹ý¸øÄں˴«µÝinit=/bin/bash²ÎÊýʹµÃOSÔÚÔËÐÐlogin³ÌÐò֮ǰÔËÐÐbash£¬³öÏÖÃüÁîÐС£
¡¡¡¡2 ¡¢ÉÔµÈƬ¿Ì³öÏÖ(none)# £ºÃüÁîÐС£
¡¡¡¡3 ¡¢ÊäÈëmount -n / -o remount £¬rw
¡¡¡¡4 ¡¢ÊäÈë mount–n /usr
¡¡¡¡5 ¡¢ÊäÈë cd /usr ......

LinuxÏÂÈí¼þµÄ°²×°ÓëжÔØ

LinuxÏÂÈí¼þµÄ°²×°ÓëжÔØ
 
ÔÚWindowsÏ°²×°Èí¼þʱ£¬Ö»ÐèÔËÐÐÈí¼þµÄ°²×°³ÌÐò£¨setup¡¢installµÈ£©»ò
ÕßÓÃzipµÈ½âѹËõÈí¼þ½â¿ª¼´¿É°²×°£¬ÔËÐз´°²×°³ÌÐò£¨uninstall¡¢unware¡¢“жÔØ”µÈ£©¾ÍÄÜ°ÑÈí¼þÇå³ý¸É¾»£¬ÍêȫͼÐλ¯µÄ²Ù×÷½çÃ棬¼òµ¥
µ½Ö»ÒªÓÃÊó±êÒ»Ö±µã»÷“ÏÂÒ»²½”¾Í¿ÉÒÔÁË¡£¶ø
Linux ......

½ñÌìÎÒÍêÃÀжÔØÁËLinux²Ù×÷ϵͳ£¡£¡£¡

     ½ñÌìÎҳɹ¦µÄжÔØÁËLinux ²Ù×÷ϵͳ£¬ÎҸоõºÜÐË·Ü£¬¾Í´ËÎÒ°ÑÎÒ×öµÄ¹ý³Ì˵Ï¡£
     ÎҵĵçÄÔ×°ÁË˫ϵͳÏÈ×°µÄÊÇWindows XP SP3ϵͳ£¬ºóÀ´ÔÚÒ»¸ö10GµÄÂß¼­·ÖÇøÖÐ×°Á˸öMandriva-linux-2008£¬Ìý˵Linuxϵͳ²»ÄÜËæ±ãɾ³ý£¬ÄÇÑù¿ÉÄÜ»áÆÆ»µÓ²ÅÌÖ÷Òýµ¼¼Ç¼£¨mbr£©£¬Òò´ËÎÒ¾ÍÔÚÍøÉÏ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ