These are chat archives for rust-lang/rust
Hey people! Looking into rust and going through common programming tasks and trying to learn about threads and concurrency.
So one of the good prime problems is the dinning philosopher.
The question is regarding rust, the behavior it shows is strange, it's synchronous and dinners eat one at a time. Is this intended or the example for in rust documentation has an error?
That's what I have noticed as well, it's on 1.5 but not on the latest docs.
And in my case only one is ever eating at one time, never two. Also always the 3rd dinner that starts. It doesn't demonstrate the problem well. Feels odd when coming from java or c++
thread::sleep_ms(150);between picking up the left fork and the right one? Try commenting it out...
Right now I have to do
color = pow(color, vec3(1.0/2.33));
to correct values