Hello again all. Today's topic is the use of semaphores to protect the screen in C-Unix.
Basically, I have a a program that uses threads to display and add paths of "shared files". There's a string array that holds them.
Basically, printList, addToList and openFile are the three functions I have, and each must work through threads.
I have the threads figured out, but I'm stumped as how to protect the screen so that stuff is printed in the apropriate order.
This project is due tomorrow midnight. Any suggestions are welcome with open arms.