4 ms·
From my 5 minutes of skimming: Basically, it spawns threads for each 'dreamer.' Then they spawn more threads for each dream level, and wait for the lucid_dream
by steveklabnik 16y ago
From my 5 minutes of skimming:
Basically, it spawns threads for each 'dreamer.' Then they spawn more threads for each dream level, and wait for the lucid_dreamer-s in lower levels to accomplish their task, while printing what's going on. Think of it like the good old dining philosopher's program, where threads represent the diners.
Here's a slightly more lucid explanation: http://calacanis.joshontheweb.com/wp-content/uploads/2010/07/inception_infographic_by_dehah-scaled-1000.jpg http://calacanis.joshontheweb.com/wp-content/uploads/2010/07...
- joshu 16y agoah, the dreaming philosophers problem