Home > Back-end >  Multi-threaded scheduling
Multi-threaded scheduling

Time:12-02


I want to know the 4 point whether have problem?
High and low priority, not should be for all Runnable (ready)? High priority, the CPU priority scheduling, have more than one the same priority of a thread, the CPU is random scheduling,
How the fourth, he a higher priority thread can also make a thread to stop a running?

CodePudding user response:

Analogy, you are the ticket window and the conductor for a ticket procedure (thread), suddenly came a leadership level character inserted with the conductor said to preferential ticket, the conductor leaders had to first deal with the formalities, the processing that you originally is terminated?
Similarly, high priority thread inserted tells the CPU to perform, then you threads of execution can only temporarily stopped
  • Related