Professional Documents
Culture Documents
]
(1)
where, y = number located in the middle of a group of numbers arranged in ascending order
n = number of processes
Here, the time quantum is assigned to the processes. The time quantum is recalculated twice in single round robin
cycle.
Algorithm 1. Dynamic Preemptive Scheduling Algorithm
1. Read the tasks
2. While (ready queue! = null)
Sort the tasks in ascending order based on the lowest burst time.
3. Calculate smart Time Quantum:
4. Assign qt to each ith task/process.
For each task i=1 to n
P[i] qt
5. If (burst time<qt)
Assign the resource to that process
6. Else if(remaining burst time< qt/2)
Assign resource again to that same process till it terminates
7. Else,
The process will occupy the CPU/resource till the time quantum and it is added to the ready queue for the
next round of execution.
8. End of While
The cooperative scheduling mechanism is composed of the low-level scheduler, which operates in an area and the
high-level scheduler, which manages inter-area information in scheduling tasks. In both the levels, the tasks are
assigned to corresponding resources by applying the Algorithm 1. Our proposed architecture can always achieve
appropriate scheduling irrespective of the number of peers.
6. Experimental Analysis
6.1. Assumptions
The environment where all the experiments are performed is a multiprocessor environment and all the tasks are
independent. As the system is highly dynamic, all the attributes like burst time, number of tasks, number of users
and the number of resources are not known before submitting to the system. Since, the cases are assumed to be close
to ideal, the Context Switching Time is equal to zero i.e. there is no Context Switch Overhead incurred in
transferring from one job to another.
6.2. Performance Parameters
The criteria include the following:
Response Time: time from submission till the first response is produced, minimize response time for interactive
users
Fairness: make sure each process gets a fair share of the CPU
Execution time: The total application execution time is measured from the time the first job is sent to the grid, until
the last job comes out of the grid.
Resource Utilization : keep the CPU busy 100% of the time with useful work
Throughput: maximize the number of jobs processed per hour.
6.3. Experiments Performed
In this section, experimentation was conducted to demonstrate the feasibility and good performance of the proposed
mechanism. The experimentation was performed through simulation using GriSim. Each simulation was carried out
assuming 100 to 600 workers randomly distributed between 50 managers (peers are randomly distributed per
area).The algorithm works effectively even if it used with a very large number of processes. The resource utilization
is 100% in all cases, since CST =0 as assumed in ideal cases. The graphs in Figs. 2 and 3 show the performance of
the proposed scheduling algorithm in terms of scheduling perspective.
Fig.2 Average Response Time
Fig.3 Makespan
7. Conclusion
The scheduling mechanism can be used in many different kinds of shared computing networks provided these can be
sub-grouped into areas controlled by a Manager. Area scheduling processes are independently performed in
individual areas by their managers and the task assignment is near-optimal at low level and the task scheduling of
inter-area level is managed at high level. But in the existing system, it considers the mono task execution (mono
programming). Consequently, only a single task is allowed to execute at a time. Thus, the system results in larger
response time and which degrades the performance of a dynamic and timesharing system. So, multiple task
execution is to be performed aiming to maximize resource utilization and to minimize the response time. So this
work focuses on, a preemptive scheduling mechanism which is developed to perform multiple task execution and to
0
200
400
600
800
1000
1200
1400
1600
10 20 30 40 50
A
v
e
r
a
g
e
R
e
s
p
o
n
s
e
T
i
m
e
Number of GIS
Cooperative mechanism
without multitasking
Cooperative mechanism with
multitasking
0
200
400
600
800
1000
1200
1400
1600
10 20 30 40 50
M
a
k
e
s
p
a
n
Number of GIS
Cooperative mechanism
without multitasking
Cooperative mechanism with
multitasking
minimize the total job execution time and response time, and to optimize the system performance with better
throughput.
References
[1] Al-Azzoni I, Down DG.(2010),Dynamic scheduling for heterogeneous desktop grids., Journal of Parallel and Distributed
Computing ;70(12):123140.
[2] Balasubramanian A, Sussman A (2010),Decentralized Dynamic Scheduling across Heterogeneous Multi-core Desktop
Grid, Journal of Parallel and Distributed Computing;26 (10) 753_768
[3] Balasubramanian A, Sussman A and Sadeh N(2010),Decentralized Preemptive Scheduling across Heterogeneous Multi-core
Grid Resources, Journal of Parallel and Distributed Computing;26 (10) 641_670
[4] Behera S. H., Mohanty R., Sahu S. & Bhoi K. S.(2011),Design and Performance Evaluation of Multi Cyclic Round Robin
(MCRR) Algorithm Using Dynamic Time Quantum, Journal of Global Research in Computer Science, ISSN-2229-371X
[5] Behera S. H., Patel S. & Panda B.(2011),A New Dynamic Round Robin and SRTN Algorithm with Variable Original Time
Slice and Intelligent Time Slice for Soft Real Time Systems,International Journal of Computer Applications (0975 8887)
[6] D.M. Dhamdhere operating Systems A Concept Based Approach, Second edition, Tata McGraw-Hill, 2006.
[7] Goel N, Garg R.B. (2013), An Optimum Multilevel Dynamic Round Robin Scheduling Algorithm, National Conference on
Information Communication & Networks
[8] J. Rius, F. Cores, F. Solsona(2013), Cooperative scheduling mechanism for large-scale peer-to-peer computing systems,
Journal of Network and Computer Applications 36 (13) 16201631
[9] J. Rius, S. Estrada, F. Cores, F. Solsona(2012),Incentive mechanism for scheduling jobs in a peer-to-peer computing
system, Simulation Modelling Practice and Theory 25 (12) 3655
[10] Jean-Pierre Goux, Sanjeev Kulkarni, Jeff Linderoth, Michael Yoder(2005),An Enabling Framework for Master-Worker
Applications on the Computational Grid, Journal on Future Generations of Computer Systems, 12:53.65
[11] N. Andrade, F. Brasileiro, W. Cirne, M. Mowbray, Automatic grid assembly by promoting collaboration in peer-to-peer
grids, Journal of Parallel and Distributed Computing.
[12] P. Surendra Varma, A Best possible time quantum for Improving Shortest Remaining Burst Round Robin (SRBRR)
Algorithm, International Journal of Advanced Research in Computer Science and software Engineering, Volume 2, Issue 11,
ISSN: 2277 128X , November 2012.
[13] R. Gupta, V. Sekhri, A. Somani, Compup2p: an architecture for internet computing using peer-to-peer networks, IEEE
Transactions on Parallel and Distributed Systems.
[14] RNDSS Kiran, Polinati Vinod Babu, B.B Murali Krishna, Optimizing CPU Scheduling for Real Time Application Using
Mean-Difference Round Robin (MDRR) Algorithm.
[15] Sunita Mohan.Mixed Scheduling (A New Scheduling Policy). Proceedings of Insight09,25-26 November 2009.