ããããã°åå¼·ä¼ã®æã«ããé¢æ°ãã¤ã³ã¿ãè¿ãé¢æ°ã¯ã©ããã£ã¦æ¸ããï¼ãã¿ããã«ãªã£ãããåã¯ããããæã¯$ man signal ãã¦èª¿ã¹ãæ´¾ã§ããã http://www.linux.or.jp/JM/html/LDP_man-pages/man2/signal.2.html ãã¦ãCè¨èªã使ãæ £ãã人ã«ã¯å¸¸èã§ãããCè¨èªåå¿è ã«ã¨ã£ã¦å°ãé£ããã®ããå¤æ°ã®å®£è¨ã§ãã ä¾ãã°ãåå¿è ã«ã¨ã£ã¦ãé¢æ°ãã¤ã³ã¿ã®é åã¸ã®ãã¤ã³ã¿ãè¿ãé¢æ°ã®å®£è¨ãæ¸ãã®ã¯ãã¾ãç°¡åã§ã¯ããã¾ããã Cè¨èªã®åå¿è ã«ã¯ã以ä¸ã®ãããªã³ã¼ããæ¸ãã®ã¯å°ãé£ãããã¾ããCè¨èªã«ãã¾ãæ £ãã¦ããªã人ã¯ãtypedefãªã©ã使ã£ã¦ãã¾ããã¡ã§ãã typedef int (*func_t)(int); typedef func_t func_arr_t[10]; extern func_arr_t *x[40]; in
http://blog.liris.org/2009/03/java.html ä»äºãããã«éãã§ãã人ã®ã³ã¼ããã家ã®Java(Java6)ã§è©¦ãã¦ã¿ã¾ããã ã·ã§ã«ã§åããã¦ãã°ã©ãã¯gnuplotã§ãããã¤ãã¯æºè¼ã§ãã $ seq 1 100 |xargs -n 1 java test |tee /tmp/java-cl.out $ seq 1 100 |xargs -n 1 java -server test |tee /tmp/java-sv.out 横軸ã¯åæã¹ã¬ããæ°ã縦軸ãæé(ããªç§)ã§ããè¦ã¯ä½ãæ¹ãéãã¦åªç§ã§ãã ã¯ã©ã¤ã¢ã³ãVMã¨ãµã¼ãVMã®å·®ããããã§ããã¨è¨ããããµã¼ãVMãåªç§ããã¾ããã¨è¨ããããµã¼ãVMã®æ°å¤ã¯å¤ã§ãããã¼ã¿ã«ã§ã¾ããã«ã¼ãæ°ãç·å½¢ã«å¢ãã¦ããã¯ããªã®ã«ãå¦çæéããã¾ãå¢ãã¦ãã¾ããã 試ãã«ã¨æã£ã¦ãCã®ã³ã¼ãã¨æ¯è¼ãã¦ã¿ã¾ãã(ã³
åå perlembed - C ããã°ã©ã ã« perl ãåãè¾¼ã 説æ åæ¸ã ããªãã®æ¬²ããã®ã¯ã©ãï¼ Perl ãã C ã使ã perlxstut, perlxs, h2xs, perlguts, perlapi ãèªã¿ã¾ããã. Perl ãã Unix ããã°ã©ã ã使ã ããã¯ã¯ãªã¼ãåã³ perlfunc ã«ãã system 㨠exec ãèªã¿ã¾ããã. Perl ãã Perl ã使ã "do" in perlfunc åã³ "eval" in perlfunc, "require" in perlfunc, "use" in perlfunc ãèªã¿ã¾ããã. C ãã C ã使ã æ§æãèãç´ãã¦ã¿ã¾ããã. "><C ãã Perl ã使ã> ãã®ã¾ã¾ã©ãã... éã®ã C ããã°ã©ã ã®ã³ã³ãã¤ã« C ããã°ã©ã ã« Perl ã¤ã³ã¿ããªã¿ã追å C ããã°ã©
ã¯ããTCPãµã¼ãã®æ¸ãæ¹ - nyaxtã®PCä½æ¥ã㰠㧠id:nyaxt ãããæ¸ãã¦ãã£ãããããã«ã epoll ã kqueue ã使ã TCP_NODELAY, TCP_DEFER_ACCEPT *1 çãæ´»ç¨ãã TCP ãã±ãããæèãã I/O ã·ã¹ãã ã³ã¼ã«ã®åæ°ãæå°ã«ãã sendfile ã¨ãã£ããããã¯ã確å®ã«ããã¹ããã¨ã ã¨æãã¾ããä¸æ¹ã§ãTCP é¢é£ä»¥å¤ã®ãªã¼ãã¼ããããå®ã¯çµæ§ãã£ã¦ã æ¥ç¶ã®ã¿ã¤ã ã¢ã¦ãå¦ç ãã°ã®åºå ã¡ã¢ãªã®ç¢ºä¿ã解æ¾ããããªã ãããã«ãæ°ãé ãå¿ è¦ããããã¨æãã¾ãã æ¥ç¶ã®ã¿ã¤ã ã¢ã¦ãå¦çã«ã¤ãã¦ã¯ã以å Kazuho@Cybozu Labs: é«éãªCometãµã¼ããæ¸ãã¦ã¿ã件 ã«æ¸ããããã«ããããã¢ã¬ã¤ã®ãªã³ã°ãããã¡ã使ãã®ããã¹ãã ã¨æãã¾ãã ãã°ã®åºåã«ã¤ãã¦ãè¤æ°è¡ãï¼åã®ã·ã¹ãã ã³ã¼ã«ã«ã¾ã¨ãã¦ããããã©
æè¿ã®ä¸»ãªæ´æ° 2006-05-28 - 第äºç 2001-xx-xx - åç ã¯ããã« é åã¯ããã°ã©ãã³ã°ã®éã«ç¨ãããããã¼ã¿æ§é ã¨ãã¦æãåºæ¬çãªãã®ã§ ããï¼é åã表ç¾ãã¦ããã®ã¯ï¼é åºä»ãããã nï¼>= 0ï¼åã®ç¯ç¹ã®ä¸¦ ã³ã§ããï¼åç¯ç¹ã«ã¯ç¹å®ã®åã®ãã¼ã¿ãä¿æãããï¼ãã®ãããªæ§é ã¯ï¼ã ãæ½è±¡çãªç¨èªã§ç·å½¢ãªã¹ãï¼ãããã¯åã«ãªã¹ãï¼ã¨å¼ã°ããï¼ é åã¯ï¼ç¯ç¹ã®çªå·ï¼é åã®æ·»åï¼ãæå®ãããã¨ã§ï¼ä»»æã®ç¯ç¹ã«ä¸å®æé ï¼O(1)ï¼ã§ã¢ã¯ã»ã¹ã§ããã¨ããé·æãæã¤ï¼ä¸æ¹ï¼ãªã¹ãã¸ã®ç¯ç¹ã®æ¿å ¥ï¼ åé¤ã¯å¾æã§ã¯ãªãï¼ä¾ãã°ï¼ãªã¹ãã®å é ã«æ°ããç¯ç¹ãæ¿å ¥ãããã¨ãã ã¨ï¼é åã®åè¦ç´ ãä¸ã¤ãã¤å¾ãã«ãããã¨ããä½æ¥ãå¿ è¦ã«ãªãããï¼è¨ç® éã¨ãã¦ã¯ O(n) ã¨ãªãï¼åé¤ã«ã¤ãã¦ãåæ§ã§ï¼ããè¦ç´ ãåé¤ããã¨ï¼ã ã®è¦ç´ ããå¾ãã«ããè¦ç´ å ¨ã¦ãä¸ã¤ãã¤åã«ãããå¿ è¦ããã
Cè¨èªã¯ããã¤ã³ã¿ã使ããè¨èªã§ãããã¤ã³ã¿ã使ãã°ãã¡ã¢ãªã®ç´æ¥çãªæä½ãªã©ãããæè»ãªããã°ã©ãã³ã°ãå¯è½ã§ããä¸æ¹ããã®ããã«ã¯ãã¤ã³ã¿ãã©ã®ãããªã¡ã¢ãªé åãæã示ãã¦ããããã¾ããã¤ã³ã¿èªä½ãæå¹ãªã¢ãã¬ã¹ãä¿æãã¦ããããªã©ã«ã¤ãã¦ååãªç解ãå¿ è¦ã§ãã æ¬ç¨¿ã§ã¯ãCè¨èªã®ãã¤ã³ã¿ã«ã¤ãã¦ãé åã¨ã®å¯¾æ¯ã«ç¦ç¹ãå½ã¦ã¦è§£èª¬ãè¡ãã¾ãã ï¼ï¼ï¼ Cè¨èªã§ã¯ããã¤ã³ã¿ãé åã®ããã«æ±ããã¨ãã§ãã¾ããã¾ããé ååã¯ãã¤ã³ã¿ã«å¤æå¯è½ã§ãå¥ã®ãã¤ã³ã¿ã«ä»£å ¥ã§ãã¾ãã ã¾ãã¯1次å ã®å ´åã«ã¤ãã¦ããã¤ã³ã¿ã¨é åã®é¢ä¿ãèãã¦ã¿ã¾ãããã 宣è¨æã®è¨è¿° ãã¾ããã¤ã³ã¿ã¨é åã次ã®ããã«å®£è¨ããã¨ãã¾ãã char *p; â charåã¸ã®ãã¤ã³ã¿pãå®£è¨ char a[5]; â charåãè¦ç´ ã¨ãããè¦ç´ æ°5ã®é åaãå®£è¨ ãã®å®£è¨ã®çµæãå³ã«ããã¨ãå³1ãå³2ã®ããã«ãªãã¾ãã å³
ãã¤ã³ã¿ã¨ã¯ ãã¤ã³ã¿ã¯C/C++è¨èªã®ç¹å¾´çãªæ©è½ã®ã²ã¨ã¤ã§ããããã¤ã³ã¿ï¼pointerï¼ãç´è¨³ããã¨ãæã示ããã®ãã§ãããå¥ã®å¤æ°ãæååå®æ°ã®å ´æãæã示ãããã«ä½¿ããã¾ãããã¤ã³ã¿ãæããã¤ã³ã¿ï¼ãã¤ã³ã¿ã¸ã®ãã¤ã³ã¿ï¼ã¨ãããã®ãåå¨ããã ãã®ãã¼ã¸ããèªã¿ããã ãã¦ããèªè ã«ãã£ã¦ã¯ããCè¨èª ãã¤ã³ã¿ããC++ ãã¤ã³ã¿ããªã©ã®ãã¼ã¯ã¼ãã§Webæ¤ç´¢ããããã¨ããããããããªããããããã¨ãã¤ã³ã¿ã«ç¹åããå 容ã®æ¸ç±ãããã¤ãè¦ã¤ãããããããã ã奥ãæ·±ãæ©è½ã¨ãããã¨ã§ããã ãã¤ã³ã¿ã®ç¨é ã§ã¯ããã¤ã³ã¿ã¯ã©ããªã¨ããã§ä½¿ããã¦ããã®ã ãããC/C++è¨èªã§ã¯ããããããå®ç¾©ããã¦ããé¢æ°ãå¤æ°åå¨ãããããã®ä¸è¦§ã«ã¯ã*ï¼ã¢ã¹ã¿ãªã¹ã¯ãããã¯ã¢ã¹ããªã¹ã¯ï¼ãä»ãã¦ãããã®ãããè¦ãããã ãããã¯ãã¤ã³ã¿ã表ãã主ã«æååã®æä½ããã¡ã¤ã«ãã¯ããã¨ãããã¼ã¿ã®å ¥åºå
ãªããªããã¼ãã«ãé«ãï¼å¤ãã®äººãè¸ã¿åºããªãã§ããã«ã¼ãã«ã®ã½ã¼ã¹ã»ã³ã¼ãã®èªè§£ãæ¬é£è¼ã§ã¯ï¼ä»ã¾ã§ã«ã¼ãã«ã»ã½ã¼ã¹ãªãã¦è¦ããã¨ããªãã¨ãã人ã«ï¼èªã¿ããªãã³ãããæããã¾ããä»åã¯ï¼ã©ããããã«ã¼ãã«ã»ã½ã¼ã¹ãèªã¿ããªããããã«ãªãã®ãï¼çè ã®çµé¨ãã話ãã¾ãã Linuxã¦ã¼ã¶ã¼ãªã誰ããã«ã¼ãã«ã®ã½ã¼ã¹ã»ã³ã¼ãï¼ã«ã¼ãã«ã»ã½ã¼ã¹ï¼ãèªãã§ï¼ã©ã®ãããªå¦çãè¡ã£ã¦ããã®ãã確èªãããï¼èªåãªãã®å¤æ´ãå ãããããããªãã®ã§ã¯ãªãã§ããããããããï¼ã«ã¼ãã«ã»ã½ã¼ã¹ã®éã¯è¨å¤§ãªä¸ï¼Cè¨èªã§æ¸ããã¦ããã®ã§ï¼ã³ã³ãã¥ã¼ã¿å é¨ãOSï¼ãªãã¬ã¼ãã£ã³ã°ã»ã·ã¹ãã ï¼ã®ä»çµã¿ãç解ããããã°ã©ãã§ãªãã¨ãªããªãèªã¿ããªãã¾ããããã®ããï¼ã«ã¼ãã«ãèªãããã®ç¬¬ä¸æ©ãè¸ã¿åºããªã人ãæ°å¤ããããã¨ã¯äºå®ã§ãã æ¬è¬åº§ã§ã¯ï¼ããã°ã©ãã§ã¯ãªãããæ®éã®Linuxã¦ã¼ã¶ã¼ãï¼ã«ã¼ãã«ãããç¨åº¦èªåã§
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}