Classification: concurrent, parallel, synchronous, asynchronous, blocking, non-blocking

Complicated by

At the same time interrupted while doing different tasks; namely occurred in lap times;

For example: a CPU core, cpu core at the same time break , when different tasks at the same time;

parallel

At the same time, while doing different tasks;

For example: two CPU cores, different core cpu same point in time , perform different tasks at the same time;

Key distinction: the same time and at the same time point

Synchronize

For example: a program A, A function to call a time-consuming, "call" return results before, A will have to wait ;

asynchronous

For example: There procedure B, if A first implementation, B calls a time-consuming function "call" return result before, B is executed to continue the follow-up program "calls" a;

Key distinction: whether the state of synchronized "call" and asynchronous, wait for the results of the initiative program

Clog

For example: a program A, A function to call a time-consuming, "call" before returning the result, A will enter the blocked state , this time the program is equivalent to quit things;

Non-blocking

For example: a program B, B calls a time-consuming function, "call" before returning the result, B will enter the non-blocking state , then the program will continue to do other things;

The state of blocking and non-blocking, program a "call": Key distinction

Guess you like

Origin www.cnblogs.com/deja-ve/p/12540079.html