ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
i need some help to solve my problems.i am trying.i can't cobine race condition and peterson's algorithm.if any one can..........pls give me a solution
Set up a race condition
Solve it using (1) software solution such as Peterson's algorithm, and (2) mutex
Compare performance
bangla_linux, please do not request verbatiim solutions to homework on this site. you are more than welcome to ask for hints and pointers about certain parts that are causing particular problems, but seeking someone to write a full solution for you personally is not fair on any party involved. thanks
hey guys
don't understand wrong with me.i don't want total solution.i have already write separate code for individual function.but i can not link the race condition with mutex and software solution. i just want to see a demo.so.....goodbye
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.