I am working on a project for University which requires me to use POSIX threads in C. I have done most of the work but I have two major problems I can't seem to work out.
- First, I need to calculate the time a thread has been running. I can't figure which methods or functions I need to use for it.
- Second I have to display the attributes of each thread (created with
pthread_attr_init()
) as a message on the screen.
Any help appreciated. Thank you.