LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 03-29-2007, 07:23 AM   #1
sang_froid
Member
 
Registered: Oct 2006
Posts: 179

Rep: Reputation: 15
bounded-waiting


Hi,
This is mainly related to O/S . And we have no specific thread for it, I am posting over here as I have no other choice.

Well it says "a critical problem must satisfy three conditions."

a. mutual exclusion
b. progress
c. bounded-waiting


I understood 'a' and 'b', but couldn't understand bounded-waiting, what it really means ?

They say like this

A bound must exist on the number of times that other processes are allowed to enter their critical sections after a process has made a request to enter its critical section and before that request is granted


what really does it mean ?? can anyone explain it a bit more
 
Old 03-29-2007, 10:12 AM   #2
jim mcnamara
Member
 
Registered: May 2002
Posts: 964

Rep: Reputation: 36
You understand that a critical section is a protected block of (usually) shared code in memory that you set up.

This block can have only one process running that code. Process B want to run the code. It requests it. Meanwhile process A just keeps running the code over and over. If process A can go on as long as it wants, then process B is stuck waiting almost forever. So, if we can count the number of time A hits the section, and then say after A hits the section 100 times: 'Okay A, you've had enough turns... process B, the section is now yours'.

It is part of scheduling, very like the idea of a quantum (time slice) of the CPU. You get your turn, and when somebody else wants a turn and your time is up, the other guy gets his turn.
 
1 members found this post helpful.
Old 03-29-2007, 12:46 PM   #3
sang_froid
Member
 
Registered: Oct 2006
Posts: 179

Original Poster
Rep: Reputation: 15
oh in that case, some process is not allowed to use some resource for infinite amount of time once it gets it...am i correct ?
 
  


Reply



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
Hard Drive Problems: timeout waiting for DMA; error waiting for DMA mintee Linux - Hardware 10 09-21-2007 05:06 AM
waiting for 10.2 YourMind Slackware 4 08-07-2005 06:57 PM
calculate area bounded by points fisheromen1031 Programming 4 06-26-2004 10:09 PM
cbq isolated bounded not working in linux7.1 cybercop12us Linux - Newbie 0 10-08-2001 12:54 AM
CBQ - bounded ,isolated not working in Linux7.1 cybercop12us Linux - Networking 0 10-08-2001 12:43 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:58 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration