New Optimized Priority CPU Scheduling Algorithm by Using Knapsack (NOPSACK)

Page 1

GRD Journals- Global Research and Development Journal for Engineering | Volume 5 | Issue 6 | May 2020 ISSN- 2455-5703

New Optimized Priority CPU Scheduling Algorithm by using Knapsack (NOPSACK) Abdulrafa Hoseen Maree Department of Computer Science and Engineering Northern Technical University, Iraq

Najim Abdullah Tahhan Department of Computer Science and Engineering Northern Technical University, Iraq

Maher Talal Alasaady Department of Computer Science and Engineering Northern Technical University, Iraq

Abstract The concept of processes scheduling has had a major role since the advent of operating scheduling policies, the CPU plays a significant role in the computer system by transferring control between different processes and must work efficiently, the operating system performs a basic task, which is scheduling the processor for its efficient and optimized use. Scheduling the processor is one of the most important operational implemented through the operating system. Different algorithms for processor scheduling exist including the scheduling algorithm of priority. The priority number makes the algorithm effective. In this research, a proposed algorithm for scheduling the processor between processes was adopted using the KNAPSACK algorithm in order to eliminate the waiting state and starvation situation that occurs for low priority processes. Keywords- CPU Scheduling, Priority CPU Scheduling, Turnaround Time, Waiting Time, Context Switching, Gantt Chart, Knapsack Algorithm, Starvation

I. INTRODUCTION The operating system manages the hardware and software resources of the computer and execute different tasks. The processor scheduling is considered a basic task. All resources are scheduled before use, that is to give them to processes as needed and at new state in the life cycle of the process[3]. In the computer system, scheduling is the basic function of the operating system, a process is selected from ready queue for implementation and by a short-term scheduler (STS)[9]. These algorithms are designed to schedule processes in CPU, each one better than the others in some performance measures and each has its advantages and disadvantages[10]. The proposed algorithm (NOPSACK) is a priority algorithm using a KNAPSACK algorithm by obtaining optimal results for any given problem[10], in order for the proposed algorithm to be more specific, relying on continuous or fractional knapsack algorithm by dividing process execution time and using the ratio between values(v) and weights(w), v/w[10].

II. SCHEDULING CRITERIA CPU scheduling algorithm have different features and characteristics, and the decision is made to choose the process for execution and depending on different measures, these measures are used to compare different algorithms [1][3][6][7][9][11][12][13]. The scheduler is concerned with [2][3][6][7][11] [12]: A. CPU Utilization Exploit all CPU time optimally in process executing, so cpu remains as busy as possible for being precious time. B. Throughput Number of processes completed within a specified period of time. C. Turnaround Time (TAT) – Refers to the total time it takes to execute a particular process from the moment it enters the system into the moment the execution ends[1][3][6][7][9][12][13], interspersed with time periods thereof[6]: – Wait before entering the memory. – Time in ready queue. – Time to execute the input and output operations. It can be calculated as [9][11] : TAT=Process completed time – Process arrival time.

All rights reserved by www.grdjournals.com

24


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.