Main Article Content

Abstract

This research study is focusing on the need of multithreading in programming, its challenges and the various issues related to a multithreaded program. Different programming languages support multithreading, python is also among them. A multithreaded program contains two or more parts that can run concurrently and each part can handle different tasks at the same time which allows the optimal use of available resources. The outcomes of this practical and experimental research shows that multithreading is based on the idea of multitasking in applications where specific operations within a single application are subdivided into individual threads. With multithreading each of the threads can run in parallel. The operating system divides processing time among each thread with in an application.

Keywords

Program Multithreading Race Condition Threads Synchronization

Article Details

How to Cite
Hamdard, M. S. . (2025). Role of Multithreading in Program Development. Journal of Natural Sciences – Kabul University, 6(3), 165–174. https://doi.org/10.62810/jns.v6i3.337

References

  1. Lambert KA. Fundamentals of Python: First Programs Second Edition. 2017. 352–390 p.
  2. Carver RH, Tai KC. Modern Multithreading: Implementing, Testing, and Debugging Multithreaded Java and C++/Pthreads/Win32 Programs. 2005. 1–465 p.
  3. Goel N, Laxmi V, Saxena A. Handling Multithreading Approach Using Java. Int J Comput Sci Trends Technol [Internet]. 2015;3(2):24–31. Available from: http://www.ijcstjournal.org/volume-3/issue-2/IJCST-V3I2P5.pdf
  4. Rugina R, Rinard M. Pointer analysis for multithreaded programs. SIGPLAN Not (ACM Spec Interes Gr Program Lang. 1999;34(5):77–90.
  5. Palach J. Parallel Programming with Python [Internet]. Packt Publishing. 2014. 124 p. Available from: www.it-ebooks.info
  6. Kavi K. Multithreading Implementations The University of Texas at Arlington. 2013;(September 1998).
  7. Eggen R. Python: Thread or Process. 2019 Hawaii Univ Int Conf [Internet]. 2019; Available from: https://huichawaii.org/wp-content/uploads/2019/07/Eggen-Roger-2019-STEM-HUIC.pdf
  8. Farah T, Shelim R, Zaman M, Hassan MM, Alam D. Study of race condition: A privilege escalation vulnerability. WMSCI 2017 - 21st World Multi-Conference Syst Cybern Informatics, Proc. 2017;2(June):100–5.
  9. Zaccone G. Python parallel programming cookbook: master efficient parallel programming to build powerful applications using Python [Internet]. 2015. 286 (est.). Available from: http://proquest.safaribooksonline.com/?fpi=9781785289583
  10. Brownlee J. Python ThreadPool Jump-Start [Internet]. Kindle E, editor. 2022. 76 p. Available from: https://www.goodreads.com/book/show/61922939-python-threadpool-jump-start
  11. Carr S, Mayo J, Shene C-K. Race Conditions: A Case Study. J Comput Sci Coll [Internet]. 2001;17(1):90–105. Available from: http://dl.acm.org/citation.cfm?id=772488.772504