Solution for Would preemptive scheduling affects speed of moving file?
is Given Below:
Suppose I move file from Drive C to D.
If I set the environment such OS will schedule processes as preemptive scheduling, would it be affect the speed of moving file?
I have heard that moving file is held in kernel, and while kernel(=OS) is still a process, my answer was
yes as context-switch could occurred.
Am I right? If I am wrong, I would like to know what I am missing.
Yes, it would because whole notion of preemptive scheduling is around if process is allowed to take out from ready queue before it completes.
and this would not matter just to mv command but to any other process which would take context to kernel. But we have downside that like starvation based on CPU burst time etc