The difference between threads and processes?

What is the process:

  That program run once a complete process, it is a process. You can view the process through Task Manager but like chrom is 8, the process to see how it is, right property, .exe file is run file

What is the thread:

  It is the basic unit of execution. That is owned by a thread process management. Or smallest unit running.

  Thread is divided into single and multithreaded.

The computer is the core of the CPU (Central Processing Unit) which manages all of these programs. The most critical is CPU core, two-core 4-core 8-core CPU so that is is on a fast.

  eg: chrom webstorm feiqiu these programs turned a CPU is running, but the time difference is too small.

Who owned the line management process: the operating system.

Operating system: windnow mac linux

Process thread below, a process has at least one thread, one thread to be a single line, or the main thread.

Multithreading benefits:

  1. simultaneously

  2. thread and the thread will not interfere, will not take affect.

Single-threaded: 1. Slow 2. Ben collapse this page, all browser was closed.

Guess you like

Origin www.cnblogs.com/manban/p/11768865.html