A SHORT POST ON DEADLOCK PREVENTION, DEADLOCK AVOIDANCE AND DEADLOCK DETECTION by hormorhk18

View this thread on steempeak.com
· @hormorhk18 ·
$4.97
A SHORT POST ON DEADLOCK PREVENTION, DEADLOCK AVOIDANCE AND DEADLOCK DETECTION
<center>DEADLOCK PREVENTION</center>
This ensure that at least one of this conditions can not cope by preventing occurrence of a deadlock.

<center>There are four ways to prevent deadlock</center> 
* MUTUAL EXCLUSION
Not require for shareable resources must hold for non-shareable resources.
* COLD MUD
This must guarantee that when ever a process requests a resources, it does not hold any other resources.
* NO PREMPTION
If a process that is holding some resources request another resources, that can not be immediately allocated to it, then all the resources currently being hold are released.
* CIRCULAR WAIT
Impose in total ordering of all resources types and require that each process request resources in an increasing order of enumeration.
<center>https://steemitimages.com/DQmSvQ4hwrbMLLa3wPBYFcmwAJiVzb5BFPYDCyLZzExmUaB/image.png</center>
<center>Image credit: [Wikimedia Commons](https://upload.wikimedia.org/wikipedia/commons/thumb/7/71/Dekker%27s_Algorithm.svg/2000px-Dekker%27s_Algorithm.svg.png), public domain</center>

<center>DEADLOCK AVOIDANCE</center>
* Simplest and the most useful model requires that each process declare the maximum number of resources of each type that it may need.
* The deadlock avoidance algorithm dynamically ex-ermines the result allocation state to the ensure that there can never be a circular wait condition. Resources allocation state as defined by the number of available and allocated resources and the maximum demands of the processes.
<center>https://steemitimages.com/DQmYpW9KzsCPRCfWusHHoVv2EjjwFgDn2e7rCBTBdyd99gC/image.png</center>
<center>Image credit: [Wikimedia Commons](https://upload.wikimedia.org/wikipedia/commons/thumb/3/37/CSMACD-Algorithm.svg/2000px-CSMACD-Algorithm.svg.png), public domain</center>

<center>DEADLOCK DETECTION</center>
If the system doesn't employ a deadlock prevention or a deadlock avoidance. An algorithm then a deadlock situation may occur. In those environment the system must be able to provide.
* An algorithm that ex-ermine the state of a system to determine if a deadlock has occurred.
* An algorithm to recover from a deadlock.
<center>https://steemitimages.com/DQmV3wL9V6EW3TuupzxKUtKZo8EM772idgpexNQXkfCJMnM/image.png</center>
<center>Image credit: [Wikimedia Commons](https://upload.wikimedia.org/wikipedia/en/5/50/RoundRobin.jpg), public domain</center>
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
properties (23)
post_id42,427,019
authorhormorhk18
permlinka-short-post-on-deadlock-prevention-deadlock-avoidance-and-deadlock-detection
categorysteemstem
json_metadata"{"links": ["https://upload.wikimedia.org/wikipedia/commons/thumb/7/71/Dekker%27s_Algorithm.svg/2000px-Dekker%27s_Algorithm.svg.png", "https://upload.wikimedia.org/wikipedia/commons/thumb/3/37/CSMACD-Algorithm.svg/2000px-CSMACD-Algorithm.svg.png", "https://upload.wikimedia.org/wikipedia/en/5/50/RoundRobin.jpg"], "format": "markdown", "app": "steemit/0.1", "image": ["https://steemitimages.com/DQmSvQ4hwrbMLLa3wPBYFcmwAJiVzb5BFPYDCyLZzExmUaB/image.png"], "tags": ["steemstem", "stemng", "wafrica", "nigeria", "programming"]}"
created2018-04-07 01:43:06
last_update2018-04-07 01:43:06
depth0
children3
net_rshares1,490,381,238,019
last_payout2018-04-14 01:43:06
cashout_time1969-12-31 23:59:59
total_payout_value3.847 SBD
curator_payout_value1.124 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length2,353
author_reputation3,612,249,817,302
root_title"A SHORT POST ON DEADLOCK PREVENTION, DEADLOCK AVOIDANCE AND DEADLOCK DETECTION"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (43)
@kally ·
wow really nice post, dont forget to tell people that when they experience deadlock while using their pc they shouldn't dive for the power button
especially we nigerians
👍  ,
properties (23)
post_id42,428,622
authorkally
permlinkre-hormorhk18-a-short-post-on-deadlock-prevention-deadlock-avoidance-and-deadlock-detection-20180407t020119616z
categorysteemstem
json_metadata"{"app": "steemit/0.1", "tags": ["steemstem"]}"
created2018-04-07 02:01:21
last_update2018-04-07 02:01:21
depth1
children1
net_rshares5,753,391,864
last_payout2018-04-14 02:01:21
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length169
author_reputation224,445,607,823
root_title"A SHORT POST ON DEADLOCK PREVENTION, DEADLOCK AVOIDANCE AND DEADLOCK DETECTION"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (2)
@hormorhk18 ·
thanks
👍  
properties (23)
post_id42,459,705
authorhormorhk18
permlinkre-kally-re-hormorhk18-a-short-post-on-deadlock-prevention-deadlock-avoidance-and-deadlock-detection-20180407t083951479z
categorysteemstem
json_metadata"{"app": "steemit/0.1", "tags": ["steemstem"]}"
created2018-04-07 07:42:36
last_update2018-04-07 07:42:36
depth2
children0
net_rshares5,092,580,916
last_payout2018-04-14 07:42:36
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length6
author_reputation3,612,249,817,302
root_title"A SHORT POST ON DEADLOCK PREVENTION, DEADLOCK AVOIDANCE AND DEADLOCK DETECTION"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@wafrica ·
Hello! I find your post valuable for the wafrica community! Thanks for the great post! @wafrica is now following you! ALWAYs follow @wafrica and use the wafrica tag!
properties (22)
post_id42,432,103
authorwafrica
permlinkre-a-short-post-on-deadlock-prevention-deadlock-avoidance-and-deadlock-detection-20180407t023743
categorysteemstem
json_metadata{}
created2018-04-07 02:37:45
last_update2018-04-07 02:37:45
depth1
children0
net_rshares0
last_payout2018-04-14 02:37:45
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length165
author_reputation38,213,975,622,361
root_title"A SHORT POST ON DEADLOCK PREVENTION, DEADLOCK AVOIDANCE AND DEADLOCK DETECTION"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000