Chapter 10: Concurrency
Concurrency is a crucial topic when it comes to V. The main essence of V lies in the concurrency capabilities that it offers to programmers. In this chapter, you will learn about the concept of concurrency via detailed code examples. This chapter will begin by explaining a simple real-life scenario about performing daily morning routines. In the real-life scenario that I chose to explain concurrency, you will be presented with a situation where you perform tasks without knowing that you are performing those tasks concurrently. You will also compare the results of the tasks when they were performed sequentially and see the benefits when similar tasks are performed concurrently.
In addition to the more intuitive explanation of concurrency provided in this chapter, you will gain foundational knowledge of concepts such as the time
module and the thread
type to get you started programming concurrent code in V.
We will cover the following topics in this chapter...