Email or username:

Password:

Forgot your password?
Devine 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?

Devine 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

Devine 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.

Devine 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?

Devine Lu Linvega

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

Go Up