linux - What exactly is the difference between multi-threaded processing and parallel processing? -
-
The single core CPU or a CPU machine can not parallel processing. True / false?
-
In spite of several processes running a single thread in the single core single process CPU, many threads are running in spite of (including sleeping threads) at any time . right wrong?
Sorry about a lot of questions, they all are related.
In a single core CPU (without hyperthreading) only one thread will actually be implemented, yes. However, it is not fully related to parallel processing. For example, you can have three functions to get:
- What is doing a lot of network activity
- What is a lot of disk activity
- which is doing very CPU activity
Running in threads using these three parallel can definitely give a performance improvement on a core machine Heavy-CPU The activity will have to wait when any of the other activities A few more data to process, but overall effect is parallel processing. This is basically because the CPU can have "other things" without (the disk head moves, some work-on-web services on a remote service).
Comments
Post a Comment