[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip / qa] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: a6jjxg7vuy4d1.jpg (49 KB, 640x878)
49 KB
49 KB JPG
dead lock not dead look. again ive read some compukter science hypertexts and found no reasonable answer to the "dead" word background. when you hear en-shit-tification, its clear what "shit" means in there, but what "dead" means in deadlock?

the answer came from practice, as usual. ive been syncing 2 processes and set a timeout when the master (one) kills the slave (another), because why not, when it doesnt respond in time, thats logical. so one kills another and another is "dead" but it had the time to acquire the lock but never released it (termination doesnt run through PHP shutdown handlers), so that lock is dead, a deadlock. the first spins forever trying to get it but it will never get it.

also i get why Go choose to avoid locks - locks always cause deadlocks under certain conditions



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.