PHP使用Berkley的socket库来创建它的连接。socket只不过是一个数据结构。你使用这个socket数据结构去开始一个客户端和服务器之间的会话。这个服务器是一直在监听准备产生一个新的会话。当一个客户端连接服务器,它就打开服务器正在进行监听的一个端口进行会话。这时,服务器端接受客户端的连接...
分类:
其他好文 时间:
2014-05-26 21:52:58
阅读次数:
422
在《Pragmatic Ajax A Web 2.0 Primer
》中对readyStae状态的介绍,摘译如下:0: (Uninitialized) the send( ) method has not yet been
invoked.1: (Loading) the send( ) metho...
分类:
其他好文 时间:
2014-05-26 20:46:09
阅读次数:
293
we small stone crusher is especially designed
to handle and process bulk materials. The emergence of small stone crusher makes
up for the deficiency i...
分类:
其他好文 时间:
2014-05-23 06:31:25
阅读次数:
239
一般来说,linux服务器大多是通过ssh客户端来进行远程的登陆和管理的,使用ssh登陆linux主机以后,如何能够快速的和本地机器进行文件的交互呢,也就是上传和下载文件到服务器和本地?与ssh有关的两个命令可以提供很方便的操作:
sz:将选定的文件发送(send)到本地机器 rz:运行该命令会弹出...
分类:
系统相关 时间:
2014-05-23 04:54:32
阅读次数:
341
By Jason Schadewald (@resolvedfixed), Parasoft
Product ManagerIn the modern world of Agile, SaaS, and DevOps, the term
“process” sounds outdated. It r...
进程(Process)和线程(Thread)是程序运行的两个基本单元。Java并发编程更多的是和线程相关。
进程
进程是一个独立的执行单元,可将其视为一个程序或应用。然而,一个程序内部同事还包含多个进程。Java运行时环境就是一个单独的进程,在它内部还包含了作为进程的各种类和程序。
线程
可以将线程看做轻量级的进程。线程存在于进程当中,需要的资源开销较小。同一进程中的线程共...
分类:
编程语言 时间:
2014-05-23 00:16:01
阅读次数:
372
1. 进程调度the process scheduler is the component of a
kernel that selects which process to run next.进程调度器需要使 处理器使用率最大化,并且提供
使多个进程并发执行的虚拟Deciding which pr...
分类:
系统相关 时间:
2014-05-22 16:07:11
阅读次数:
505
An IEnumerable objectAn Action of T which is
used to process each item in the listList dataList = new List { "this", "is",
"random", "sentence...
分类:
Web程序 时间:
2014-05-22 16:01:17
阅读次数:
290
unix domain socket
是IPC通信的一种方式,可用于与管理进程间通信,同时由和网络socket统一,所以很好管理,使用还是比较多。现举个例子: server.c 1 #include
2 #include 3 #include 4 #include 5 #include ...
分类:
其他好文 时间:
2014-05-22 14:40:25
阅读次数:
533
服务端代码:/* * testSocketService.c * * Created on:
2012-8-16 * Author: 皓月繁星 */#include #include #define PO...