here's a new piece. It's kind of a mend.
AnywayWhat is the difference between synchronous (synchronous) IO and asynchronous (asynchronous) Io, blocking (blocking) IO and non-blocking (non-blocking) IO respectively. The problem is that different people may give different answers, such as wikis, that asynchronous
What is the difference between synchronous (synchronous) IO and asynchronous (asynchronous) Io, what is blocking (blocking) IO and non-blocking (non-blocking) IO respectively? The problem is that different people may give different answers, such as wikis, that asynchronous IO
IO model1, blocking IO2, non-blocking IO3, multiplexing IO4, asynchronous IOOne, blocking IOThe blocking IO is characterized by a block of two phases of IO execution (two stages of waiting for data and copying data).Virtually all IO interfaces (including the socket interface) are blocking, unless specifically specified
Javaio Flow
The first thing to understand is this stream word: Java abstracts different inputs, output sources into streams, and allows Java programs to use the same way to access different inputs and output sources through streaming. It would be nice to simply interpret the "flow" here as an ordered data from origin to acceptance.
Classification of IO streams:
There are 3 ways of classifying:1, according to the direction of flow:i
Java IO producer stream and byte streamI. Basic Concepts
Stream: flows from one end to the other, from the source to the destination.Always centered on the program, it is a program and a file | array | Network Connection | database operations.
Ii. IO stream classification
1. Flow Direction:
Input stream and output stream
2. Data:
Byte stream: Binary. It can process text files, videos, and audios.Upload stre
First you need to knowWhat is Io:io is the input/output interfaceRead this article to take the following questions1. Cluster bottlenecks why IO?2. How much do you know about IO?This is only a personal point of view:When we are confronted with a cluster of operations, what we want is to be read. But in the face of big data, reading data needs to go through IO, whe
A good introduction and use of Linux IO monitoring commands.1. System Level IO monitoring IostatIostat-xdm 1 # Personal habits%util indicates how busy the disk is. 100% indicates that the disk is busy and 0% indicates that the disk is idle. Note, however, that disk busy does not represent high disk (bandwidth) utilizationArgrq-sz submitted to the drive layer IO r
The content of this section:
Introduction to I/O Models
Blocking I/O (blocking IO)
non-blocking I/O (non-blocking IO)
multiplexed I/O (IO Multiplexing)
Asynchronous I/O (asynchronous I/o)
IO Model comparison and analysis
Selectors module
Introduction to an
MVC allows extremely flexible request processing method signing methods. For method input parameters, multiple types of input parameters are allowed, which are described in the following table:
Optional type of request processing method input parameters
Description
Java basic data type and string
By default, the URL parameter is bound by name matching. You can use the @ requestparam annotation to change the default binding rule.
Request/response/ses
Waiting for data preparation (waiting for theCopy data from the kernel into the process (Copying the data from the kernel-the process)Stevens compared five IO Model in the article:Blocking IOnonblocking IOIO multiplexingSignal Driven IOAsynchronous IOSince signal driven IO is not commonly used in practice, I only refer to the remaining four IO Model.Blocking
. factory. beanFactory; 5 import org. springframework. beans. factory. xml. xmlBeanFactory; 6 import org. springframework. core. io. classPathResource; 7 import org. springframework. core. io. resource; 8 9 public class app {10 @ Test11 public void testIOC () {12 13 // User user = new User (); previously created object 14 // now the object is handed over to the IOC container of
Tags: mapping example virtual ALT address Space Col OS return readSome concepts:Virtual Space : is the space in which all the addresses that the process sees are composed. A process in the virtual space remapping all the physical addresses assigned to it.The addressing return is related to the number of bits in the computer. It is divided into kernel space and user space. For 32-bit Linux systems, the highest 1G bytes are kernel space. The lowest 3G bytes are user space.Process Blocking : This i
Honghu Cloud Business Enterprise Distributed internet e-commerce platform, launched pc++app+ cloud Service cloud business platform system, including business-to-commerce, consumer-to-business, on-the-net, new retail, live e-commerce and other sub-platforms.Distributed, microservices, Cloud architecture e-commerce platform Java B2B2CTechnical SolutionsDevelopment language: Java, EEDatabase: MySQLJDK Support version: JDK1.6, JDK1.7, JDK1.8 versionUniversal frame: maven+springmvc+mybatis+
I reviewed the concepts related to Io, NIO and AIO in the morning and recorded some of these points.
from the programming language level
BIO | NIO | AIO in the Java perspective, understanding, Linux C also has the concept of AIO (library), these concepts do not know what reason is fired up, here only from the Java perspective.
BIO, synchronous blocking Io, simple comprehension: One connect
Add another theoretical analysis with high handwriting to facilitate a deeper understanding.
From: http://blog.csdn.net/historyasamirror/article/details/5778378
========================================================== ==================================
What are the differences between synchronous I/O and asynchronous I/O, blocking I/O, and non-blocking I/O? Different people may give different answers to this question. For example, wiki considers asynchronous
Related noun analysisSynchronization (synchronous): When a process executes a task, another process must wait for it to finish before it can continue execution#所谓同步, that is, when a function call is made, the call does not return until the result is obtained. By this definition, the vast majority of functions are synchronous invocations. But generally speaking, we are talking about synchronous and asynchronous tasks, especially those that require other components to collaborate or need to be don
AutoconfiguratorAnother important key component of Spring boot Framework is spring boot autoconfigurator. Most of the spring IO Platform (Spring Framework) Critics opinion are that ' to develop a spring-based application requires
Reproduced from: http://blog.csdn.net/daijialin/article/details/231384Prior to JDK 1.4, Java IO Operations were concentrated in the Java.io package and were based on the streaming blocking (blocking) API. For most applications, such APIs are easy to use, however, some applications with high performance requirements, especially server applications, often require a more efficient way to process IO. From JDK 1
1.1.Event-Driven Event-driven is a programming paradigm, a programming style that specializes in dealing with unknown events by binding an event, activating the thing after an external trigger, and achieving the purpose of performing certain operations. such as the browser's onclick () event1.2.IO Model Basics Before interpreting, there are a few concepts to be explained:
User space and kernel space
Process switching
Blocking of proc
AIO (asynchronous blocking IO) asynchronous blocking IONIO is a synchronous IO, because the program requires IO when it needs to get the IO permission to do the IO operation in person before the next operation. AIO is an improvement on NIO (so Aio is also called nio.2), whic
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.