Skip to main content

A Comparison of Processes and Threads Creation

  • Conference paper
  • First Online:
Software Engineering Perspectives in Intelligent Systems (CoMeSySo 2020)

Part of the book series: Advances in Intelligent Systems and Computing ((AISC,volume 1294))

Included in the following conference series:

Abstract

This article discusses the differences between processes and threads in the Linux operating system. Both are represented by the same data structures and similarly scheduled, and both are called tasks. It tries to answer whether the names Heavy-weight Process and Light Weight Process (LWP) are appropriate in Linux. It focuses on the time required to create a process or thread. First, the mechanism of creating a new process and thread is explained, and then several measurements are performed under different conditions. A fragments of source code which is used in the measurement are attached. Finally, the advantages and disadvantages of processes and threads are summarized with a recommendation when it is better to use processes or threads in the Linux operating system.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 129.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 169.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Stallings, W.: Operating systems: internals and design principles. In: 8th ed., Pearson Education Limited (2014)

    Google Scholar 

  2. Sarath, P.: Difference Between Process and Thread in Linux. Slashroot.in. https://www.slashroot.in/difference-between-process-and-thread-linux Accessed 07 June 2020

  3. Silberschatz, A., Galvin, P.B., Gagne, G.: Operating system concepts, 9th edn. Wiley, Hoboken, NJ (2013)

    MATH  Google Scholar 

  4. Bendersky, E.: Launching Linux Threads and Processes with clone. Eli Bendersky’s website. https://eli.thegreenplace.net/2018/launching-linux-threads-and-processes-with-clone/ Accessed 16 April 2020

  5. Linux manual page. https://man7.org/linux/man-pages/man3/pthread_create.3.html Accessed 30 June 2020

  6. Farrell, J., Buttlar, D., Nichols, B.: PThreads Programming. O’Reilly online learning. https://www.oreilly.com/library/view/pthreads-programming/9781449364724/ch01.html Accessed 25 June 2020

  7. Intel Product Specifications, Intel® Core™ i7–1065G7 Processor https://ark.intel.com/content/www/us/en/ark/products/196597/intel-core-i7-1065g7-processor-8m-cache-up-to-3-90-ghz.html Accessed 30 June 2020

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Martin Sysel .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2020 The Editor(s) (if applicable) and The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Sysel, M. (2020). A Comparison of Processes and Threads Creation. In: Silhavy, R., Silhavy, P., Prokopova, Z. (eds) Software Engineering Perspectives in Intelligent Systems. CoMeSySo 2020. Advances in Intelligent Systems and Computing, vol 1294. Springer, Cham. https://doi.org/10.1007/978-3-030-63322-6_85

Download citation

Publish with us

Policies and ethics