003 Linux System ProgrammingIssues, queries and suggestions related to Linux, Linux Programming, IPC, Interprocess Communication, Synchronization, Semaphore, System Programming, Linux Software Development. » 003.11.POSIX-Threads
16.Describe the role of the `void *(*start_routine)(void *)` argument in `pthread_create()` and explain how the thread’s work is encapsulated within this function.
a. This focuses on the thread’s starting function and its role in determining what the thread will do once created. Give your observations.
Role of void* (*start_routine)(void*) in pthread_create()
this argument contain function pointer pointer to thread funciton. It is a reentrant function which contain the routine or instruction for which thread is to be created or executed .