zoukankan      html  css  js  c++  java
  • fork的微妙问题2

       1:  /*
       2:  author:justinzhang
       3:  email:uestczhangchao@gmail.com
       4:  time:2012-8-30 22:53:33
       5:  desc: from a interview question, fork plus printf buffer is a littel tricky~~
       6:  */
       7:  #include <stdio.h>
       8:  #include <stdlib.h>
       9:   
      10:  int main()
      11:  {
      12:  int i = 0;
      13:  for(i=0; i<2; i++)
      14:  {
      15:      fork();
      16:      printf("-");
      17:      fflush(stdout);
      18:  //    printf("-\n");
      19:  }
      20:  exit(0);
      21:  }
  • 相关阅读:
    PEB结构学习
    2016元旦总结
    pwnable.kr的passcode
    PE文件格式(加密与解密3)(一)
    IDA的脚本IDC的一个简单使用
    Python3的tkinter写一个简单的小程序
    2016/12/3-问鼎杯线上赛1-1-Misc
    2016/12/3-问鼎杯线上赛6-2逆向分析
    redis取经之路
    springboot踩坑出坑记
  • 原文地址:https://www.cnblogs.com/justinzhang/p/2667196.html
Copyright © 2011-2022 走看看