Email or username:

Password:

Forgot your password?
Devil Lu Linvega

Spent the day trying to solve the dining philosophers problem in Uxntal, and got absolutely nowhere.

12 comments
[DATA EXPUNGED]
mcc

@neauoire Just order out for pizza. Problem solved

DELETED

@neauoire Maybe have the philosophers reconvene for breakfast?

[sorry]

frankiezafe

@neauoire it seems to be a cool issue! the c++ implementation is already cryptic, i guess changing language is even harder... you have the concept of semaphore?

Devil Lu Linvega

@frankiezafe I do, but it's implemented as part of the solution, not at the VM stage. I don't have memory locks in place at the moment, but it hasn't hindred me so far

Devil Lu Linvega

@nil yeah pretty much, I've done the easier exercises already. I haven't implemented all the different processes tho, just enough so I could solve the problem.

Ed Cashin

@neauoire @nil Please let us know what happens next. Should be interesting to read about the tradeoffs you considered and the decisions you made.

Devil Lu Linvega

@edtyping @nil will do! Today is day 2 of trying my hand at this and I have an idea on how to handle this :) stay tuned

William

@neauoire solve, meaning what?

Construct a system that suffers from deadlock? Manually fix that system by imposing a lock ordering in the application? Detect/prevent deadlocking lock acquisitions, in the locking library?

Devil Lu Linvega

@phenidone Construct a system that won't let one of the 5 actors starve yeah

Go Up