加入收藏 | 设为首页 | 会员中心 | 我要投稿 网站开发网_马鞍山站长网 (https://www.0555zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长百科 > 正文

Boost application performance using asynchronous I/O-ref

发布时间:2021-01-29 10:10:05 所属栏目:站长百科 来源:网络整理
导读:副标题#e# Linux asynchronous I/O is a relatively recent addition to the Linux kernel. It's a standard feature of the 2.6 kernel,but you can find patches for 2.4. The basic idea behind AIO is to allow a process to initiate a number of I/O

This function is called only after the?aio_error?call has determined that your request has completed (either successfully or in error). The return value of?aio_return?is identical to that of the?read?or?write?system call in a synchronous context (number of bytes transferred or?-1?for error).

The?aio_write?function is used to request an asynchronous write. Its function prototype is:

aio_write( struct aiocb *aiocbp );

The?aio_write?function returns immediately,indicating that the request has been enqueued (with a return of?0?on success and?-1?on failure,witherrno?properly set).

(编辑:网站开发网_马鞍山站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!