首页 > 其他 > 详细

Before Tomcat EndPoint: I/O Models

时间:2021-03-13 09:01:14      阅读:33      评论:0      收藏:0      [点我收藏+]

Before Tomcat EndPoint: I/O Models

When an user thread launchs an I/O operation, it would have to experience two steps to get the network data.

  • The user thread wait for the OS kernel copy the data from the network interface to the kernel space.
  • The OS kernel copy the data from the kernel space to the user space.

技术分享图片

To complete the two steps, smart people proposed some I/O models. Follow these models, we can get the data from network.

There are five I/O models in Unix: blocking I/O, nonblocking I/O, I/O multiplexing (select and poll), signal driven I/O (SIGIO), asynchronous I/O (the POSIX aio_functions).

Blocking I/O Model

技术分享图片

技术分享图片

Nonblocking I/O Model

技术分享图片

技术分享图片

I/O Multiplexing Model

技术分享图片

技术分享图片

Signal-Driven I/O Model

技术分享图片

Asynchronous I/O Model

技术分享图片

技术分享图片

Before Tomcat EndPoint: I/O Models

原文:https://www.cnblogs.com/c72dfa/p/14527228.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!