O'Reilly logo

Solaris™ Operating Environment Boot Camp by Dominic Butler, David Rhodes

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The Scheduler

The task of choosing which process gets swapped out is undertaken by process 0 (the sched process, which is part of the Solaris kernel). If possible, the process swapped out will be in a sleeping state so as not to interrupt one that is actually running on a CPU at the time. Once the new process is running in memory, it too could be swapped out to the swap partition to make room for another new process.

Of course, when a process has been swapped out, it is not simply left there, as it would never get a chance to run again. So the sched process also manages the swapping back in of swapped-out processes. If there is not enough room in memory to swap a process back in, then another will have to be swapped out first. This juggling of ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required