Changed timeout from seconds to milliseconds.

The poll function now takes milliseconds. Seconds were impractical.
Fixed up dining philosophers examples.

Removed some waits.