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 |
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. |
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 |
All times are GMT -5. The time now is 08:21 AM. |