Polygon: Jurnal Ilmu Komputer dan Ilmu Pengetahuan Alam
Vol. 3 No. 6 (2025): November : Polygon : Jurnal Ilmu Komputer dan Ilmu Pengetahuan Alam

Perbandingan Mekanisme Sinkronisasi Mutex dan Semaphore pada Sistem Operasi Android

Ghaniyah Latifa Putri (Unknown)
Rasya Mulki Putra (Unknown)
Harits Rahadi (Unknown)



Article Info

Publish Date
29 Oct 2025

Abstract

The synchronization of mutex and semaphore mechanisms is an important technique in operating systems for managing concurrent resource access in multi-threaded environments. In the Android operating system, which relies on thread-based programming to maintain performance and responsiveness, these two mechanisms play a vital role in preventing race conditions and ensuring data integrity. A mutex is a locking object that ensures that only one thread can access a specific resource at a time, while a semaphore controls access to a limited number of resources by counting the number of threads that can access them simultaneously. In Android, these mechanisms are implemented using the Lock class for mutexes and the Semaphore class for semaphores, both of which can be used to control synchronization between threads in Android applications. This paper will discuss the application of these two mechanisms in the context of shared resource management, as well as a comparison of their performance and advantages in dealing with complex multi-threading scenarios on Android. Emphasis will also be placed on the challenges faced in using these two mechanisms in Android applications, as well as how proper programming can avoid deadlocks and improve application efficiency.

Copyrights © 2025






Journal Info

Abbrev

Polygon

Publisher

Subject

Computer Science & IT

Description

Jurnal ini adalah jurnal Ilmu Komputer dan Ilmu Pengetahuan Alam yang bersifat peer-review dan terbuka. Bidang kajian dalam jurnal ini termasuk sub rumpun Ilmu Komputer, dan Ilmu Pengertahuan ...