© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
R. Hussain, M. ZulfiqarBeginning Go Programminghttps://doi.org/10.1007/978-1-4842-8858-0_8

8. Concurrency

Rumeel Hussain1   and Maryam Zulfiqar2
(1)
Dubai, United Arab Emirates
(2)
Lahore, Pakistan
 

In modular programming, large programs are usually made up of several smaller sub-programs. For example, a web server handles several requests from multiple web browsers and serves them with HTML web pages simultaneously. Each request is treated like a small program. The ability to run and make progress on multiple smaller components of a larger program simultaneously is known as concurrency. Concurrent programming often requires the use of different constructs, like ...

Get Beginning Go Programming: Build Reliable and Efficient Applications with Go now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.