相关文章  
  • Linux系统内核定时器机制详解(下)(2)
  • Linux系统内核定时器机制详解(下)(3)
  • Linux系统内核定时器机制详解(下)(1)
  • Linux系统进程间隔定时器Itimer(下)(3)
  • Linux系统进程间隔定时器Itimer(下)(2)
  • Linux系统进程间隔定时器Itimer(下)(1)
  • Linux操作系统的X86汇编程序设计(3)
  • Linux操作系统的X86汇编程序设计(4)
  • Linux操作系统的X86汇编程序设计(2)
  • Linux操作系统的声音设备编程实例(1)
  •   推荐  
      科普之友首页   专利     科普      动物      植物        天文   考古   前沿科技
     您现在的位置在:  首页 >>文献 >>培训

    Linux进程间通信:管道及有名管道(3)5

    um=write(pipe_fd.,w_buf,1024))==-1) printf("write to pipe error\n"); else printf("the bytes write to pipe is %d \n", writenum); writenum=write(pipe_fd.,w_buf,4096); close(pipe_fd.); } }

    输出结果:

    the bytes write to pipe 1000
    
    
    
    the bytes write to pipe 1000 //注意,此行输出说明了写入的非原子性
    
    
    
    the bytes write to pipe 1000
    
    
    
    the bytes write to pipe 1000
    
    
    
    the byte

    页码:[1] [2] [3] [4] [5] [6] [7]5页、共7页

         

          设为首页       |       加入收藏       |       广告服务       |       友情链接       |       版权申明      

    Copyriht 2007 - 2008 ©  科普之友 All right reserved