Performance Analysis of Queue Structure in CPU Scheduling Simulation: A FIFO Case Study Using Python

Authors

  • Dammar Sanggalie Universitas Negeri Surabaya
  • Qolbun Halim Hidayatulloh
  • Wafiq Ulil Abshor
  • Putu Novita Darmadewi
  • Azis Suroni

Keywords:

CPU Scheduling, Python, Queue Data Structure, First-Come-First-Serve (FCFS), operating system

Abstract

Queue data structure is an important component in CPU scheduling, especially in the First-Come-First-Serve (FCFS) algorithm that executes processes in the order of arrival. This study aims to analyze the performance of queue structures (deque vs. list) in FCFS CPU scheduling simulations using Python. The simulations are designed to evaluate metrics such as waiting time, completion time, CPU utilization, and throughput, and to identify the convoy effect. The results show that deque (O(1) for append/popleft operations) is 6.22 times faster than list (O(n) for pop(0)) in a 1000-iteration test with a dataset of 10 processes. The convoy effect causes high waiting times for some processes, indicating the limitations of FCFS. This implementation uses a modular object-oriented programming (OOP) approach, providing a basis for further analysis of scheduling algorithms. This study emphasizes the importance of choosing the right data structure for operating system efficiency.

Downloads

Published

2025-08-06

How to Cite

Sanggalie, D., Qolbun Halim Hidayatulloh, Wafiq Ulil Abshor, Putu Novita Darmadewi, & Azis Suroni. (2025). Performance Analysis of Queue Structure in CPU Scheduling Simulation: A FIFO Case Study Using Python. Journal of Advanced Systems Intelligence and Cybersecurity, 1(01). Retrieved from https://journal.unesa.ac.id/index.php/jasic/article/view/44455
Abstract views: 90 , PDF Downloads: 95