- 博客(6)
- 资源 (1)
- 收藏
- 关注
翻译 PHP 在apache 工作方式
Question: PHP 在APACHE有几种工作方式 1. PHP Module: 预先生成几个子进程,有了REQUEST进来, 没有生成子进程的延迟。 处理完一个请求后不退出,等待下一个请求 2. CGI 一个请求过来后才启动一个进程,请求结束后进程也结束。 效率低下 3. fast-cgi apache启动后启动fast-cgi进程管理器, 同时进程管理器启动多个子进程
2012-09-19 16:48:10 327
翻译 APACHE MPM Multi process module
Question: 分析apache2 MPM机制 First: 1. prefork 没有线程 This Multi-Processing Module (MPM) implements a non-threaded, pre-forking web server that handles requests in a manner similar to Apache 1.3. It is
2012-09-19 16:03:05 351
原创 C strcmp
#include #include #include int main(){ char * str = "aquit"; int i = strcmp(str,"quit"); printf("strcmp equal %d \n",i); char * str2 = "qzuit"; int i2 = strcmp(str2,"quit"); prin
2012-09-18 16:28:21 539
原创 C sizeof 用法
#include #include #include int main(){ //printf("int length equal %d \n",sizeof(int));// print int length int var = 100; //printf("var length equal %d \n",sizeof(var)); //print variab
2012-09-18 15:57:18 476
原创 C strcpy 用法
1. C function strcpy 包含在 string.h 文件中 2. 复制字符串 #include #include #include int main(){ char *s="hello world \n"; char s2[2014]; strcpy(s2,s); printf("s2 equal %s \n",s2); return 0; }
2012-09-18 15:32:50 450
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人