Hi. How can I write a monitor form my multithret program? Where I can find examples for c?

Thank in advance