Beginner's problem with C
I'm beginner to the C language and I'm trying to learn the language for an assignment that I have. But I'm running into trouble as I'm used to Java and OOP. What I need to do is to read a text file says something like:
John Walmart BestBuy
Mary Safeway Walmart
Then what happens is the program I'm suppose to write should interpret John will visit Walmart first and then Bestbuy and Mary will visit Safeway, and then Walmart.
Using pthreads.. so one for John and one for Mary, it will set up so that they don't visit the same store at the same time. So I'm guessing using Mutex lock on Walmart and Safeway first, then release Walmart when John is done so Mary can go to Walmart after...
but I'm running clueless right now.. I'm hoping for some guidance on how I might be able to do this