This session gives an overview of concurrent programming using pthread NPTL library. Conventional Concurrent Servers and their Problems are discussed. Available thread implementation models. Linux implementation of POSIX threads (LinuxThreads and NPTL). Thread creation and termination, joining threads, passing implicit data types to thread function, and passing structures to thread function. Returning and receiving data from a thread function. Creating Thread arrays on stack, and creating thread arrays on heap. Thread attributes (detachstate, stackaddr, stacksize, priority, inheritsched). Changing the default attributes of a thread. Threads and signals. Threads and fork(). Thread cancellation

Email: arif@pucit.edu.pk Example Codes: https://bitbucket.org/arifpucit/spvl-repo/src

One thought on “Lec23 Multi Threaded Programming (Arif Butt @ PUCIT)

Leave a Reply

Your email address will not be published. Required fields are marked *