Sunday 15 April 2012

process - Can we use deadlocks for anything? -



process - Can we use deadlocks for anything? -

i wondering this. deadlocks prefer avoid, there scenario can utilize deadlocks our advantage?

a deadlock situation in 2 or more competing actions each waiting other finish, , neither ever does.

so goal avoid falling it. if code result in deadlock need go , code re-designing avoid/minimize such deadlocks. might thought have kind of recovery & warning mechanism when nail deadlock.

now question: can used something? well, there utilize depends on situation , goal. here scenarios:

if hacker tries attack app, can freeze scheme forcing many deadlocks. if builder of deadlock detecting system, want generate such deadlocks in testing environment see if caught scheme or not.

process transactions deadlock

No comments:

Post a Comment