When programming with pthreads, you pass the thread a function to run when you create it. When this function is done, is the thread cleaned up automatically? Is it necessary to put pthread_join()
in the calling function somewhere? Is pthread_join
only useful when you want to wait for a thread to finish?
nanodano 0 Junior Poster in Training
mcldev 0 Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.