LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 10-27-2003, 11:49 PM   #1
bangla_linux
LQ Newbie
 
Registered: Oct 2003
Location: bangladesh
Posts: 4

Rep: Reputation: 0
Unhappy 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
 
Old 10-28-2003, 03:26 PM   #2
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,176
Blog Entries: 4

Rep: Reputation: 430Reputation: 430Reputation: 430Reputation: 430Reputation: 430
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.
 
Old 10-28-2003, 04:53 PM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,396

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
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
 
Old 10-29-2003, 03:01 AM   #4
bangla_linux
LQ Newbie
 
Registered: Oct 2003
Location: bangladesh
Posts: 4

Original Poster
Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Difference between condition variable and mutex linux_ujjwal Linux - General 4 05-10-2005 03:17 AM
race condition in close socket?? jwstric2 Programming 3 03-18-2005 05:01 PM
Kernel race condition exploit solution jlangelier Slackware 12 01-14-2005 10:15 AM
Linus Torvalds enters race for California Governor bosewicht Linux - General 2 09-02-2003 12:13 PM
Linus Torvalds enters race for California Governor fancypiper General 10 09-02-2003 12:11 PM


All times are GMT -5. The time now is 01:09 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration