Abstract
The extension of CPU schedulers with fuzzy logic has been ascertained better because of its capability of handling imprecise information. Though, other generalized forms of fuzzy logic can be used which can further extend the performance of the scheduler. This paper introduces a novel approach for Highest Response Ratio Next (HRRN) CPU scheduler which uses the concept of intuitionistic fuzzy set theory. The proposed scheduler has the capability to dynamically deal with the impreciseness of the response ratio and to make the system adaptive based on the continuous feedback. An intuitionistic fuzzy inference system has been implemented. In this paper, to validate the performance of the scheduler a simulation environment has been implemented and the performance is compared with the other three baseline schedulers (Conventional HRRN scheduler, Fuzzy based HRRN scheduler and Vague based HRRN scheduler). Simulation results prove the effectiveness and efficiency of intuitionistic fuzzy based HRRN scheduler.
Keywords
Introduction
The efficacy of any operating system majorly depends on the CPU scheduler used. The prime function of CPU scheduler is to support the multitasking. A CPU scheduler selects one task among different ready tasks and assigns the CPU to it. The decision of the CPU scheduler is subject to the scheduling algorithm used [1, 2, 3]. Several scheduling algorithms have been explored by different researchers. Each scheduling algorithm has its own characteristics and importance [4, 5]. However, the common goal is to assure the performance of the system in terms of response time, waiting time, throughput etc. This paper explores the Highest Response Ratio Next scheduling algorithm for handling the impreciseness of response ratio.
Global scheduling scheme always schedules the highest priority task available for execution. However, in real world, scenario may be different [6]. It would be more realistic to find possible compromises between parameters which help the scheduler to choose the next best task. Even, in an operating system, there is no option to determine the exact value of parameters [7]. These parameters may have imprecise values which can affect the functioning and efficiency of the operating system. Likewise, the imprecise values of the parameters may affect the decision of the CPU scheduler. HRRN based scheduler takes the decision based on the response ratio [8]. The impreciseness may be the part of response ratio which can affect the performance. Fuzzy set theory and its extended theories have the capabilities to handle the impreciseness of data and to decide in what order the requests should be executed to better utilize the system [4].
Fuzzy set theory works on a single membership value that has some limitations [12]. It cannot address both the evidences: evidence in favor and evidence against. Numerous extended theories like vague set theory, intuitionistic fuzzy set theory, rough set theory, neutrosophic theory etc. are available in the literature to overcome the limitations of single membership value [13, 14, 15]. In literature, only a few of the authors have explored the response ratio with fuzzy set theory and vague set theory [9, 10, 11].
Although, these approaches obtain respectable solutions but none of these algorithms have explored the intuitionistic fuzzy set theory for the same. Intuitionistic fuzzy set theory has many advantages over fuzzy set theory [16, 17] and has very much similarity with vague set theory [18, 19]. Therefore, in this paper a novel intuitionistic fuzzy logic approach to HRRN CPU scheduler has been introduced. Intuitionistic HRRN (IHRRN) CPU scheduler dynamically computes the response ratio considering the impreciseness present in the data of each task and then makes the decision in scheduling of those tasks. The performance of IHRRN CPU scheduler is evaluated and compared with HRRN, Fuzzy HRRN (FHRRN) and Vague HRRN (VHRRN) algorithms [7, 8, 10]. Results prove IHRRN performs much better.
The rest of the paper is as follows: Section 2 briefly discusses the basic HRRN scheduling algorithm and its related work. Section 3 describes the intuitionistic fuzzy set theory. Section IV defines the proposed IHRRN CPU scheduler in detail. Section 4 represents the simulation model and performance evaluation of IHRRN scheduler with the other baseline HRRN scheduling techniques. Finally, last section concludes the efficiency and performance of IHRRN CPU scheduler.
HRRN CPU scheduler and state of the art
Brinch Hansen introduced a non-preemptive sched- uling called Highest Response Ratio Next (HRRN) over the biased policy of Shortest Job First (SJF) scheduling in which shortest tasks take priority over the longer tasks. HRRN is a kind of heuristic non-preemptive scheduling that combines the SJF and FCFS scheduling techniques which works on response ratio. Unlike SJF, the task’s priority not only depends on its estimated burst time, but also on its time spent waiting for CPU as given in Eq. (2). It behaves like SJF for short tasks but increases the priority of longer tasks as they wait to prevent starvation. Therefore, the task with highest response ratio is scheduled first with CPU. Ready queue is updated or rearranged every time based on the highest response ratio.
The tasks with same waiting time are prioritized by the scheduler based on the shortest burst time. If multiple tasks are having same burst time, then the priority goes to the task with longest waiting time. Minimum value for response ratio is 1 and it is possible when waiting time is 0. Otherwise, it is directly proportional to the waiting time. For each task, the system should have the strategy which can reduce the response ratio.
In comparison to other scheduling algorithms, HRRN scheduling algorithm will return the high throu-ghput and low/good response time but increases overhead on CPU. However, in literature; HRRN algorithm is concluded as the best scheduling algorithm among various scheduling algorithms [20, 21]. Therefore, the increased overhead can be ignored.
A small number of the researchers have explored the HRRN scheduling heuristic. Therefore, limited literature is available on it. In 2011, Nie et al. have introduced a new scheduling algorithm in order to share the CPU time to the longest tasks and to maintain the HRRN transcendency status. Authors have used the HRRN scheduling algorithm to schedule the task and proposed a time slice using the concept of median [22]. Task is partitioned into multiple parts based on the burst time of the task and on the calculated median of burst time of the tasks. Each part of the new task queue follows HRRN for scheduling. Different applications like grid computing, wireless network scheduling etc are also available in literature where researchers have applied HRRN scheduling algorithms.
As stated in the literature, when a task enters in to the machine, system is unaware of exact values of the parameters associated with the task such as burst time/service time, priority (high/medium/low) of tasks etc. [23]. Unawareness can affect the decisions of CPU scheduler due to the possibility of impreciseness which can further affect the performance of system. Very few of the researchers have also worked on this impreciseness to enhance the performance of the system [24].
In 2008, Moallemi and Asgharilarimi have used the fuzzy logic approach to deal with the impreciseness and inexactness of HRRN parameters: burst time and waiting time. The proposed non-preemptive algorithm set the priorities of the tasks in a more accurate way [9]. In same year, Abdurazzag Ali Aburas and Vladimir Miho also introduced a fuzzy logic based algorithm that was similar to HRRN scheduling algorithm [25]. This inference system has used two input parameters service time and waiting time to generate the optimized priority which changes dynamically.
In 2011, Bashir Alam et al. have proposed another Fuzzy approach to HRRN scheduling. Authors have considered impreciseness of three input parameters: static priority, expected remaining time and the response ratio to generate the dynamic priority. The work assumed random arrival and burst time values of tasks. Authors claimed that Fuzzy HRRN (FHRRN) performs better than HRRN [10]. There are several other generalized fuzzy set theories that are available in the literature which handles impreciseness in a better way. In 2013, Supriya et al. have applied the concept of vague set theory over the parameters of HRRN scheduling. Authors considered two important factors: burst time and waiting time to generate the dynamic response ratio [8]. Authors claimed that Vague HRRN (VHRRN) scheduling algorithm performs better than the FHRRN scheduling algorithm.
This work explores the other important generalized theory of fuzzy set i.e. intuitionistic fuzzy set theory on the parameters of HRRN. The next section introduces the preliminaries of intuitionistic fuzzy set theory which is the central part of the proposed work.
Prof. Zadeh had presented fuzzy set theory to tackle the incomplete and imprecise knowledge. In fuzzy set, each element of a set is having a single degree of membership in interval [0, 1].
As stated earlier, there are other several generalized forms of fuzzy set theory exist [12]. In 1986, Atanassov had introduced intuitionistic fuzzy set theory which extends the concept of fuzzy single membership into two membership functions: degree of membership and degree of non-membership but both functions should be in the same interim [28]. Pawlak had presented another theory of impreciseness called rough set. Like intuitionistic fuzzy approach, it expresses impreciseness with lower and upper approximation of the set. Lower approximation states the membership of those elements which belongs to the set. Opposite to that upper approximation represents those elements that possibly belong to the set [29]. Gau et al. had introduced vague set theory which has again replaced the concept of fuzzy single membership function into two individual membership functions: truth membership function and false membership function [15]. Some of the researchers claimed that both vague and intuitionistic fuzzy set theory are like each other [18]. However, author is treating both theories as different and considering intuitionistic fuzzy set approach for this work.
Architectural view of IHRRN CPU scheduler.
Let us suppose
IHRRN CPU scheduler performs the adaptive sched- uling methodology over open loop scheduling methodology. As open loop scheduling algorithms performs poorly in unpredictable dynamic environment, therefore IHRRN scheduler uses intuitionistic fuzzy set approach which performs better in unpredictable and uncertain environment [31, 33, 34, 35, 36].
IHRRN CPU Scheduler has mainly two objectives:
To deal with the impreciseness allied with the parameters of each task and to calculate the response ratio dynamically. It makes the system adaptive by adjusting the system based on continuous feedback provided w.r.t response ratio (illustrated in Fig. 1). To schedule each task based on the calculated response ratio which concurrently improves the performance of the system.
For achieving these objectives, proposed IHRRN scheduler contains two modules: Intuitionistic Fuzzy Inference System (IFIS) and IHRRN scheduling algorithm.
It is used to generate the response ratio for each task. As mentioned in Section 2, response ratio of any task depends on burst time and on waiting time. Proposed IFIS works on the impreciseness of these factors while calculating the response ratio. It has four main components as illustrated in Fig. 2.
Intuitionistic Fuzzification Intuitionistic Fuzzy Inference Engine Data Base Intuitionistic Defuzzification
IHRRN-Intuitionistic Fuzzy Inference System.
It maps the crisp inputs in to two membership functions; degree of membership
Intuitionistic Fuzzification maps each input into their respective intuitionistic fuzzy values based on Eqs (5) and (6).
Where both
Axiom 1:
Let us assume a uniprocessor system with
IFIE maps the resulted intuitionistic fuzzy value into a distinct fuzzy value. It has calculated using the concept of evidence membership function as specified in Eq. (9).
Here
Axiom 2:
IFIE maps both input parameters
Data Base unit takes the task’s attributes from the ready queue and stores all the required information within. It provides all the required data like burst time of current task, minimum burst time available, maximum burst time available, waiting time of current task, maximum and minimum waiting time available etc. to all other units. Database component of IFIS plays the major role as it constantly shares all the current information to the other components that helps the scheduler to adapt the changes dynamically.
Intuitionistic defuzzification
Intuitionistic defuzzification process takes the evidence values (
Likewise, IHRRN-IFIS deals with the impreciseness of all active tasks.
Second module of proposed scheduler considers the response ratio (
Algorithm
Input: Burst time (
Output: average waiting time (
Initialize the variables Initialize the variables Calculate the Response Ratio Dispatch and execute the task Repeat the steps from 1 to 4 until ready queue is empty. Calculate the waiting time ( Finally calculate the average waiting time (
Detailed architecture of simulation model.
To prove the performance and efficiency of IHRRN CPU scheduler, author has compared the proposed algorithm with the existing HRRN scheduling algorithms such as conventional HRRN, fuzzy based HRRN (FHRRN) and vague based HRRN (VHRRN) scheduling algorithms. Thus, proposed scheduler achieves it’s both objectives: dealing with the uncertainty and impreciseness allied with the task’s attributes which can affect the response ratio and improving the performance of scheduling algorithm that lies in its ability to reduce the values of performance metrics.
Performance metrics
Each scheduling algorithm has different role and characteristics, but not a single algorithm is ideal for all situations [32]. Therefore, it is necessary to specify methods for quantifying the features of each algorithm. So that it would be possible to investigate a new scheduler over the existing/baseline scheduling algorithms. A scheduler is said to be efficient when the following metrics are to be considered in it.
The performance of CPU scheduling algorithms mainly quantifies based on CPU utilization, throughput, average waiting time (
Average response time can be calculated by calculating average of response time of all the active tasks as given in Eq. (13).
Average waiting time can be calculated as mentioned in Eq. (14).
Average Waiting Time (a) when 
Average Turnaround Time (a) when 
Similarly, average turnaround time is calculated using Eq. (15).
Average Normalized Turnaround Time (a) when 
Average Response Time (a) when 
Average Waiting Time and Average Response Time (a) when 
Likewise, average normalized turnaround time is calculated as given in Eq. (16).
Throughput and CPU utilization will be the same for all scheduling algorithms as the simulation model is considering the uniprocessor system with estimated burst time for all tasks. Therefore, the proposed work has considered the rest of the performance metrics.
Average Turnaround Time (a) when 
A uniprocessor system has used for simulation to evaluate the performance of IHRRN and other baseline scheduling techniques. Tasks can be CPU bound or I/O bound. If the time to complete the tasks is determinable, then task is CPU bound otherwise I/O bound. CPU bound tasks only execute CPU related operations and cannot execute I/O operations. The workload consists of independent tasks and even all tasks are assumed to be CPU bound tasks. Each task instance is supposed to complete their execution within the assigned time frame.
The simulator has two components as shown in Fig. 3; Intuitionistic fuzzy inference system and sch-eduling algorithm. IFIS which controls the allied impreciseness of the task parameters to generate the response ratio and scheduling algorithm which models the execution of tasks and collects the performance statistics of the IHRRN scheduler.
Workload model
Each task is characterized with a set of estimated burst times
If workload is in between 1 to 5, IHRRN scheduler performs well however at some points it behaves much like VHRRN. Moreover, as workload increases from 6 to 15; system still shows better performance of IHRRN over baseline schedulers.
Evaluation
To evaluate the performance, simulation is divided into two phases. Phase 1 consider the task sets with
Phase 1
Parameters settings for phase 1
Parameters settings for phase 1
Different experiments evaluate the performance of the scheduling algorithms (IHRRN, VHRRN, FHRRN, HRRN) when the average burst time of different task sets can vary within the specified range and with constant
Average Normalized Turnaround Time (a) when 
Overall performance of IHRRN Scheduler over Baseline Schedulers (Phases 1 and 2).
Each point in Figs 4–7 represent the average value (average waiting time, average turnaround time, average normalized turnaround time and average response time) of sample task set. From Fig. 4, it can be seen that over more than 90% points, IHRRN scheduler proved to be better than other baseline schedulers. Moreover, for remaining 10% it is closer to the VHRRN scheduler but proved better over other two baseline schedulers. Figure 5 compares the average turnaround time of IHRRN scheduler with other three baseline schedulers. It can be seen that at
Figure 6 compare the average normalized turn-around time among four schedulers. IHRRN successfully proves itself better over baseline schedulers at all varied values of
In summary, phase 1 experiments demonstrate that under all situations when the estimated execution time differs with the change in time, IHRRN scheduler is able (1) to deal with the inexactness of the response ratio of admitted tasks; (2) to achieve high performance in terms of average waiting time, average turnaround time, average normalized turnaround time and average response time; (3) to attain high system utilization.
Parameters settings for phase 2
Parameters settings for phase 2
Phase 2 considers
Figures 8–10 illustrate the performance of sample task sets with phase 2 settings. In phase 2 experiments also, the results of average waiting time and average response time are exactly same. Figure 8 clarifies the performance of IHRRN scheduler over more than 90% points. Moreover, for remaining 10% it is closer to the VHRRN scheduler but proved better over other two baseline schedulers. Figure 9 compares the average turnaround time of IHRRN scheduler with other three baseline schedulers. Figure 10 compares the average normalized turnaround time among four schedulers. IHRRN successfully proves itself better over baseline schedulers at all varied values of
Figure 11 illustrates the overall performance of IHRRN scheduler in phases 1 and 2 as compare to other three baseline schedulers (IHRRN vs HRRN, IHRRN vs FHRRN and IHRRN vs VHRRN). In overall performance, IHRRN scheduler effectively showed the improved performance in both phases. However, there is a slight drop in the performance of IHRRN with increase in system workload as compare to phase 1. Through Fig. 11, it can be seen that the overall performance of IHRRN scheduler is better than other baseline schedulers during phases 1 and 2. Hence, based on the results it can be concluded that, it effectively adapts the dynamically changes of burst time and the waiting time of task. It also maintains the satisfactory performance throughout the execution cycle of scheduler.
This paper presented a novel approach to highest response ratio next CPU scheduler called Intuitionistic fuzzy based HRRN (IHRRN) scheduler. To deal with the impreciseness of input parameters, an intuitionistic fuzzy inference system has implemented. This inference system is used by the scheduler to dynamically generate the precise value of response ratio. IHRRN scheduler has the capability to adapt the suggested dynamic changes w.r.t. response ratio. An IHRRN scheduling algorithm is also implemented which dispatches the highest response ratio task with the CPU. This paper compared and analysed the performance of four schedulers: IHRRN, VHRRN, FHRRN and HRRN scheduler. Simulation is divided in to two phases based on the number of tasks. Analysis results of both the phases proved the improvement in performance of IHRRN scheduler over other three baseline schedulers.
