进程间通信进阶阅读参考链接

来源:互联网 发布:人工智能少年普及知识 编辑:程序博客网 时间:2024/06/13 09:58

1. 信号:

进阶:http://blog.csdn.net/lisongjia123/article/details/50471878?ref=myread

基础:http://fuxiao.me/archives/197


2. 文件:

进阶:暂未找到

基础:http://blog.jobbole.com/16882/

系统调用:flock() lockf() fcntl()


bugs: Linux系统中的强制锁是不可靠的,新的内核不清楚是否已经解掉相应bug。


3. socket


4. 信号量

进阶:http://blog.csdn.net/qinxiongxu/article/details/7830537

基础:http://blog.csdn.net/ljianhui/article/details/10243617

POSIX和System V的分别描述一下API函数

5. 消息队列

6. 管道

7. 共享内存

进阶:http://www.cnblogs.com/hicjiajia/archive/2012/05/17/2506632.html(分好几篇)

基础:http://blog.csdn.net/ljianhui/article/details/10253345

           http://blog.chinaunix.net/uid-26000296-id-3421346.html


upgrade.xml:

<?xml version="1.0" encoding="UTF-8"?>
<CLISH_MODULE xmlns="http://clish.sourceforge.net/XMLSchema" 
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://clish.sourceforge.net/XMLSchema
                     http://clish.sourceforge.net/XMLSchema/clish.xsd">
<!--=======================================================-->
   <COMMAND name="upgrade"
            help="Upgrade">
       <DETAIL>
The ping utility uses the ICMP protocol's mandatory ECHO_REQUEST datagram
to elicit an ICMP ECHO_RESPONSE from a host or gateway.  ECHO_REQUEST
datagrams (``pings'') have an IP and ICMP header, followed by a ``struct
timeval'' and then an arbitrary number of ``pad'' bytes used to fill out
the packet.
       </DETAIL>
       <PARAM name="num_echos"
               help="Specify upgrade version"
              ptype="STRING"
             prefix="version"
            default="xxxx.bin" >
            <PARAM name="hops"
               help="Specify maximum number of hops"
              ptype="UINT"
              prefix="-h" >
               <PARAM name="source_ip"
                   help="Host name or IP address"
                   ptype="IP_ADDR" >
                   <PARAM name="user_name"
                       help="User name"
                       ptype="STRING" >
                       <PARAM name="passwd"
                           help="Password"
                           ptype="STRING" />
                   </PARAM>
               </PARAM>
           </PARAM>
       </PARAM>
           
       <ACTION>exec echo ${version :num_echos} ${-t :hops} ${source_ip} ${user_name} ${passwd}</ACTION>
   </COMMAND>
   <!--=======================================================-->
   <!--=======================================================-->    
</CLISH_MODULE>  

0 0
原创粉丝点击