Does a page error affect a thread context switch in Linux?

If a thread experiences a serious error while trying to read from an address, and the data needs to be replaced with a β€œdisk”, does Linux use this to start another waiting thread, if there is one?

From what I read online, the answer is yes. But I did not see anything convincing.

+4
source share
1 answer

It depends on the scheduler used. In general, the answer is yes if the disk operation is not fast enough or if the kernel has no other reason not to change them in another process.

+4
source

Source: https://habr.com/ru/post/1623844/


All Articles