Example: air traffic controller

Interlude: Thread API

Let’s look at another example (Figure 27.2, page 4). In the code, a single thread is again created, and passed a couple of arguments via the myargtstructure. To return values, the myretttype is used. Once the thread is finished running, the main thread, which has been waiting inside of the pthreadjoin()routine1, then returns, and we can access

Tags:

  Thread

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Related search queries