in the General Register. The command of the process is being executed, and the address space of the process is being read and written.
Ready. This process can be executed at any time without waiting for any event, but the CPU is still executing another process, so the process is waiting for scheduling by the kernel in a ready queue. There may be multiple ready processes in the system at the same time. Who should execute the scheduling? The scheduling algorithm of the kernel is based on priorit
Document directory
In layman's terms
From a program perspective
Http://www.artima.com/articles/io_design_patterns.html
Http://note.sdo.com/u/1434409594/n/lvRFW ~ Kjr2n0lx0ne004_r
Http://www.cnblogs.com/xuxm2007/archive/2011/08/15/2139808.html, illustration
I have read some blogs, and few people can make it clear, and many people do not understand it at all.In layman's terms
Blocking and non-blocking,
Java multi-thread (9) blocking queue, java multi-thread blocking queue
Reprinted please indicate the source: http://blog.csdn.net/xingjiarong/article/details/48005091
In the previous blog, we introduced how to use Object locks, conditional locks, and more convenient synchronized keywords to implement multi-thread synchronization and mutual exclusion. You may think it is very convenient to use the synchroni
technology:The Queueing method I chose corresponds to synchronous and asynchronous. Waiting in the queue is synchronous, the number waiting is asynchronous. I am in the process of waiting, be able to call to send text messages read the action, is non-blocking. If in the waiting process, can not make a call to send text messages to read the action, it is blocking.1.3 Summary:Synchronization and Asynchro
Differences between blocking and non-blocking socket in Linux Network Programming-slj_win's column-blog channel-csdn. net
Differences between blocking and non-blocking socket in Linux Network Programming
Category: c
Read by 358
Comment (0)
Favorites
Report Socketlinux Programming Network Ser
Synchronous, asynchronous: Concept: Notification mechanism of the message to explain: related to the IO notification mechanism; The so-called synchronization, is to initiate the call, the caller processing the message, must wait for processing to directly return the result, not finished before is not returned, the caller actively wait for the result; is returned directly by the caller, but does not return the result, etc. when the message is processed, the caller is notified by state, notificati
Transferred from: http://blog.csdn.net/yikai2009/article/details/8653697Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.Directory (?) [-]
Blocking
Blocking operations
Non-blocking operation
Blocking mode-read-implementation
I like to explain some concepts by connecting to some phenomena in real life in my own language. When I can do this, it means that I have understood this concept. the concept to be explained today is: the difference between synchronous/asynchronous and blocking/non-blocking.These two concepts are often confusing, because they both involve Io processing and have some similarities.First, we will explain the concepts of synchronization and Asynchronizati
processing mechanism is similar to select/poll and other multiplexing Io operations. When the concerned message is triggered, the message trigger mechanism will trigger the processing of the message.
Next, let's explain the blocking and non-blocking concepts. These two concepts are related to the status when the program waits for messages (synchronous or asynchronous.
In the above example, whether waiting
Protocol receives the data. When the Protocol receives the data, the Recv function copies the data in the s receiving buffer to the Buf (note that the data received by the protocol may be larger than the length of the Buf, in this case, you need to call the Recv function several times to copy the data in the s receiving buffer. The Recv function only copies data. The protocol is used to receive data ),
The Recv function returns the number of bytes of the actual copy. If a Recv error occurs dur
Understanding synchronous, asynchronous, blocking, and non-blockingconclusion: Blocking, non-blocking is independent of synchronous asynchrony. Turn to knowing"Blocking" and "non-blocking" and "synchronous" and "asynchronous" cannot simply be literally understood, providing
I think that to master the TCP/IP network programming under Linux, at least three levels of knowledge need to be familiar:
1. TCP/IP protocol (e.g. connection establishment and termination, retransmission and acknowledgement, sliding window and congestion control, etc.)
2. Socket I/O system calls (focus like read/write), which is the behavior of the TCP/IP protocol at the application level.
3. Write the performant, scalable server program. including multithreading, IO multiplexi
1. Basic ConceptsThe so-called blocking, that is, the kernel will suspend the process if the condition is not met (I/O may need to be generated) when it is called on the file operation I/O system. Non-blocking will return immediately if the discovery condition is not satisfied. Also need to pay attention to the non-blocking is not polling, or it is not much diffe
1. BIOBefore JDK5, the JDK io mode was only bio (synchronous blocking)Problem: Because of the presence of blocking, you need to open a thread for each request. Excessive thread switching affects operating system performanceWORKAROUND: Use the thread pool to handle the queue that cannot be processed, and then the other mechanism will be triggered.Problem: Requests that exceed the number of thread pools need
Transferred from: http://www.360doc.com/content/13/0117/12/5073814_260691714.shtmlSynchronous and asynchronous: related to the notification mechanism of a message .
Essential differences
Practical examples
Sync mode
To wait for the message to be triggered by the person handling the message
I go to the bank to handle business, choose to queue, etc., row to the end of the deal.
Asynchronous mode
By triggering mechanism to noti
before they can be returned. asynchronous processing mechanism is similar to select/poll and other multiplexing Io operations, when a message of interest is triggered, it is triggered by a message trigger mechanism notification to process the message. Next, let's explain the two concepts of blocking and non-blocking:Status when the program waits for messages (synchronous or asynchronous)Related.In the above example, whether waiting in queue or waitin
/** * Author:hasen * Reference: Linux device Driver Development Details * Introduction: Android Small rookie Linux * device driver Development Learning Journey * Topic: blocking and non-blocking I/o * date:2014-11-05 * * Blocking An action is when a device operation is performed, and if a resource is not available, the process is suspended until the operational c
Blocking is a common scenario for DBAs, especially poor application design blocking that can cause severe performance degradation until the database crashes. For DBAs, it is necessary to know how to navigate to what is blocking the current system, who is the blocking person and who is being blocked. This paper gives a
About the network IO synchronization, asynchronous, blocking, non-blocking articles on the web there are many, the search for a comparison, the views are different, even the wiki is not very clear to distinguish between asynchronous and non-blocking. Here I will combine the "UNIX Network Programming Volume 1" In the introduction, to speak of their own understandi
Synchronous and asynchronous Io, blocking and non-blocking Io
Many times we often see synchronous and asynchronous, blocking, and non-blocking. In some cases, the synchronization and blocking operations are placed with equal signs. Asynchronous and non-
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.