Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.


  Search this Thread
Old 12-05-2005, 10:50 PM   #1
LQ Newbie
Registered: Dec 2005
Posts: 3

Rep: Reputation: 0
Preventing Deadlocks

I am wondering if any could tell me how mandrake prevents deadlock conditions? I am writting a paper for my masters level class on this subject,
Old 12-06-2005, 04:01 PM   #2
LQ Guru
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Linux Mint 17, Debian 8
Posts: 7,860

Rep: Reputation: 311Reputation: 311Reputation: 311Reputation: 311
"I am wondering if any could tell me how mandrake prevents deadlock conditions?""

The logic of how to prevent deadlock conditions is common to all software. Mandriva has to follow the same logic rules as anybody else.

I use the term variable to mean the name that is used to describe a lockable resource. When all processes access a variable as read only then no locks are necessary. When any process updates a variable then all process that read the variable must lock on the variable as read only and all processes that update the variable must lock on the variable as exclusive.

When processes lock on more than one variable then all processes that lock on more than one variable must follow one of these rules:

1. All processes must lock on all of the variables they need in a single system call. For example is a variable is locking on A, C, J, and X then it must lock on (A, C, J, and X) in a single system call.

2. All processes which lock on more than one variable must do so in the same order. For example if several processes are locking on some or all of A, C, J, and X they can do so one variable at a time provided that they all lock on variables in the same agreed on order. For example they could agree on the order J, A, X, C.

3. It is possible to combine rules 1 and 2 and agree that some variables can be used as a multiple call within an agreed on series. For example the process could agree to always lock on A, C, J, and X in the 3 step series:
A, (C & X), J.

Steve Stites


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
kaffeine preventing suspend PennyroyalFrog Linux - Software 1 01-27-2005 08:51 AM
preventing net access mufy Linux - Security 2 01-13-2005 05:09 AM
Preventing Login rickseiden Linux - Security 3 12-01-2004 02:45 PM
Preventing Changes To Desktop xenic501 Linux - Security 1 05-03-2004 01:36 PM
preventing from attack vcheah Linux - Security 1 01-15-2002 02:43 AM

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

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