Retrieving data using an asynchronous buffer
    2.
    发明授权
    Retrieving data using an asynchronous buffer 有权
    使用异步缓冲区检索数据

    公开(公告)号:US08239447B2

    公开(公告)日:2012-08-07

    申请号:US11024562

    申请日:2004-12-28

    IPC分类号: G06F15/16 G06F12/00 H04L12/56

    CPC分类号: H04L49/9031 H04L49/90

    摘要: A mechanism for retrieving data over a network using an asynchronous buffer is described herein. According to one embodiment, an exemplary process includes, in response to a request for first data from a client via a first thread, determining whether a local circular buffer contains the requested first data, the local circular buffer having a head region and a tail region for identifying a head and a tail of the local circular buffer respectively, and the local circular buffer containing a portion of a data file maintained by a server over a network, generating a second thread to the server over the network to request the first data, if the local circular buffer does not contain the requested first data, and returning the first thread to the client while waiting for a result of the second thread from the server. Other methods and apparatuses are also described.

    摘要翻译: 这里描述了一种使用异步缓冲器通过网络检索数据的机制。 根据一个实施例,示例性过程包括响应于经由第一线程从客户端请求第一数据,确定本地循环缓冲器是否包含所请求的第一数据,所述本地循环缓冲器具有头部区域和尾部区域 用于分别识别本地循环缓冲器的头部和尾部,以及包含由服务器通过网络维护的数据文件的一部分的本地循环缓冲器,通过网络生成第二线程到服务器以请求第一数据, 如果本地循环缓冲区不包含所请求的第一数据,并且在等待来自服务器的第二线程的结果的同时将第一线程返回给客户端。 还描述了其它方法和装置。