Threads in C
摘要
In this chapter, we explain the topics of threads used in C programming. Threads are used to execute a number of functions to be run in parallel. For this purpose, the resource of the compiler is shared in parallel among a number of functions, and each function performs its operation independently from other functions. If common memory location is shared by a number of functions, race problem arises. In this chapter, we also explain how to avoid the race problem in parallel processing.