LINUX programming

Moderators: ITA
Number of threads: 1347
Number of posts: 2935

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
mutex and threads Posted by tennis_girl on 29 Dec 2008 at 3:25 PM
Hi,
I'm an absolute beginner and I could really use your help plz.
Using synchronization with mutexes, I need to come up with a program that solves the traffic light problem. If there is a car passing it should lock the mutex and unlock it when it's passed. If the light is red and there is no car passing it should remain red otherwise it should turn green after a minimum number of seconds.
I tried searching on line for some tutorials on threads and mutex but couldn't find anything that helpful.
I deeply appreciate your help on this in advance.
Report
Re: mutex and threads Posted by aramonkg101 on 6 Jan 2009 at 8:27 AM



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.