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

Linux¶à½ø³Ì¶àÏ̱߳à³Ì

´´½¨Ëĸö×Ó½ø³Ì£¨²¢ÁУ©£¬Ã¿¸ö×Ó½ø³Ì·Ö±ð´´½¨Á½¸ö×ÓỊ̈߳¬¿ÉÖ»Ìṩ¼òµ¥µÄ´òÓ¡Óï¾ä  £¨ÒòΪ³õѧ£¬Ê²Ã´Ò²²»»á£©


´´½¨ºÃ½ø³ÌºóÊÇÖ±½ÓÓÃpthread_creat()´´½¨×ÓỊ̈߳¬»¹ÊÇÒªµ÷ÓÃexec,ÔÚ´´½¨×ÓÏß³Ì?


Ïß³Ìid  pthread_tÀàÐ굀 ÓÃʲôÓï¾äÊä³ö  ÎÒÓã¥d »á¾¯¸æ  ¶øÇÒÊä³ö¸ºµÄ ºÜ³¤µÄÊýÖµ


#include <stdio.h>
#include <unistd.h>
#include <pthread.h>
#include <stdlib.h>
#include <sys/wait.h>
int * thread1 (void *arg)
{pthread_t newthid;
newthid=pthread_self();
  printf("t1%d\n", newthid);
  return NULL;
}
int * thread2 (void *arg)
{

  printf ("t2 \n");
  return NULL;
}
int * thread3 (void *arg)
{
  printf ("t3 \n");
  return NULL;
}

int * thread4 (void *arg)
{
  printf ("t4\n");
  return NULL;
}
int * thread5 (void *arg)
{
printf("t5\n");
  return NULL;
}
int * thread6 (void *arg)
{
  printf ("t6\n");
  return NULL;
}
int * thread7 (void *arg)
{
printf("t7\n");
  return NULL;
}
int * thread8 (void *arg)
{
  printf ("t8\n");
  return NULL;


Ïà¹ØÎÊ´ð£º

javaÈçºÎ¿ØÖÆÔ¶³ÌLinuxÖØÆô

ÎÒĿǰÔÚ±¾µØµÄlinuxÉÏдÁËÒ»¸öswingµÄ½çÃæ£¬Ïëͨ¹ýÕâ¸ö½çÃæÀ´¿ØÖÆÆäËüµçÄÔµÄlinuxÖØÆô¡£
ÎÒÖªµÀÓÃRuntime.getRuntime().exec("shutdown -r");¿ÉÒÔ¿ØÖƱ¾»úLinuxÖØÆô£¬µ«ÊÇÔõô¿ØÖÆÔ¶³ÌµÄlinuxÖØÆôÄØ£¿ ......

ÓйØlinux°²×°½Å±¾kickstartµÄ±àд

ÎÒÖ®Ç°ÖÆ×÷µÄlinux×Ô¶¯°²×°isoÒѾ­³É¹¦ÁË£¬ÏÖÔÚÏë¶ÔÆä½øÐÐһЩ¶¨ÖÆÐ޸쬱ÈÈ磬¸ü¸ÄgrubͼƬµÈ¡£
ÎÒÔÚks.cfgµÄ%post¶ÎÀïÃæÊÇÕâÑùдµÄ£º
%post --nochroot
# Move the contents of the tar into their new locati ......

LinuxÈçºÎÏñwindowsÄÇÑù¸øÎļþ¼ÐÌí¼ÓÓû§

ÎÒµÄÒâ˼ÊÇ£º

ÔÚ²»¸ü¸ÄÔ­À´µÄÎļþ¼ÐËùÓÐÈË£¬ËùÓÐ×飬ÆäËûÈËȨÏÞµÄÇé¿öÏ£¬µ¥¶À¸øÎļþ¼ÐÊÚȨijÓû§

±ÈÈç/var/www Õâ¸öÎļþ¼Ð£¬Ô­À´ÏµÍ³ÓÐĬÈϵÄÊôÖ÷ºÍÊô×飬ÎÒÏÖÔÚ²»ÏëÈ¥¸ÄËüÔ­À´µÄÉ趨£¬Ö»ÊÇÏë¸øËüÔö¼ ......

linuxÏÂÔõÑùÈÃ×Ô¼ºÐ´µÄ³ÌÐòÔÚÈκÎĿ¼¶¼¿ÉÒÔÓÃ

ÔÚlinuxÏÂдµÄһЩС³ÌÐòºÍ½Å²½£¬Ã¿´ÎÒªÔËÐж¼ÓÐÇл»µ½ËüËùÔÚµÄĿ¼£¬
ÔõÑùÈÃËüÔÚÆäËûĿ¼Ҳ¿ÉÒÔÓÃÄØ£¿¾ÍÈçÓÃvi»òlsÕâЩÃüÁîÒ»Ñù
³¢ÊÔ¹ýÌí¼Ó»·¾³±äÁ¿£¬µ«²»³É¹¦£¬²»¶®
ûÓÐÈ˻شð

ÏñviÄÇЩ£¬ËüÃÇËùÔÚµÄĿ¼¶¼Å ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ