Joke Collection Website - Mood Talk - Is there only one thread executing in the CPU at the same time, is it dual-core or multi-core and multi-thread?
Is there only one thread executing in the CPU at the same time, is it dual-core or multi-core and multi-thread?
Hehe, the CPU can only execute one thread at a certain time, but multithreading is not called multithreading because it is multi-core or dual-core. Because when multiple threads execute in parallel, the CPU will switch threads frequently according to a certain thread scheduling algorithm. When an executing thread needs IO operation or memory access, the CPU can completely abandon the thread and schedule other threads on the thread ready queue, and the abandoned thread will enter a blocking state. After the IO operation or memory access operation is completed, the thread can enter the thread ready queue.
People usually refer to multithreading, because the CPU switches threads according to a certain thread scheduling algorithm, so in a period of time, many threads can be seen executing concurrently. In fact, only one thread is running at a certain point in time.
- Previous article:Six counties in Yulin
- Next article:Friends of a group of people who claim to be dry (50 sentences)
- Related articles
- How to praise cats humorously
- What do you think, Yuan Fang? What is it used to describe? What is it used to illustrate?
- Advantages and disadvantages of mobile phone brushing machine
- What is the charm of barbecue?
- I began to be cautious, afraid to touch my feelings again.
- Forty-three excerpts of sentences that describe the depth of a person¡¯s soul
- QQ, tell me where to keep it after collection.
- Let's talk about the classic positive energy that makes people excited.
- Who can tell me the potted method of iris?
- How to write a handwritten rental contract? Is the rental contract automatically renewed after it expires?