Linux pthreads library multi-thread programming notes

Source: Internet
Author: User

Pthreads documents are as follows:

What is a thread, why do we need it? -- Linux Process and thread overview;

What is pthreads? Why pthreads? -- Pthreads overview;

How to create and cancel a pthreads thread? -- POSIX thread creation and cancellation-pthreads thread library instance note 1;

How to connect and separate the pthreads thread? -- POSIX thread connection and separation-pthreads thread library instance Note 2;

What is mutex? How is the mutex of the pthreads library used? -- Use of POSIX thread mutex -- pthreads thread library instance Note 3;

What is a condition variable? How is the condition variable of the pthreads library used? -- Use of POSIX thread library condition variables -- pthreads thread library instance note 4;

 

References:

POSIX Threads programming: https://computing.llnl.gov/tutorials/pthreads /;

POSIX Thread Programming Guide (1): http://www.ibm.com/?works/cn/linux/thread/posix_threadapi/part1 /;

POSIX thread details: http://www.ibm.com/?works/cn/linux/thread/posix_thread1 /;

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.