Parallel Programming with Threads in Java: A Case Study

Main Article Content

Paulo Afonso Parreira Junior
Heitor Augustus Xavier Costa
Marluce Rodrigues Pereira
Antônio Maria Pereira de Resende

Abstract

Nowadays, programming using explicit threading is one of the methods more common of parallel programming in architectures with shared memory. Threading is a mechanism that allows the coexistence of multiple activities inside of an only process. This paper compares the performance of a parallel program, when implemented with threading, with its sequential variant. This comparison is carried out in a parallel version of the Reversi game. This version uses the Minimax algorithm (a technique of competitive search used in classic games in Artificial Intelligence). Java Thread API was used for paralleling the game in this work. The results show better performance (smaller execution time) with the program implemented with threads.

Article Details

How to Cite
Parreira Junior, P. A., Costa, H. A. X., Pereira, M. R., & Resende, A. M. P. de. (2010). Parallel Programming with Threads in Java: A Case Study. INFOCOMP Journal of Computer Science, 9(6), 27–33. Retrieved from https://infocomp.dcc.ufla.br/index.php/infocomp/article/view/381
Section
Articles