FOR FREE CONTENT

WSClock Algorithm:

 

Disadvantage of working set algorithm

The basic working set algorithm is a little bit complex and time-consuming since we have to check the entire page table at each page fault until a suitable page is located.

 

Solution:

Here one better algorithm is proposed which modification of working set algorithm is WSClock

 

Due to its simplicity of implementation and good performance, it is widely used in practice.

 

The data structure of WSClock is the same as the clock replacement algorithm is a circular list of page frames.

 

Initially, this list is empty. When the first page is loaded, it is added to the list. As more pages are added, they go into the list to form a circular list. Each entry contains the Time of last use field from the basic working set algorithm, as well as the R bit (shown) and the M bit (not shown).