zoukankan      html  css  js  c++  java
  • asyn proposals

    Objective:

      

    1, threadpool + blocking queue

    fn main
        enQueue(waitTrig)
        
    fn waitTrig    
        print 'Wait Trig Done'
        enQueue(startOtf)
        enQueue(PrepareNextJob)
    fn    startOtf
        enQueue(waitGrabDone)
        enQueue(Inspect)
        
    fn    waitGrabDone
        enQueue(waitTrig)

    2, javascript promise

    3, c++ future

    http://www.cnblogs.com/haippy/p/3279565.html

    http://blog.csdn.net/liuxuejiang158blog/article/details/17354115

    http://stackoverflow.com/questions/12620186/futures-vs-promises

    http://stackoverflow.com/questions/11004273/what-is-stdpromise

    http://stackoverflow.com/questions/20974022/c-futures-promises-like-javascript

    4, javascript callback

    5,impl a asyn functions in node.js

    https://blog.scottfrees.com/building-an-asynchronous-c-addon-for-node-js-using-nan

     5.asyn await

    https://msdn.microsoft.com/en-us/library/hh191443.aspx

    http://huan-lin.blogspot.com/2016/01/async-and-await.html

    http://www.cnblogs.com/jesse2013/p/async-and-await.html

  • 相关阅读:
    Http请求头与响应头
    获取ip位置方法
    简单的Http Server实现
    HTTP
    long、int与byte数组之间的相互转换
    GlusterFS简单配置
    创建线程池
    网络编程socket
    面向对象-进阶篇
    面向对象-初级篇
  • 原文地址:https://www.cnblogs.com/cutepig/p/5460345.html
Copyright © 2011-2022 走看看