Example: barber
Interlude: Thread API

Interlude: Thread API

Back to document page

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

  Thread

Download Interlude: Thread API


Information

Domain:

Source:

Link to this page:

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

Other abuse

Advertisement

Related search queries