LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   P-thread+race condition+mutex+Peterson's algorithm (https://www.linuxquestions.org/questions/programming-9/p-thread-race-condition-mutex-petersons-algorithm-109343/)

bangla_linux 10-27-2003 11:49 PM

P-thread+race condition+mutex+Peterson's algorithm
 
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

XavierP 10-28-2003 03:26 PM

Welcome to LQ.

This looks like a homework question. A quick browse through the (very short) list of Rules will tell you that you are not supposed to post them here.

A mod will no doubt be in touch.

acid_kewpie 10-28-2003 04:53 PM

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

bangla_linux 10-29-2003 03:01 AM

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


All times are GMT -5. The time now is 08:21 AM.