阅读背景:

C ++中线程所做的更改

来源:互联网 

I'm trying to simulate the Dining Philosophers problem but I'm having trouble visualising it. When the thread moves from Waiting() to Eating() to Thinking() it changes a variable called state to represent this. However in my main thread it never sees the state variable change. It calls a return function for state when drawing to change the colour of the philosopher.I'm trying to simulate the Dining Philosophers




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: