基本概念

(有空想写了再写)

1.进程

Wikipedia:
In computing, a process is the instance of a computer program that is being executed by one or many threads. It contains the program code and its activity. Depending on the operating system (OS), a process may be made up of multiple threads of execution that execute instructions concurrently.

进程是计算机运行时由一个或多个线程处理的程序实例

2.线程

Wikipedia

①volatile 修饰符通常用于由多个线程访问但不使用 lock 语句对访问进行序列化的字段。
②很多时候,线程会被设置为死循环,形如 while(true) ,比如扫描线程,状态监测线程之类,这些进程如果没有被设置为后台线程,那么进程就无法关闭,因为在没有强制终止的情况下,属于进程的所有前台线程都结束后,公共语言运行库才会结束该进程。
③...

(1)同步

(2)异步

(3)回调

3.句柄

Wikipedia